Question: You learned this week in class that the normal distribution is fully specied by two parameters: the mean, ,u, the standard deviation, 0'. In other

 You learned this week in class that the normal distribution is

You learned this week in class that the normal distribution is fully specied by two parameters: the mean, ,u, the standard deviation, 0'. In other words, if you Know the values of these two parameters, you can generate a random variable that follows this distribution. In R, you can generate a random variable drawn from the normal distribution using function r-norm(n, mean , 5d) , where n is the desired number of observations. For example, rnorm(5, 3 , 4) will draw ve values from a normal distribution with the mean of3 and standard deviation of 4. . Write a loop that draws samples of sizes '10, 50, 100, 250, 500, \"1000, 5000, and 10000 from a standard normal distribution, and displays sample size and mean (e.g., \"sample size: 10, mean: 0.1") in the output window. . Based on the output, what would you say happens to the sample mean as the sample size increases? . Edit the loop to also save the mean of each sample to a matrix named sample_data . Hint: you will need to use a counter

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!