Question

How can I find a standard deviation of a simulation of 1000000 replications of the number...

How can I find a standard deviation of a simulation of 1000000 replications of the number of heads in 400 biased coin tosses, (1/10 chance of landing heads) in R?

The code should be sqrt(sd(rbinom(1000000,400,1/10)^2 x (1000000-1)/1000000), but I have no idea why it is set out that way.

Thank you

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer:

# X is simulated from 100,0000 draws of a binomial with size 400 and p = .1
> X <- rbinom(1000000, 400, .1)
>
> # Estimate the variance of X
> var(X)
[1] 35.99069
>
> sd(X)
[1] 5.999224
>

Add a comment
Know the answer?
Add Answer to:
How can I find a standard deviation of a simulation of 1000000 replications of the number...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Please solve the questions using R language and attach the script with it!!! zoom it if...

    Please solve the questions using R language and attach the script with it!!! zoom it if the picture is not clear. Please solve the questions using R language and attach the script with it!!! Please solve the questions using R language and attach the script with it!!! What is the probability that a penny I have will land "heads" when tossed? To analyze this question I randomly toss the coin, n=3901 times. On x = 2500 of these tosses, the...

  • Problem 5. Indicator variables S points possible (graded) Consider a sequence of n 1 independent tosses...

    Problem 5. Indicator variables S points possible (graded) Consider a sequence of n 1 independent tosses of a biased coin, at times k = 0,1,2,...,n On each toss, the probability of Heads is p, and the probability of Tails is 1 -p {1,2,.., at time for E resulted in Tails and the toss at time - 1 resulted in A reward of one unit is given if the toss at time Heads. Otherwise, no reward is given at time Let...

  • Can Dogs Understand Human Cues? EXPLORATION Dogs have been domesticated for about 14,000 years. In that...

    Can Dogs Understand Human Cues? EXPLORATION Dogs have been domesticated for about 14,000 years. In that time, have they been able to develop an understanding of human gestures such as pointing or glancing? How about simi lar nonhuman cues? Researchers Udell, Giglio, and Wynne tested a small number of dogs in order to answer these questions. In this exploration, we wll first see whether dogs can understand human gestures as well as nonhuman gestures. To test this, the researchers positioned...

  • How can I read a file and use the content to find the answer?

    How can I read a file and use the content to find the answer? 3. Write a MatLab program that reads in the set of values in the file "Values.txt" which is available from the d2l website. The values are stored as ASCII text separated by carriage returns, so you can open the file and look at the valucs yourself by double clicking on the file name in MatLab's Current Directory window. Your program should next calculate and print out:...

  • How can I read a file and use the content to find the answer?

    How can I read a file and use the content to find the answer? 3. Write a MatLab program that reads in the set of values in the file "Values.txt" which is available from the d2l website. The values are stored as ASCII text separated by carriage returns, so you can open the file and look at the valucs yourself by double clicking on the file name in MatLab's Current Directory window. Your program should next calculate and print out:...

  • How can I read a file and use the content to find the answer?

    How can I read a file and use the content to find the answer? 3. Write a MatLab program that reads in the set of values in the file "Values.txt" which is available from the d2l website. The values are stored as ASCII text separated by carriage returns, so you can open the file and look at the valucs yourself by double clicking on the file name in MatLab's Current Directory window. Your program should next calculate and print out:...

  • How can I read a file and use the content to find the answer?

    How can I read a file and use the content to find the answer? 3. Write a MatLab program that reads in the set of values in the file "Values.txt" which is available from the d2l website. The values are stored as ASCII text separated by carriage returns, so you can open the file and look at the valucs yourself by double clicking on the file name in MatLab's Current Directory window. Your program should next calculate and print out:...

  • [USING RSTUDIO] I am having trouble already in step 3 of number 1. Im not sure...

    [USING RSTUDIO] I am having trouble already in step 3 of number 1. Im not sure why what I typed isn't working. I appreciate anybody that can help me out. Thanks 1. Recall the `iris` data set from last week's exercise. The `iris` data set is already pre-loaded in R - look at the help file using `?iris` for more information on this data set.    i) Check the structure of the data using the function `str(iris)`.    ii) Find...

  • So this is what I got as my Standard Deviation after plugging in the numbers: So...

    So this is what I got as my Standard Deviation after plugging in the numbers: So I Subtracted the two Standard Deviations (85.36-83.83)=1.53, but that is not the answer apparently. What am I doing wrong? A supermarket chain wants to know if their "buy one, get one free" campaign increases customer traffic enough to justify the cost of the program. For each of 10 stores they select two days at random to run the test. For one of those days...

  • need answer for q4,5,6. MEe ORS O e GaR RRKR O 360 nvestme nctions I Additional theo a Course 14.310x I edX x et 6....

    need answer for q4,5,6. MEe ORS O e GaR RRKR O 360 nvestme nctions I Additional theo a Course 14.310x I edX x et 6.431x Progress I edx 5. Indicator variables Bookmark this page Problem 5. Indicator variables 3/6 points (graded) Consider a sequence of n +1 independent tosses of a biased coin, at times k 0,1,2,...,n. On each toss, the probability of Heads is p, and the probability of Tails is 1 - p A reward of one unit...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT