In: Statistics and Probability
Suppose that Xi’s are coming from a normal population with a mean μ =10 and known variance σ=2. Generate 100 samples of n=50 observations coming from the population of interest. Please, construct the 90% confidence interval for each sample and report the number of confidence intervals that include the mean μ value. Compare this number with the expected number of confidence intervals that include the mean μ value.
please help me. i colud not solve it
I have written an R code to obtain simulation. Confidence intervals are stored in D matrix. Sorry for typing data.frame there. The values in third column provides value 1 if mu belong to C.I. and 0 is mu is not in C.I.