The central limit theorem explained
Roll a die and every face is equally likely: a flat distribution, nothing like a bell. Roll ten dice and take the average, again and again, and the averages pile up into a bell curve around 3.5. The same happens with waiting times, coin tosses, U-shaped and lopsided distributions: average enough independent values and the result is close to normal. That is the central limit theorem, and it is the reason the normal distribution turns up all over statistics.
From coin tosses to a universal law
In 1733 Abraham de Moivre, a French mathematician in London who earned his living advising gamblers, wanted to know how likely the number of heads in thousands of tosses of a fair coin is to land within a given distance of half. Adding up thousands of binomial terms by hand was hopeless, so he found a smooth curve that approximates them: the bell curve we now call the normal distribution. Pierre-Simon Laplace extended the result to coins that are not fair in his Théorie analytique des probabilités (1812) and saw that sums of many small errors behave the same way. Aleksandr Lyapunov gave the first rigorous general proof in 1901, Jarl Lindeberg found weaker conditions in 1922, and George Pólya named it in 1920 the central limit theorem, central because of its place in probability theory.
What the theorem says
Take independent values X₁, X₂, …, Xₙ from one distribution with mean μ and standard deviation σ, and form their mean x̄ = (X₁ + … + Xₙ)/n. The central limit theorem says that as n grows, the distribution of z = (x̄ − μ)/(σ/√n) approaches the standard normal distribution N(0, 1). Put simply: x̄ is approximately normal with mean μ and standard deviation σ/√n, and the sum X₁ + … + Xₙ approximately normal with mean nμ and standard deviation σ√n. Nothing else about the source matters, whether it is flat, lopsided, two-humped or made of only two values: in the limit only its mean and its variance survive.
The σ/√n rule
The standard deviation of the mean, σ/√n, is called the standard error. A fair die has μ = 3.5 and σ = √(35/12) ≈ 1.708. The mean of 25 rolls therefore has a standard error of 1.708/5 ≈ 0.342, and about 95% of such means fall within 1.96 × 0.342 ≈ 0.67 of 3.5, between 2.83 and 4.17. Because of the square root, precision is expensive: four times as many values halve the spread, and a hundred times as many cut it to a tenth. With 100 rolls the standard error is 0.171, half that of 25 rolls.
The condition: a finite variance
The theorem needs the values to be independent (or nearly so) and their variance to be finite. The Cauchy distribution, the ratio of two independent standard normal values, has such heavy tails that it has no mean and no variance, and the theorem fails completely: the mean of n Cauchy values has exactly the same Cauchy distribution as a single value, so averaging a million of them is no better than taking one. Distributions whose density falls off more slowly than 1/x³, such as some Pareto distributions, also escape the normal limit; their means approach other shapes, the stable laws that Paul Lévy described in the 1920s and 1930s.
Why skewed sources need larger samples
How fast the bell appears depends on the source. A symmetric source such as the uniform or a die gives a convincing bell for n = 5 or less. A skewed one takes longer, because the skewness of the mean is the source's skewness divided by √n. The exponential distribution has skewness 2, so means of 5 values still have skewness 0.89, means of 30 have 0.37 and means of 100 have 0.20. A coin that lands on 1 one time in ten has skewness 2.67, still 0.49 for n = 30. The Berry–Esseen theorem makes this precise: the largest gap between the distribution of z and the normal one is at most C × E|X − μ|³/(σ³√n), with C below 0.48. The popular rule that n = 30 is enough is only a rule of thumb.
The law of large numbers and the central limit theorem
The law of large numbers, proved for coin tosses by Jacob Bernoulli and published in 1713, says that the mean x̄ gets closer and closer to μ as n grows. The central limit theorem says more: how close, and in what pattern. The error x̄ − μ shrinks like σ/√n, and its distribution has the shape of a normal curve. The first is why casinos and insurers can count on their averages; the second tells them how far a given week or year can stray from the average. Plot x̄ itself and the histogram narrows towards a single spike at μ; plot z, which multiplies the error by √n/σ, and it keeps the same bell shape.
Where it is used
Confidence intervals rest on it: x̄ ± 1.96 s/√n covers the true mean about 95% of the time, whatever the shape of the data, once n is large enough. An opinion poll of 1,000 people where half say yes has a standard error of √(0.5 × 0.5/1,000) ≈ 0.0158, which gives the familiar margin of error of about ±3 percentage points. Walter Shewhart's control charts (1924) watch the means of small batches from a production line and raise an alarm when one falls outside μ ± 3σ/√n. Measurement errors that are the sum of many small disturbances are close to normal for the same reason, and Francis Galton's board of pegs shows it with falling balls: each bounce left or right adds a small step, and the balls pile up into a bell.
Explore it
Open the experiment with the exponential source and a sample size of 5, and press Play: each sample's five values appear as dots on the source, its mean drops into the histogram, and the samples come faster and faster. With 5,000 means the histogram is a bell, but leaning to the right compared with the normal curve; raise the sample size to 30 or 100 and the lean disappears while the bell narrows like σ/√n. Try the die, the biased coin, the U-shaped and the two-humped sources, compare the Skewness tile with its theory, tick Standardise to see every case against the same N(0, 1), and use New run for different samples. The pencil opens the picture in the photo editor with the source, the sample, the means, the curve and the labels on layers of their own.
Frequently asked questions
What is the central limit theorem in simple terms?
If you take the average of many independent random values, that average follows a bell curve, whatever the distribution of the values themselves, as long as their variance is finite. The bell is centred on the true mean μ and its width is σ/√n.
Is a sample size of 30 always enough?
No. For symmetric data much smaller samples suffice, while strongly skewed data needs more: the skewness of the mean only shrinks as 1/√n. A yes/no outcome with a 10% chance still gives means with skewness 0.49 at n = 30; for it a common guide is at least 10 expected successes, n = 100.
Does the central limit theorem make my data normal?
No. It is about means and sums of many values, not about the individual values. Waiting times stay exponential and incomes stay skewed, however many you collect; only their average becomes approximately normal.
When does the central limit theorem not apply?
When the variance is infinite, as for the Cauchy distribution, whose averages never settle down, or when the values depend strongly on each other. Extreme values such as the maximum of a sample follow other limit laws as well.
Ready to try it?
Open PictorX in your browser — no install, no credit card required to start.
Open the central limit theorem experiment