MATH 351 Homework 06
Due by Friday 03/28/25 by midnight PT. Submit a Jupyter
notebook to the GitHub repository for Homework 06.
- We'll make one plot, where each part adds a new piece of
information onto the plot. First, pick a distribution and
some number of random variables .
- Using the theory of the Central Limit Theorem, make a density plot of the appopriate Normal distribution that approximates the distribution of the mean. Make a label for this curve. Notice, there is no random variables used here.
- Use the following pseudo-code to draw on your plot a small tick at the expectation of your distribution:
- Generate 3 random samples of random variables, each of the same size , from your distribution. From each, calculate the mean and the standard deviation. Draw approximating Normal distributions where you've used the estimated mean to replace the expectation and the estimated standard deviation to replace the standard deviation (square root of variance) of the distribution. Make all of these curves similar is some regard, same color and/or same linestyle. Make one label for all of these curves.
- Using the theory of the CLT, and without adding anything new to your plot, what happens to each of the three distributions which approximate the CLT as ?
plt.plot(E[X], [small_number], marker = '|', color ='c')
where the pipe character is found just below delete/backspace and by holding shift. - Applied statistics almost exclusively works with just one of the distributions which approximate the CLT. A common tool is the confidence interval, which is calculated with the following equation where and are data based estimates of the expectation and the standard deviation of the distribution, respectively. Perform a simulation experiment to see how often a confidence interval captures the true expectation. That is, generate confidence intervals and from each count if the true expectation falls within the confidence interval. Your goal is to esimate the probability where .
- The expectation above, , is actually quite nuanced. What exactly is random about the argument to the expectation?
- Prove the result for a random variable and a constant . Use the expectation definition of a variance and expand the squared term inside the expectation first, before substituting in . A middle point along this path should be the expression .