7, take 01

import numpy as np
import matplotlib.pyplot as plt
import scipy as sp
# 4
X = sp.stats.binom(30, 0.04)
# 4b
X.cdf(2) - X.cdf(1)
np.float64(0.22192374098152245)
X.pmf(2)
np.float64(0.2219237409815226)
# 4d
1 - X.cdf(3)
np.float64(0.030592884701019507)
1 - np.sum(X.pmf(np.arange(4)))
np.float64(0.030592884701019618)

The distribution of the original random variables doesn’t matter so long as they have finite variance.

The expectation of the mean of the random variables is the mean of the original distribution.

With more data the distribution of the sample mean will look increasingly Normal.

7, take 02

If you consider the distribution of a mean of random variable, this distribution will look increasingly Normal as your data tends to infinity.

The mean of this distribution will be the expectation of the original random variables.

The variance of this distribution will collapse to 0 as the number of random variables increases to infinity.

8

We’ve been visualizing the CLT by randomly drawing means of random variables from arbitrary distributions. We then make a histogram of the many means.

We need many means in order to see variation in the potential means. With only one mean, we’d be trying to make a plot of just one number, which obviously won’t tell us anything much about a distribution.