1.32 The Central Limit Theorem

Central Limit Theorem

\(X\) is a random variable.

If the number of samples \(N\) is large enough, then \[\overline X \sim \text{Normal}\left(E[X], \frac{SD[X]}{\sqrt{N}}\right)\]

How Large is Large Enough?

Discrete RVs

\[X = \begin{cases}0 & 1-p\\1 & p\end{cases}\ \ \ \ \ \ \text{compute}\ \overline X_n,\ \ \ n=\{2, 3, ..., 500\}\]

A gif of the distribution of 1000 sample means of a binary (Bernoulli) random variable for each of n=2-500 samples (2-25, 25-50 by 5, 50-100 by 10, 150-500 by 50). 10 different sample densities are shown for each of p=0.05, 0.25, 0.50 probability of success. As n passes about 20, the densities for 0.25 and 0.50 begin to look approximately normal. As n passes about 70, the densities for 0.05 begin to look more normal as well.

How Large is Large Enough?

Continuous RVs

\[X \sim \text{Exponential}(\lambda), \ \ \lambda = 0.25, 1, 4\\ E[X] = \frac{1}{\lambda}\ \ \ SD[X] = \frac{1}{\lambda}\]

Exponential distributions are very skewed (not symmetric)

A gif of the distribution of 1000 sample means of an exponential random variable for each of n=2-40 samples. 10 different sample densities are shown for each of lambda = 0.25, 1, and 4. As n passes about 10, the densities begin to look approximately normal.

Consequences of the Central Limit Theorem

The CLT allows us to

  • use the normal distribution to approximate almost any sample average

  • calculate confidence regions and probabilities easily

  • test whether our assumptions about the world are true (hypothesis testing)

Example: Number of Squirrels

New York City conducts a squirrel census periodically1.

We’ll use the 2020 Squirrel Census conducted March 1, 2020 across several parks in Manhattan. A total of 433 squirrels were recorded.

Define \(X = \begin{cases} 1 & \text{grey primary fur color}\\0 &\text{otherwise}\end{cases}\)

A stacked bar chart, oriented horizontally, showing the number of squirrels of each fur color in the data set. One squirrel has no recorded fur color. There are 16 black, 26 cinnamon, and 390 grey squirrels recorded in the dataset.

\[\overline X = \frac{390}{433} = 0.9006928\] \[SE[\overline X] = \sqrt{\frac{\frac{390}{433}\cdot\frac{43}{433}}{433}} = 0.0143726\]

Example: Number of Squirrels

Assuming that the parks sampled during the 2020 squirrel census are a random sample of squirrels in NYC, what is the probability that the true proportion of gray squirrels in NYC is between .875 and .925?

\[\begin{align}P\left(.875 < p < .925\right) &= P\left(\overline X - .875 < \overline X - p < \overline X - .925\right) \\&= P\left(\frac{\overline X - .875}{SE[p]} < \frac{\overline X - p}{SE[p]} < \frac{\overline X - .925}{SE[p]}\right) \\&\approx P\left(\frac{0.901 - .875}{0.0144} < Z < \frac{0.901 - .925}{0.0144}\right) \\&=P\left(-1.667 < Z < 1.806\right)\end{align}\]

pnorm(1.806)-pnorm(-1.667)
[1] 0.9167836

An image of a gray squirrel

Example 2: Surviving Winter

Steve and Jimmy are two squirrels who live in McCarren Park in Brooklyn.

A cinnamon-colored squirrel

Steve

A grey-colored squirrel

Jimmy

Jimmy, a grey squirrel, prefers to hoard acorns from local oak trees, while Steve, a red squirrel, collects conifer seeds and mushrooms. Over a 30 day period, each squirrel keeps track of the “take” (in calories) from their respective foraging activities.

Calculate the 95th percentile for each squirrel’s average take, measured in calories.

Steve Jimmy
\(\overline X = 250\) \(\overline X = 320\)
\(SE[\overline X] = 30.25\) \(SE[\overline X] = 45.15\)

Example 2: Surviving Winter

A cinnamon-colored squirrel

Steve

\(\overline X \sim \text{Normal}(250, 30.25)\)

qnorm(.95, 250, 30.25)
[1] 299.7568

A grey-colored squirrel

Jimmy

\(\overline X \sim \text{Normal}(320, 45.15)\)

qnorm(.95, 320, 45.15)
[1] 394.2651

Estimates and Intervals

We can use a normal distribution to quantify the variability around sample statistics.

Estimate \(\pm 1.96 \cdot SE\) gives us an interval that covers 95% of the distribution of our estimate!

Confidence Intervals

When \(N\) is large enough, we can describe the precision of our estimate \(\overline X\) with an interval

There is a 95% probability that the true value \(p\) (or \(\mu, \pi, \rho\)1) falls within \(1.96\cdot \hat{\text{SE}}[\overline X]\) of \(\overline X\).

\[P\left(\underset{\text{lower bound}}{\underbrace{\overline X - 1.96\cdot \hat{\text{SE}}[\overline X]}} \leq p \leq \underset{\text{upper bound}}{\underbrace{\overline X + 1.96\cdot \hat{\text{SE}}[\overline X]}}\right) = 0.95\]

Confidence Interval Interpretation

We interpret the \((a,b)\) interval \(\left[\overline X - 1.96\cdot \hat{\text{SE}}[\overline X], \overline X + 1.96\cdot \hat{\text{SE}}[\overline X]\right]\) as:


We are 95% confident that
the long-run average {… context …} \(p\)1
lies between \(a\) and \(b\),
{add specific problem context about what a and b mean here}.

If there is a specific value that is important, add another sentence evaluating whether that value falls within the interval, and what that might tell you about the plausibility of the value.