In: Statistics and Probability
(a) Generate n=10 random sample from a population with normal(40,1) distribution.
(b) For data in part (a) find a 95% confidence interval for mu (the mean of the population). Can I claim that the mean is 41? If your answer is "yes" to this question, which one is the mean? 40 or 41?
(c) For data in part (a) find a 99% confidence interval for sigma (the standard deviation of the population).
(a)
> set.seed(1)
> rnorm(10,40,1)
[1] 39.37355 40.18364 39.16437 41.59528 40.32951 39.17953 40.48743
40.73832 40.57578 39.69461
(b)
For the data at hand,
So,
Then, % confidence interval for mean is given by--
So, at 95% confidence on the basis of the data, it would be an exaggeration t say the mean is 41. The mean can well be 40 as it lies withing our 95% confidence interval.
(c)
Here we are to find 99% confidence interval for sigma.
% confidence interval for mean is given by--