(Please answer this question accuratelly THANKS) The following commands in R computes 5000 simulations of sample means...

90.2K

Verified Solution

Question

Basic Math

(Please answer this question accuratelly THANKS)

The following commands in R computes 5000 simulations of samplemeans of size 12 from a normal distribution with mean µ = 100 andstandard deviation ? = 14. require

(fastR2) nsamplesum <- do(5000) *c(sample.mean=mean(rnorm(12,100,14)))

The following commands compute the approximate mean and standarddeviation of the sample mean and plot the histogram giving theapproximate distribution of the sample mean.

mean(? sample.mean, data=nsamplesum) sd(? sample.mean,data=nsamplesum) gf dhistogram(? sample.mean, data= nsamplesum,bins=20)

(a) Compare the approximate values of mean and standarddeviation of the sample mean found above with the expectedtheoretical ones.

(b) Repeat the same simulation as above using now samples from auniform distribution in the interval [?2, 4]. Also in this case,run a numerical test over 5000 simulations, compute mean andstandard deviation of the sample mean, and compare it to thetheoretical result.

Answer & Explanation Solved by verified expert
3.6 Ratings (378 Votes)
a Let X be a random variable having a normal distribution withmean and standard deviation Let be the sample mean of a random sample of size n12    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students