Probability

The tail is not a bell

The limit theorem describes a window of width one over the root of n around the mean; ask instead for the chance that an average lands a fixed distance away and the answer falls exponentially, at a rate computed from the summand before any n is chosen.
16 min read 7 figures Small cases lieOrder out of noise

Worth reading first: A bell curve assembled out of coin flips · How far from the average a thing can be.

Toss a fair coin scoring ±1\pm 1 sixty-four times and average. The central limit theorem says the average is approximately normal with standard deviation 1/81/8, and that approximation is excellent — for questions about the region within a few eighths of zero.

Now ask a different question: what is the chance the average is at least 0.750.75? That is six standard deviations out, the normal approximation puts it near 10910^{-9}, and the true answer is about four times smaller. Push the number of tosses up and the discrepancy grows, because the two answers are not close approximations to each other at all: they are governed by different exponents.

The chance the average clears 0.75, against the number of draws. The exact probability that the average of n draws exceeds a fixed level, on a logarithmic scale, falling along a straight line whose slope is the rate function, with the normal approximation drawn beside it and diverging.
Fig. 1 The exact probability that the average of n coin tosses is at least 0.75, computed by convolution and plotted on a logarithmic scale, against the exponential the rate function predicts and against what the bell curve says. The straight line is right and the bell curve drifts away from it.

The subject that describes the second question is called large deviations, and its central fact is that the probability falls like enIe^{-nI} for a number II that can be computed from the single-draw distribution before any nn is chosen.

Two regimes, and where the limit theorem lives

The reason for the discrepancy is visible in what the limit theorem actually claims.

One set of sums, two scalings, two different limits. The exact distribution of a sum of n independent copies, scaled two ways. Divided by n it collapses onto the mean; divided by the square root of n it holds a fixed width and settles into a shape.
Fig. 2 The same sums scaled two ways. Divided by n the distribution collapses onto the mean; divided by the square root of n it settles into a fixed shape. The limit theorem is about the second picture, which is a window that shrinks as n grows.

The central limit theorem says the distribution of (Snnμ)/(σn)(S_n - n\mu)/(\sigma\sqrt n) converges to the standard normal. Fix a number zz and the theorem describes the event that the average is within zσ/nz\sigma/\sqrt n of the mean — a window that closes as nn grows. A fixed level a>μa > \mu sits at z=(aμ)n/σz = (a-\mu)\sqrt n/\sigma, which runs off to infinity, and the theorem says nothing about a region that is escaping from it.

Worse, the error in the approximation is of the same order as the answer out there. Berry and Esseen’s bound says the largest gap between the exact distribution function and the normal one falls like 1/n1/\sqrt n — which is tiny compared with probabilities near the middle and vast compared with a probability of 10910^{-9}. An approximation whose absolute error dwarfs the quantity being estimated carries no information about it.

So the two regimes are genuinely separate. Within O(n)O(\sqrt n) of the mean: the bell curve, error controlled. At a fixed distance from the mean: a different question, needing a different theorem, and the answer is exponentially small rather than merely small.

The rate, and where it comes from

Cramér’s theorem, from 1938, gives the answer. For independent copies of a distribution with mean μ\mu, and any level a>μa > \mu,

1nlogPr ⁣[Snna]I(a),\frac{1}{n}\log \Pr\!\left[\frac{S_n}{n} \ge a\right] \longrightarrow -I(a),

where the rate function is

I(a)=supλ  (λalogM(λ)),M(λ)=EeλX.I(a) = \sup_{\lambda}\;\bigl(\lambda a - \log M(\lambda)\bigr), \qquad M(\lambda) = \mathbb{E}\,e^{\lambda X}.

MM is the moment generating function, and II is its logarithm’s Legendre transform — the same construction that turns a Lagrangian into a Hamiltonian in mechanics and energy into free energy in thermodynamics.

