Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a program that generates a random sample of size n from your population di

ID: 3546411 • Letter: W

Question

Write a program that generates                  a random sample of size n from your population distribution, and computes                  the sample mean. The program must iterate this procedure 10000 times                  and plot a histogram of the sampling distribution of the sample means. Do                  this four times for sample sizes n = 1, 4, 16, and 64.                 
This is a Stats project and I have never written a program before. I want to write a program that will randomly generate the mean of n= 1,2,4,                    and 16 rolls of a dice. I am using R and have been able to generate a sample size of n=4 and its mean with this code:                 
sample(1:6, 4, replace=T)
                    mean(x1)
                 
However, I have no idea to repeat this 10,000 times with different numbers each time. I have been looking all over the internet and have not                    had any luck. a random sample of size n from your population distribution, and computes                  the sample mean. The program must iterate this procedure 10000 times                  and plot a histogram of the sampling distribution of the sample means. Do                  this four times for sample sizes n = 1, 4, 16, and 64.                 
This is a Stats project and I have never written a program before. I want to write a program that will randomly generate the mean of n= 1,2,4,                    and 16 rolls of a dice. I am using R and have been able to generate a sample size of n=4 and its mean with this code:                 
sample(1:6, 4, replace=T)
                    mean(x1)
                 
However, I have no idea to repeat this 10,000 times with different numbers each time. I have been looking all over the internet and have not                    had any luck.

Explanation / Answer

Write a program that generates a random sample of size n from your population di

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote