The following problem should be answered in R. Any answers (partial or complete) would be greaty appreicated!
Generate 50 normal distributions with mean= 15 and standard deviation= 3 with a sample size of 30 each. For each of these data sets, calculate the 90% con dence interval.
(a) How many of the 50 confidence intervals contain the population mean?
(b) Is this number that you calculate the same as you would expect? Why or why not?
(c) Answer the question in (a) for the 95% confidence interval