Exercise 2
- Consider the population data in the file normal.txt. This data is normally distributed.
- Find the population mean and variance
- Generate a random sample of size 50. (i.e.
randomly select 50 numbers from the population). Find a 90% and 95% confidence interval for the
mean. Is the population mean within the intervals?
- Generate a random sample of size 10. (i.e.
randomly select 10 numbers from the population). Find a 90% and 95% confidence interval for the mean. Is the population mean within the intervals?
- Repeat the exercise above for the population data in
the file not-normal.txt. This data is
not normally distributed. For the smaller sample (size 10), compute the confidence intervals with and without normalization.