MATH 351 Homework 05
Due by Monday 03/10/25 by midnight PT. Submit a Jupyter
notebook to the GitHub repository for Homework 05.
- Pick two distributions, across two families of distirbutions.
For each of the distributions you choose, do the following.
- Simulate convergence paths of means, with two different numbers of random variables that make up each mean: say .
- Make a histogram of the means for each sample size. Set the keyword argument
density
of this hist function toTrue
. I also prefer to sethisttype
to'step'
. Try it, see which histogram you prefer. Overlay the appropriate Normal distribution on your histogram. Make a legend with your various curves appropriately labeled. - Plot the empirical distribution function of the means for each sample size. Overlay the cumulative distribution function of the appropriate Normal distribution. Make a legend with your various curves appropriately labeled.
- What differences do you notice for the different sample sizes?
Here's some code to help.
import scipy.stats as sp
N = sp.norm(3, 10)
N.cdf(2)