The rate function as a tangent construction. Two panels: the logarithm of the moment generating function with tangent lines whose intercepts give the rate, and the rate function itself with the rates measured from exact probabilities marked on it.
Fig. 3 The tangent construction the transform is: on the left, the logarithm of the moment generating function with tangents of three slopes, whose intercepts are minus the rate at that slope. On the right, the rate function those intercepts trace, against rates measured off the exact probability at forty-eight draws.

The transform is hard to believe as a formula and obvious as a picture. For each slope aa, slide a line of that slope down until it just touches the curve logM\log M; the intercept where it meets the vertical axis is I(a)-I(a). So the rate function is a re-parametrisation of the curve by its slopes, and the properties it inherits are exactly the ones a reader would want: it is convex, it vanishes at the mean and only there, and it increases away from the mean in both directions.

The upper bound half of Cramér’s theorem is three lines and worth having, because it is exact at every nn rather than a limit. For any λ>0\lambda > 0, Markov’s inequality applied to eλSne^{\lambda S_n} gives

Pr[Snna]eλnaEeλSn=en(λalogM(λ)),\Pr[S_n \ge na] \le e^{-\lambda n a}\,\mathbb{E}\,e^{\lambda S_n} = e^{-n(\lambda a - \log M(\lambda))},

using independence to factor the expectation. Optimising over λ\lambda gives enI(a)e^{-nI(a)}. That is Chernoff’s bound, and the figures assert it at every drawn nn: the exact probability never rises above the straight line.

The lower bound — that the exponential rate is not merely an upper bound but the truth — is the harder half, and the mechanism behind it is worth a picture of its own.

Tilting: making the rare event ordinary

Tilting a distribution until its mean is 4.5. Two bar charts: a distribution and the same values reweighted by an exponential factor, which moves the mean to the level asked about at a cost equal to the rate.
Fig. 4 A fair die and the same die reweighted by an exponential factor, chosen so that the mean of the tilted distribution is exactly the level asked about. The cost of the reweighting, measured as the information distance between the two, is the rate.

Multiply each probability by eλve^{\lambda v} and renormalise. The result is a genuine distribution — the exponential tilt — and at the λ\lambda that the maximisation picks out, its mean is exactly aa.

That is the whole idea. Under the tilted law, an average of aa is the typical outcome, and the law of large numbers says it happens with probability approaching one. So the rare event under the original law is the ordinary event under a nearby law, and the probability of the rare event is the cost of changing laws — which is the total reweighting, en×(cost per draw)e^{-n \times (\text{cost per draw})}.

The cost per draw is the information distance between the two distributions, pitiltlog(pitilt/pi)\sum p_i^{\text{tilt}} \log(p_i^{\text{tilt}}/p_i), and it equals I(a)I(a) exactly. The figure computes both and requires them to agree. That identity — rate function equals information distance to the nearest law with the required mean — is the form of the theorem that generalises furthest, and it is why the subject and information theory share a vocabulary.

What the numbers do

Two examples make the difference between the regimes concrete, and both are computed rather than quoted.

For the ±1\pm 1 coin at level aa, the rate is

I(a)=1+a2log(1+a)+1a2log(1a),I(a) = \frac{1+a}{2}\log(1+a) + \frac{1-a}{2}\log(1-a),

while the normal approximation’s exponent is a2/2a^2/2. At a=0.5a = 0.5 these are 0.13080.1308 and 0.1250.125 — close, which is why moderate deviations behave nearly normally. At a=0.75a = 0.75 they are 0.31640.3164 and 0.281250.28125; the ratio of the two answers is e0.035ne^{0.035n}, which at sixty-four draws is a factor of about ten. And as aa approaches 11 the rate goes to log2\log 2 while the normal exponent goes to 1/21/2: the true probability of all heads is 2n2^{-n}, and the normal approximation is out by an exponentially large factor.

