Problem 1.
Consider the two data sets q1.txt and q2.txt. . For each data set, do the following exercises:
- Find the mean and variance of the sample data
- Find the median, first, second, and third quartile of the sample data
- Plot the sample data using a histogram
- Draw the quantile plot for the sample data
- Compare the distribution of the sample data against the theoretical normal distribution using a Q-Q plot
Problem 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.