MATH 351 Homework 03
Due at the end of class on 2024-02-23.
In this homework we will simulate sample means, each of which is determined from random variables, from the same distribution you worked with in Homework 02, let's call this distribution . The Central Limit Theorem for the sample mean dictates that the shape of the (many) sample means will be approximately Normal, with expectation equal to and variance . We will only need one for-loop, of length , for this entire assignment.
- For , set up a for-loop that does the following each iteration:
- generates (you choose the size) random variables from your distirbution (from Homework 02) .
- stores the mean and variance of the random variables,
- approximates and stores the parameters you chose from Homework 02 for your distribution using only the mean and variance of the random variables
- Make a histogram of the one sample of size of your random variables, and one histogram each for the means, variances, and estimated parameter(s).
- On the histogram of the means, add a density plot of the expected Normal distribution. You'll need to calculate and .