math.vinhnx.ca / statistics / central limit theorem
Statistics that surprise

The central limit theorem, and where it breaks

Average enough independent draws from almost any distribution, however lopsided, and you get a bell curve whose width shrinks like $1/\sqrt n$. It is why polls work and why error bars exist. But “almost” is doing real work: for some distributions, averaging a million draws is no better than taking one.

Distribution of the sample mean

One draw from the source

what you are averaging

A running average of 5,000 draws

law of large numbers

The statement

Let $X_1, X_2, \dots$ be independent draws with mean $\mu$ and finite variance $\sigma^2$. Then the standardised sample mean converges to a standard normal:

$$\sqrt n\,\frac{\bar X_n - \mu}{\sigma} \ \xrightarrow{\ d\ }\ \mathcal N(0, 1).$$

In words, $\bar X_n$ is approximately $\mathcal N(\mu, \sigma^2/n)$. The shape of the original distribution washes out, and only its mean and variance survive. Tick “standardise” to watch different sources converge to the same curve.

How fast? It depends on the skew

Uniform draws look normal after about 5. Exponential draws need dozens. A rare-event Bernoulli (p = 0.1) or a lognormal needs hundreds before the right tail stops sticking out. The Berry–Esseen theorem makes this precise: the error shrinks like $\rho/(\sigma^3\sqrt n)$, where $\rho = E|X-\mu|^3$ measures skew. “n = 30 is enough” is folklore, not a theorem.

Try it: . The histogram is visibly lopsided against the bell.

Where it breaks: the Cauchy distribution

The Cauchy distribution, the ratio of two independent normals, has tails so heavy that its mean does not exist. Its sample means do something remarkable: the average of $n$ standard Cauchy draws is again exactly standard Cauchy, for every $n$. Averaging gains you nothing, and the running mean never settles, because every so often a single enormous draw yanks it somewhere new.

Try it: . Then watch the running average and press Resample a few times.

The in-between case: infinite variance

A Pareto distribution with tail index α = 1.5 has a mean (3) but no variance. Its averages do converge to the mean, so the law of large numbers holds, but slowly and with sudden jumps, and the limit shape is not normal but a skewed stable law. Wealth, city sizes, file sizes and insurance losses often look like this. That is why “average loss” on a short record can be badly misleading.

Try it: .