Question

For each of the following simulation studies, please try two different sample sizes (n = 30 and n = 300). When comparing the

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

[1] 1.53479223 3.40876910 3.93477797 -1.53478242 1.83784836 -0.05523236
[7] 0.30822395 1.34377655 -1.57540597 -0.10459169 -1.06333721 -1.85164417
[13] 2.86490547 -3.36298693 0.02543367 -0.19617165 -1.02254771 1.38904882
[19] 6.58431892 -0.05340290

> mean(x)
[1] 1.083524
> sd(x)
[1] 1.736941

x<-rnorm(rep(20,each=500),1,2)

This gives us 500 means of samples of size 20 each.

> mean(x)
[1] 0.9937
> sd(x)
[1] 2.065966

This is the histogram of 500 means of samples each of size 20.

Histogram of x 髦3 髦3 12 12 し 寸 髦3 4 6 42 0

Now we make just 500 simulations

> y<-rnorm(500,1,2)

> mean(y)
[1] 1.071783
> sd(y)
[1] 1.978666

This is the histogram of 500 simulations.

Histogram of y 喾裊 収角 () 12 12 CN 0 2 4 6

The first sample is more consistent as its the mean of the means. It's mean and sd are closer to the actual mean and sd.

Add a comment
Know the answer?
Add Answer to:
For each of the following simulation studies, please try two different sample sizes (n = 30 and n...
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
  • For each of the following simulation studies, please try two different sample sizes (n = 30 and n...

    For each of the following simulation studies, please try two different sample sizes (n = 30 and n = 300). When comparing the estimators, you need to consider both of the bias and variance of the estimates across 100 simulated samples with the same sizes. Please choose your own parameter(s) for the distributions. 1. Conduct a simulation study to compare the method of moment estimator and MLE for the parameters of a Beta distribution or Gamma distribution. (You only need...

  • For each of the following simulation studies, please try two different sample sizes (n 30 and n 3...

    Using Rstudio to this question. Begin with set.seed(38257890) For each of the following simulation studies, please try two different sample sizes (n 30 and n 300). When comparing the estimators, you need to consider both of the bias and variance of the estimates across 100 simulated samples with the same sizes. Please choose your own parameter(s) for the distributions 1. Conduct a simulation study to compare the method of moment estimator and MLE for the parameters of a Beta distribution...

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