Question: Please help with R-Programming coding. Thank you! Question 7: The standard error of a mean can be thought of as the standard deviation of the
Please help with R-Programming coding. Thank you!
Question 7: The "standard error" of a mean can be thought of as the standard deviation of the sampling distribution from which that mean came. The formula for the standard error of a means is $\frac{s}{\sqrt{n}}$.
Verify this for data that comes from a normal distribution with mean = 60, sd = 12 and n = 100. Simulate means from this distribution, then calculate the standard deviation of this collection of simulated means. Compare it to the theoretical standard error given by $std. err.(\bar{x}) =\frac{\sigma}{\sqrt{n}}$ Here is example code that simulates 5 values from a normal distribution:
smalldata <- rnorm(mean=15,sd=4,n=5) smalldata
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
