Sampling distributions, the standard error, and the central limit theorem
The lecture's fish example, live. A lake holds fish whose lengths have mean 300 mm and standard deviation 50 mm. You catch a sample of n fish and compute their mean length. Do it again and you get a different mean. Do it hundreds of times and the means pile up into a sampling distribution. Its spread is the standard error, and its shape is the central limit theorem at work.
Standard deviation vs standard error
Panels 2 and 3 show two different spreads, and the whole lesson is keeping them apart.
- The standard deviation of a sample, $s$, measures how much individual fish differ from one another. It estimates the population's $\sigma = 50$ mm, and it does not shrink as you catch more fish: bigger samples just estimate it better.
- The standard error, $\sigma/\sqrt{n}$, measures how much sample means differ from one sample to the next. It is the standard deviation of the sampling distribution in panel 3, and it does shrink as $n$ grows: 15.8 mm at $n = 10$, 11.2 mm at $n = 20$, 5.0 mm at $n = 100$.
In practice you only ever catch one sample, so you never see panel 3. You estimate the standard error from the one sample you have, as $s/\sqrt{n}$ (the orange box in panel 2). Watch it bounce around the true value as you draw new samples: it is itself an estimate. This is the "Std. Error" column that summary(lm(...)) reports for every coefficient.
Things to try
- The lecture's example. With the Normal population, press n = 10, then Draw 100 samples. Note the SD of the sample means. Repeat at n = 20 and n = 100. The means stay centred on 300 while their spread shrinks toward 15.8, 11.2 and 5.0 mm.
- Quadruple the data, halve the error. Compare n = 25 and n = 100. Four times as many fish only halves the standard error (10 mm to 5 mm), because it shrinks with $\sqrt{n}$, not $n$.
- The sample SD does not shrink. Draw single samples at n = 10 and at n = 100 and watch $s$ in panel 2. It hovers around 50 either way, just less erratically at n = 100. Only the standard error shrinks.
- The central limit theorem. Choose Right-skewed, set n = 2, and keep drawing: the sample means are still skewed. Move to n = 5, then n = 30, tick Zoom, and watch the histogram become the Normal curve even though the population is nothing like Normal. Try it with Two groups and Flat too. This is the slide's
rgammaexercise: a sum (and so a mean) of many draws from almost any distribution is approximately Normal. - A Normal population needs no CLT. With the Normal population the sample means are Normal even at n = 2, as the last slide on the theorem says.
Next: when the Normal approximates a Binomial or Poisson, and the continuity correction · ← Back to the Day 2 lab