The chance the average clears 5, against the number of draws. The exact probability that the average of n draws exceeds a fixed level, on a logarithmic scale, falling along a straight line whose slope is the rate function, with the normal approximation drawn beside it and diverging.
Fig. 5 The same computation for a fair die at an average of five. The pattern is unchanged — an exact exponential line, with the normal answer diverging from it — and at sixty-four draws the bell curve is out by a factor of eight.

The general shape of the discrepancy is worth stating in one sentence. The normal approximation is a quadratic approximation to the rate function at the mean, so it is accurate for deviations that shrink with nn and increasingly wrong for those that do not — the curvature of II at μ\mu is 1/σ21/\sigma^2, which is precisely what makes the two agree to second order and disagree beyond it.

Where the theorem needs its hypothesis

Everything above assumed that M(λ)M(\lambda) is finite for some positive λ\lambda: the distribution has an exponentially decaying tail. Without that, there is no transform, no rate function, and — more importantly — no exponential decay to describe.

Averages of a heavy-tailed quantity, which never settle. Running averages of draws from a Cauchy distribution, which jump rather than converge, beside the cumulative distributions of averages of 1, 4 and 16 draws, which lie on top of one another.
Fig. 6 What happens with no such tail: running averages of Cauchy draws, which are jolted to a new level by whichever single draw is largest so far, and the cumulative distributions of averages of 1, 4 and 16 draws, which lie on top of one another. Averaging does not help.

For a heavy-tailed distribution the mechanism of a large deviation changes completely, and the change has a slogan: the whole sum is large because one term is large. For a distribution whose tail falls like a power, the chance that SnnaS_n \ge na is asymptotically nn times the chance that a single draw exceeds nana — the cheapest way to get a big sum is one big summand, rather than a conspiracy of many slightly enlarged ones. In the light-tailed case the opposite is true: every summand contributes a little, which is exactly what the tilt describes.

That contrast is the practical content of the theory. It says which explanation of a surprising outcome is the likely one, and the answer depends on the tail: many small pushes, or one shove.

The shape of the whole picture

Putting the two regimes side by side gives a single statement about where the probability of an average sits, and it is worth writing out because it explains why the subject has three names for three parts of one curve.

Write the average’s departure from the mean as tt. For tt of order 1/n1/\sqrt n the probability is described by the bell curve and the answer is of order one. For tt of order one the probability is enI(t)e^{-nI(t)} and the answer is exponentially small. In between — departures growing with nn but slower than n\sqrt n — is the moderate deviations regime, where the answer is enI(t)e^{-nI(t)} and II may be replaced by its quadratic approximation t2/2σ2t^2/2\sigma^2, because the departure is still small enough that the curvature at the mean is all that matters.

So the three regimes are one formula seen at three magnifications, and the normal approximation is the parabola that osculates the rate function at its minimum. That is the cleanest way to hold the relationship in mind, and it makes the failure mode obvious: using the parabola where the true curve has bent away from it.

A lopsided distribution added to itself, and the shape that returns. On the left, the exact distribution of a sum of copies of one lopsided distribution, standardised, for several counts: the shapes converge. On the right, the bell curve convolved with itself, which is the bell curve again.
Fig. 7 Why the bell arrives at all, in the language this essay uses: the distribution of a standardised sum converging to the bell, which is the fixed point of the operation of adding and rescaling. That convergence is a statement about the middle of the distribution, and it is silent about the tails the rate function describes.

There is a second reason the two halves cannot be merged into one theorem. The central limit theorem needs only a finite variance; Cramér’s theorem needs an exponential moment, which is a far stronger hypothesis. Between them lie distributions — those with finite variance but heavy tails, such as one whose tail falls like t3t^{-3} — for which the bell curve is the right answer in the middle and no exponential rate exists at all. The two theorems are not two views of one result; they are two results with different hypotheses that happen to describe the same random quantity.

Where it came from, and where it goes

