Search

Search papers and lessons

Central Limit Theorem

Level 3 · 9 min read

Add up enough independent random quantities with finite variance and the standardised sum looks like a Gaussian, whatever each quantity's own shape.

On this page

  • Colour = topic mix
  • Probability
  • Calculus
  • Discrete math
  • Sign in to see your progress

TL;DR

Take many independent random quantities that all share the same distribution, with a finite mean and a finite variance. Their sum, once you shift and rescale it, has a distribution that approaches a Gaussian as you add more terms. The shape of each individual term does not matter, only its mean and variance.

Where you'll see it: in confidence intervals for an average, in the error bars on a poll or a lab measurement, and in the reason that sampling noise in a Monte Carlo estimate shrinks like one over the square root of the sample size.

Intuition

Why averages look like bells

Roll one die. Every face from 1 to 6 is equally likely, so the picture is flat. Roll two dice and add them. Now 7 is the most common total, and 2 or 12 are rare. Roll ten dice, or a hundred, and the sum piles up around its centre in a bell. Nobody designed that shape. The dice never became bell-shaped; their sum did, because there are many ways for the middle values to happen and only one way for the extremes.

The theorem says this is not a quirk of dice. Any quantity that is the sum of many small independent pieces will look Gaussian once the pieces are numerous enough. A die is lumpy, a coin is two-valued, a waiting time is skewed, and all of them produce a bell when you add enough of them together.

This is the reason the Gaussian appears so often. It is not usually because nature picks bell curves. It is because most measured quantities are sums of many small, roughly independent effects.

0.511.522.500.511.52average of n waiting timesdensity
  • average of 1
  • average of 4
  • average of 30
Exact densities of the average of n exponential waiting times, each with mean 1 (a gamma density). The spread shrinks like 1 over the square root of n, and the skewed single-term shape becomes a nearly symmetric bell by n = 30.

What is standardised

The sum of nn terms with mean μ\mu and variance σ2\sigma^2 has mean nμn\mu and variance nσ2n\sigma^2, so it drifts and widens as nn grows. To compare shapes, subtract the mean and divide by the standard deviation. The useful object is the rescaled sum, which keeps a fixed mean of 0 and a fixed spread of 1 no matter how many terms you add.

The math

Setting

Let X1,X2,…,XnX_1, X_2, \ldots, X_n be independent and identically distributed (iid), each with mean μ=E[Xi]\mu = \mathbb{E}[X_i] and finite variance σ2=Var(Xi)>0\sigma^2 = \mathrm{Var}(X_i) \gt 0. Write the sum as Sn=X1+⋯+XnS_n = X_1 + \cdots + X_n.

Statement

The standardised sum is

Zn=Sn−nμσn.Z_n = \frac{S_n - n\mu}{\sigma\sqrt{n}}.

Then ZnZ_n has mean 0 and variance 1 for every nn, and as n→∞n \to \infty its distribution converges to the standard Gaussian N(0,1)\mathcal{N}(0, 1). In words: for large nn, P(Zn≤z)≈Φ(z)P(Z_n \leq z) \approx \Phi(z), where Φ\Phi is the standard normal cumulative function.

An equivalent form concerns the sample mean Xˉn=Sn/n\bar{X}_n = S_n / n. Dividing the numerator and denominator by nn gives

Xˉn−μσ/n≈N(0,1)for large n.\frac{\bar{X}_n - \mu}{\sigma / \sqrt{n}} \approx \mathcal{N}(0, 1) \qquad \text{for large } n.

The quantity σ/n\sigma/\sqrt{n} is the standard error of the mean. This is the form you use in practice, because it says how far a sample average is likely to be from the true mean.

Why it is true

One clean proof uses the expectation of a complex exponential, the characteristic function φ(t)=E[eitX]\varphi(t) = \mathbb{E}[e^{itX}]. Two facts do most of the work.

  1. For independent terms, the characteristic function of a sum is the product of the individual characteristic functions. For the standardised sum this gives φZn(t)=[φ(X−μ)/σ(t/n)]n\varphi_{Z_n}(t) = \left[\varphi_{(X-\mu)/\sigma}(t/\sqrt{n})\right]^n.
  2. Near zero, any such function has the expansion φ(s)=1−12s2+o(s2)\varphi(s) = 1 - \tfrac{1}{2}s^2 + o(s^2), because the variance is the second moment and the first moment is zero after centring. Substituting s=t/ns = t/\sqrt{n}:
φZn(t)=(1−t22n+o ⁣(1n))n⟶e−t2/2.\varphi_{Z_n}(t) = \left(1 - \frac{t^2}{2n} + o\!\left(\frac{1}{n}\right)\right)^n \longrightarrow e^{-t^2/2}.

The limit e−t2/2e^{-t^2/2} is the characteristic function of the standard Gaussian. Since a characteristic function determines the distribution, ZnZ_n converges to N(0,1)\mathcal{N}(0, 1). The step (1−a/n)n→e−a(1 - a/n)^n \to e^{-a} is the same limit you use to derive compound interest, which is where the exponential function enters.

The only moment assumptions used are the first two. That is why only the mean and variance of each term matter, and why the shape of the individual term drops out.

Worked examples

Example
A hundred dice

Roll a fair die 100 times and let SS be the total. One roll has mean 3.53.5 and variance 3512≈2.917\tfrac{35}{12} \approx 2.917. So E[S]=350\mathbb{E}[S] = 350 and Var(S)=291.7\mathrm{Var}(S) = 291.7, giving a standard deviation of about 17.0817.08.

