Charged for the variance, not the range
Worth reading first: Drawn without putting back · No single input can move it far.
Ten thousand coins are tossed, each landing heads with probability one in a thousand. The expected number of heads is 10. What is the chance of 30 or more?
Hoeffding’s inequality, the bound no single input can move it far built and drawn without putting back extended to finite urns, answers: at most . That is true and useless. The actual probability, computed exactly from the binomial distribution, is about — one in four million. The bound is wrong by a factor of nearly four million, and in the wrong direction for anyone who hoped to use it.
The bound is not being careless. Hoeffding’s inequality uses one fact about each coin: its value lies between 0 and 1. A coin that lies between 0 and 1 might be a fair coin, and for ten thousand fair coins a deviation of 20 from the mean really is ordinary. The bound has to hold for that coin too, so it cannot say anything sharper about this one. What it is missing is the variance. A coin that lands heads once in a thousand has variance about , against for a fair one, and a bound that knew the variance could use it.
There is a quick way to see that the variance is the missing ingredient. The oldest bound on this shelf, Chebyshev’s from how far from the average a thing can be, uses the variance and nothing else, and it decays only like the inverse square of the deviation — the weakest decay of any bound in common use. For the rare coins it says the chance of being 20 or more from the average is at most . That is a hundred thousand times too large, but it is still thirty-seven times smaller than Hoeffding’s answer. A polynomial bound that knows the variance beats an exponential bound that does not, at a deviation of twenty, because the exponential one is decaying from the wrong starting point.
The two bounds this essay is about combine the two ingredients: the exponential decay that Hoeffding’s argument produces, and the variance that Chebyshev’s uses. They are older than Hoeffding’s — Sergei Bernstein’s dates from the 1920s — and they are what anyone estimating a rare probability actually needs.
Three bounds and the truth, for ten thousand rare coins
Write for the variance of the whole sum — here — and for the most any single term can exceed its own average, which is at most 1. Bernstein’s inequality says that the chance of exceeding the average by is at most
At 30 heads, , this gives . Bennett’s inequality, from 1962, is a little sharper, with , and gives . The exact answer is . Both bounds are within a factor of about ten to twenty-five of the truth, where Hoeffding’s was within a factor of four million.
The figure shows the whole range, from the average up to 50 heads. Hoeffding’s line barely leaves the top of the chart — for it still promises 0.73. Bernstein’s and Bennett’s curves fall with the exact one, parallel to it on the logarithmic scale, which means they capture its rate of decay and miss only a factor in front. That factor is the price of a bound that knows two numbers about each coin instead of its whole distribution.
Where the variance enters the argument
The derivation is short enough to follow, and it shows exactly where the variance goes in. Let be one term, with average 0, variance and no value above . The function is increasing, so for every value can take, . Taking averages, the middle term vanishes because averages to zero, and the last becomes the variance times a fixed factor:
Hoeffding’s lemma, at the same step, bounds the generating function by , and the range is all it sees. Here the variance multiplies the whole expression. For independent terms the generating functions multiply, so the variances add into ; then Markov’s inequality applied to , with chosen to make the result as small as possible, gives Bennett’s inequality exactly. Bernstein’s follows from it by the elementary estimate .
Nothing in the argument is specific to coins. It needs independence, a ceiling on each term, and the variances, and it delivers a bound whose shape is set by the ratio of the deviation to the variance-over-ceiling.
Two regimes, and the point where they meet
Bernstein’s exponent is a fraction with two terms in the denominator, and which term dominates decides what kind of tail the bound describes.
When is much smaller than , the term is negligible and the exponent is — exactly the exponent of the normal distribution with the same variance. In that range Bernstein’s bound says the sum is as concentrated as a Gaussian, which is what the central limit theorem suggests and what Hoeffding’s bound would say if the coins were fair.
When is much larger, the term is negligible and the exponent becomes : linear, not quadratic. The tail decays exponentially rather than like a Gaussian. The crossover sits where the two terms of the denominator are equal, at — here about 30 heads above the mean of 10.
The linear regime is not a weakness of the bound. It is true. The exact exponent, black in the figure, also bends away from the parabola, and for large it grows like , the Poisson rate — because ten thousand rare coins are, to high accuracy, a Poisson count with mean 10. The normal curve’s exponent, extrapolated out there, overshoots the true one — at it is 500 against a true 170 — so a normal approximation would understate the probability of 110 heads by a factor of . The tail is not a bell made the same point about sums of ordinary coins; here the variance-aware bounds make it visible without computing the exact tail at all. Bennett’s exponent, , grows like too, and it tracks the exact curve across the whole range.
The variable with the heaviest tail, given two numbers
Why these particular formulas? The Chernoff method, the route to every exponential bound here, reads a tail off the moment generating function . A bound that knows only a term’s variance and its ceiling must use a generating function that is valid for every variable with that variance and that ceiling. The best such bound is the largest generating function in the class, and the question is which variable has it.
The search has the same shape as the one in the bound is the answer to a search, where Chebyshev’s inequality turned out to be the exact maximum of a tail over all distributions with a given mean and variance, attained by a distribution on three points. Here the quantity being maximised is a generating function rather than a tail, and the extra constraint is the ceiling, and the maximiser needs only two points.
The figure compares four variables with the same mean, variance and ceiling: a symmetric , a uniform spread, a three-point variable on , and , and a lopsided two-point variable that is usually slightly negative and occasionally equal to the ceiling. The lopsided one wins at every , and it is not close at large . Its generating function has a closed form, , and Bennett and Hoeffding both proved it is the largest in the class. The Chernoff method applied to it gives the sharpest bound available from those two numbers; Bennett’s inequality relaxes it slightly into the closed form above, and Bernstein’s relaxes that into a simple fraction.
The extremal variable explains the two regimes. It spends most of its time slightly below average and occasionally jumps to the ceiling, so a sum of many copies behaves like a count of rare jumps. Small deviations come from the jumps’ number fluctuating around its mean, which is Gaussian; large ones come from an unusual number of jumps, which is Poisson. A coin that lands heads once in a thousand is exactly this variable, shifted by its mean: with probability , otherwise, with ceiling and variance . That is why the bound is so good for it — the worst case the bound guards against is the case at hand.
What ignoring the variance costs, as events get rarer
The question can be asked for every rarity at once. Suppose the average of coins with heads probability is to be kept below — twice its expected value. The true chance of failing falls exponentially in , at a rate given by the relative entropy between the two coins, the quantity the tail is not a bell called the rate function. Every bound proves some smaller rate, and the ratio of the proved rate to the true one says how many more trials the bound demands than the truth requires.
For Bennett’s bound the ratio is essentially 1 for every small : since the coin is the extremal variable, Bennett’s rate and the true rate agree to within a fraction of a percent. Bernstein’s loses 3%. Hoeffding’s rate is while the true rate is about , so its share is about — half a percent at , a twentieth of a percent at . To prove the same confidence, Hoeffding’s bound asks for roughly times as many coins: 193 times as many for a one-in-a-thousand event.
At the gap has almost closed, because a coin that lands heads a quarter of the time has a variance, , not far below the that Hoeffding’s bound assumes. The variance matters in proportion to how far it falls short of the range, and for rare events it falls short by nearly everything.
Estimating a one-in-a-thousand chance
The practical form of the question is a sample size. A chance of one in a thousand — a failure rate, an adverse reaction, a defect — is to be estimated to within half of itself, , with 95% confidence. How many independent trials are needed?
The exact binomial answer is about 15,400 trials. The normal approximation gets almost exactly the same number, 15,351, but guarantees nothing — it is an approximation, and in the tail of a skewed count it can err in either direction. Bennett’s and Bernstein’s bounds, which are guarantees, ask for 34,065 and 34,395: a little over twice the exact number, which is what it costs to know only a variance and a ceiling rather than the distribution. Hoeffding’s bound asks for 7,377,759.
That last number does not depend on at all. Hoeffding’s bound needs trials to pin any average to within , whether the true chance is one in a thousand or one in two. It is the right number for a fair coin and roughly 480 times too many for this one. A planner who used it would run a study for years that needed weeks, and one who used the normal approximation would have no guarantee at all. The variance-aware bound is the one that is both safe and affordable.
The same regime explains a rule that medical statisticians use for events that have not yet been seen. If none of independent trials shows the event, then is a 95% upper bound for its probability — the rule of three — because a chance of would produce zero events in trials only with probability . The bound is linear in rather than in , and that is the Poisson side of Bernstein’s inequality: when the variance is as small as the mean, a single rare event is as informative as a whole standard deviation of a common one.
In practice the variance is not known in advance — it depends on the very being estimated. The standard answer is an empirical Bernstein bound, due to Andreas Maurer and Massimiliano Pontil in 2009 among others, which substitutes the sample variance and pays a small additional term for having estimated it. The shape survives: a Gaussian term governed by the variance, and a linear term governed by the range.
Where each bound belongs
The three bounds are not rivals so much as descriptions of three states of knowledge. Hoeffding’s bound is the right one when nothing is known beyond the range, and for terms whose variance is near the maximum it is nearly as good as the others. Bernstein’s bound is the one to write down: a single fraction, easy to invert for a sample size, and within a few percent of the best. Bennett’s is the one to compute when the last factor matters, and it is essentially exact for sums of rare events.
There is a fourth state of knowledge, and it is the one the ceiling hides. Every exponential bound here needs , the most a single term can exceed its average. When there is no ceiling — a term that is occasionally enormous, like an insurance claim or the running time of a randomised program — neither Bernstein’s nor Bennett’s bound applies, and the plain average of the samples genuinely does not concentrate exponentially. The median of many small averages is the repair for that case: it recovers an exponential confidence from the variance alone, by changing the estimator rather than the bound. Between them, the variance-aware inequalities and the median of means cover what can be said from a variance, with and without a ceiling.
The same division runs through no single input can move it far, whose bounded-differences bound is Hoeffding’s in disguise and inherits its blindness. That essay ended by noting that replacing the range of each increment by a bound on its conditional variance gives inequalities “of Freedman’s and Bernstein’s kind”. This is what that replacement buys when the terms are independent: the difference between a promise of 92% and a promise of two in a million.
Still open: a Bernstein inequality for dependent structures
For independent terms the picture is complete: Bennett’s bound is sharp at the level of generating functions, and nothing better follows from the variance and the ceiling alone. For dependent structures it is not. The bounded-differences method has a Bernstein version for martingales, due to David Freedman in 1975, but it needs the conditional variances of the increments, and for a complicated function of many inputs — the chromatic number of a random graph, the length of a longest increasing subsequence — nobody knows how to compute those conditional variances well enough to use it.
For some of those functions the true fluctuations are far smaller than any known inequality gives. The longest increasing subsequence of a random permutation of items fluctuates on the scale , a result of Jinho Baik, Percy Deift and Kurt Johansson from 1999 that needed the machinery of random matrices; general inequalities of Bernstein’s or Talagrand’s kind reach at best. Which general principle, if any, produces the true scale — rather than a problem-specific calculation — is open.
What the figures do not settle
Every tail probability and every sample size here is computed exactly from the binomial distribution, and every bound is checked against it at every point drawn; a bound that failed would have stopped the figure. The inequalities themselves are quoted, with their authors and dates, not proved, and the claim that the two-point variable has the largest generating function is checked for four variables at sixty-one values of rather than for the whole class.
The coins are independent throughout. Everything above depends on that, and the dependent case is exactly where drawn without putting back found that the helpful kind of dependence costs nothing — and where the open question above begins.
Shares its objects with
Essays that name at least two of the same things, and that neither author linked.
- When the whole histogram deviates — both name relative entropy, tail bound
Named objects
A dashed tag is an object no other essay names yet.
Concentration inequalityExtremal exampleHoeffding inequalityMoment generating functionPoisson approximationRelative entropyTail boundVariance