Cramér worked on insurance risk, and the question was the probability of ruin: a reserve depleted by claims, and the chance that an unlikely run of them exhausts it. His 1938 paper gave the theorem for sums of independent variables; Chernoff’s bound came in 1952 in a statistical context; and the general theory — of large deviations for measures rather than for sums — was built by Donsker and Varadhan in the 1970s, with Sanov’s theorem as its combinatorial heart.

The physics connection is not an analogy. In statistical mechanics the number of configurations with a given energy is exponentially large, the entropy is the exponent, and the free energy is the Legendre transform of the entropy. Cramér’s theorem has the same three objects in the same relation, with logM\log M as the free energy and II as the entropy, and the tilted distribution is the Boltzmann distribution at the corresponding temperature — the same reweighting that turns a count of arrangements into a probability whenever a system is described by its energy. Which of the two subjects is a special case of the other is a matter of taste.

The applications outside both are large. The exponential rate is what makes hypothesis testing work — the error probabilities of a test fall exponentially in the sample size, with a rate given by an information distance, which is Stein’s lemma. It is what governs the failure probability of a procedure repeated many times, in the way that a random walk’s chance of straying far is governed by the same exponent. And it is the reason a concentration inequality is worth having at all: Chebyshev’s bound gives a probability falling like 1/n1/n, and Chernoff’s gives one falling like enIe^{-nI}, which is the difference between a useless guarantee and a usable one.

Where it fails, and what it costs

The rate is only the exponent. Cramér’s theorem gives 1nlogPrI(a)\frac1n \log \Pr \to -I(a), which determines the probability only up to factors growing slower than exponentially. The truth is typically Cn1/2enI(a)C n^{-1/2} e^{-nI(a)}, and the polynomial prefactor is why a measured rate at finite nn always sits above the limiting one — which the figures show and their assertions require.

Independence matters, but can be weakened. Sums of dependent variables have their own theory, and for Markov chains the rate function is an eigenvalue problem rather than a Legendre transform.

The level must be reachable. For a bounded summand the rate becomes infinite past the largest value the summand takes, correctly: the probability is exactly zero there. The figures guard against being asked for a level outside the support.

What the pictures cannot show

The logarithmic axis compresses a range of ten decades into a plot, and that is the only way the exponential can be drawn at all — but it also hides how small these numbers are. A probability of 10910^{-9} at sixty-four tosses and one of 101810^{-18} at a hundred and twenty-eight look like neighbouring points, and they differ by a factor of a billion.

The tangent construction is drawn for one distribution and three levels. What it cannot show is that the supremum is attained — that the tangent touches — which fails exactly when the level exceeds what the summand can produce, the case the guard refuses.

And no picture here shows the lower bound. Chernoff’s inequality is visible as the drawn probabilities staying under the line; the claim that they stay near it is supported by measuring the slope over the last doubling and comparing, which is evidence at the sizes drawn and not the theorem.

The ladder from here

Below: the bell curve from coin flips, which is the regime this essay is about leaving, and Chebyshev’s bound, which is the same question answered with only a variance and answered far more weakly. Sideways: how fast the bell arrives, which measures the error of the normal approximation in the region where it is valid, and the average that never settles, where no rate exists because no mean does. Above: Sanov’s theorem, where the object deviating is a whole distribution rather than a number, and the rate is again an information distance.

What is worth carrying away

The lesson is about the reach of a limit theorem. The central limit theorem is one of the most useful statements in mathematics and it describes a window of width n\sqrt n, and the habit of treating it as a description of the whole distribution is the single commonest error in applied probability — it produces tail estimates that are wrong by exponential factors, always in the direction of underestimating the rare event when the tail is heavy and overestimating it when the tail is light.

The repair is to know which question is being asked. A question about typical fluctuations is a n\sqrt n question and the bell curve answers it. A question about a fixed departure is an exponential question and needs a rate. And a question about a heavy-tailed quantity is neither, and is usually answered by asking which single term was large.