Question: what is the chance that SS is at least 370?

  1. Apply a continuity correction, since SS takes whole-number values and the bell is continuous: P(S≥370)≈P(S≥369.5)P(S \geq 370) \approx P(S \geq 369.5).
  2. Standardise: z=(369.5−350)/17.08≈1.142z = (369.5 - 350)/17.08 \approx 1.142.
  3. P(Z≥1.142)=1−Φ(1.142)≈1−0.8732=0.127P(Z \geq 1.142) = 1 - \Phi(1.142) \approx 1 - 0.8732 = 0.127.
  4. About a 13% chance. The dice never had a bell shape, but the approximation is already good at a hundred rolls.
Example
The average of 30 waiting times

Each waiting time is exponential with mean 1 and variance 1, so the skew is strong. Take 30 of them and average.

  1. The mean of the average is 1, and its standard error is σ/n=1/30≈0.1826\sigma/\sqrt{n} = 1/\sqrt{30} \approx 0.1826.
  2. Ask for P(Xˉ>1.2)P(\bar{X} \gt 1.2). Standardise: z=(1.2−1)/0.1826≈1.095z = (1.2 - 1)/0.1826 \approx 1.095.
  3. P(Z>1.095)≈1−0.8633=0.137P(Z \gt 1.095) \approx 1 - 0.8633 = 0.137.
  4. About 14%. This is a normal approximation, and it is the number a quick engineering estimate would use. The exact answer comes from the distribution of a sum of exponentials and differs a little, which is the price of stopping at a finite nn.
Example
How many samples do I need?

A sensor has a standard deviation of 2 units per reading. You want the standard error of the average to be at most 0.1.

  1. Require σ/n≤0.1\sigma/\sqrt{n} \leq 0.1.
  2. Solve: n≥2/0.1=20\sqrt{n} \geq 2/0.1 = 20, so n≥400n \geq 400.
  3. Interpretation: the standard error falls like the square root of the sample size, so halving the error takes four times as many readings.

Tradeoffs and failure modes

The theorem is powerful because it asks so little, and that is also where it goes wrong. Its guarantees depend on its assumptions, and a few of them are routinely violated.

SituationProblemBetter choice
Heavy tails with infinite variance, such as Cauchy or some power lawsThe theorem does not apply, and the average does not settle down at the usual n\sqrt{n} rateUse a stable-law model, or report medians and quantiles
Strongly dependent terms, such as a time series with long memoryIndependence is violated, so the variance of the sum is not the sum of variancesUse a dependent-data version of the theorem, or model the dependence explicitly
Small nn with strongly skewed termsThe bell approximation is poor in the tails and in the skewUse the exact sum, or a bootstrap
Asking about extreme quantiles, such as a one in a million eventThe normal tail is accurate only near the centre for moderate nnUse large-deviation bounds or extreme-value methods
Applying the rule of thirty mechanically"30 is enough" is folklore, not a theoremCheck the skew and tails of your data

A common misreading is that the theorem says individual data points become Gaussian. It does not. It says the standardised average of many points is approximately Gaussian. The data themselves keep their shape.

History

Abraham de Moivre showed in 1733 that the binomial distribution, a sum of coin flips, is close to a bell curve for large numbers of flips, and his work was later published in The Doctrine of Chances. Pierre-Simon Laplace extended the idea in 1810 to a broader class of sums, using the same kind of argument that appears in modern proofs. Aleksandr Lyapunov gave a rigorous general proof around 1901, and Jarl Waldemar Lindeberg gave a sharper condition in the early 1920s. The name "central limit theorem" comes from George Pólya in 1920, who used it to describe the central place this result holds in probability.

It caught on because it explains why the Gaussian is so common in practice. It also makes statistics possible. Without it, every inference about an average would need the exact distribution of the data, which is rarely known.

Check yourself

QuestionState the central limit theorem in your own words. What must be true of the terms, and what does the theorem not say?Show answer

The terms must be independent, identically distributed, and have a finite variance. For large nn, the standardised sum (or the standardised sample mean) is approximately standard Gaussian. The theorem does not say the individual terms are Gaussian, and it does not say the approximation is accurate for every nn or every tail.

QuestionA sample of 16 independent observations has population mean 50 and standard deviation 8. Approximately what is P(Xˉ>52)P(\bar{X} \gt 52)?Show answer

The standard error is 8/16=28/\sqrt{16} = 2. Then z=(52−50)/2=1z = (52 - 50)/2 = 1, so P(Xˉ>52)≈1−Φ(1)=1−0.8413=0.1587P(\bar{X} \gt 52) \approx 1 - \Phi(1) = 1 - 0.8413 = 0.1587. About 16%.

QuestionWhy does the central limit theorem need the variance to be finite? What goes wrong for the Cauchy distribution?Show answer

The proof uses the first two moments, and the variance enters the expansion of the characteristic function. A Cauchy variable has no finite mean or variance, and the average of Cauchy samples has the same distribution as a single sample. Averaging does not shrink the spread, so no n\sqrt{n} rate and no Gaussian limit appear.

QuestionA quality engineer knows the population standard deviation is 4 and wants the standard error of the sample mean to be at most 0.5. What is the smallest sample size that meets this, and what assumption makes the answer trustworthy?Show answer

We need 4/n≤0.54/\sqrt{n} \leq 0.5, so n≥8\sqrt{n} \geq 8 and n≥64n \geq 64. The answer is trustworthy only if the readings are close to independent, have a finite variance, and the sample is large enough that the normal approximation holds for their shape. If the readings are strongly correlated, for example drifting over time, the effective sample size is smaller and more readings are needed.

Sources