Concentration Inequalities
How likely is a fair coin, tossed a million times, to land heads at least 51% of the time? A crude bound from Markov and Chebyshev Inequalities says the probability is at most about . The truth is smaller than . This gap is not a curiosity. It is the difference between an inequality that is merely true and one that is useful. Closing that gap is the subject of concentration inequalities. Concentration inequalities quantify a single intuitive phenomenon. A sum of many independent, weakly-behaved random variables is astonishingly unlikely to stray far from its mean. Chebyshev's inequality already tells us this. But it only offers a polynomial rate in the deviation. The insight that upgrades polynomial control to exponential control is the Chernoff bound. Instead of bounding by controlling moments of , one controls the moment generating function . One then optimizes over the auxiliary parameter . For sums of independent bounded random variables, this optimization can be carried out explicitly. This yields Hoeffding's inequality, one of the most quoted results in probability, statistics, and learning theory. The payoff is enormous. The Central Limit Theorem tells us that is approximately Gaussian for large . Chebyshev gives a bound that decays like . Chernoff–Hoeffding gives a bound decaying like instead. This bound is valid for every , not just asymptotically. It requires no distributional assumption beyond boundedness. This non-asymptotic, distribution-free exponential decay is exactly what modern statistics needs. Randomized algorithms and machine learning theory need it too. They need finite-sample guarantees that hold with overwhelming probability after a modest number of trials. This article develops the machinery from first principles. We derive the general Chernoff technique. We prove Hoeffding's Lemma, the key sub-Gaussian bound on bounded mean-zero variables. We assemble Hoeffding's inequality for sums and averages. We work two asymmetric numerical examples. Finally, we show precisely where boundedness cannot be dropped.
- Markov/Chebyshev give polynomial tail bounds; Chernoff bounds exploit to get exponential tail bounds.
- The Chernoff bound is , valid for any real random variable and any .
- Hoeffding's Lemma bounds the MGF of any mean-zero variable confined to by a Gaussian-type MGF with variance proxy .
- Hoeffding's Inequality gives for independent bounded summands.
- Unlike Chebyshev's decay, this bound decays exponentially in , and needs no assumption on higher moments or on the underlying distribution.
- Key idea: optimize an exponential tilt over instead of using a fixed power, converting Markov's crude polynomial control into a sharp exponential one.
Where this lives today
Chernoff–Hoeffding bounds are the workhorse of randomized algorithm analysis: to show a randomized algorithm succeeds with high probability after repeated independent trials (e.g. randomized primality testing, Monte Carlo estimation, load balancing), one directly applies Hoeffding-type bounds to certify exponentially small failure probability as the number of trials grows. In statistical learning theory, Hoeffding's inequality underlies PAC (Probably Approximately Correct) learning bounds: the empirical risk of a classifier concentrates exponentially around its true risk, which is what makes finite training-sample generalization guarantees possible. Coupled with a union bound over a finite (or VC-dimension-controlled) hypothesis class, this yields the classical sample-complexity bounds of statistical learning theory. In cryptography, concentration bounds certify that adversarial guessing strategies or key-recovery attacks succeed with negligible probability, and they justify the security parameters chosen for randomized protocols. In statistics, Hoeffding-type inequalities give non-asymptotic confidence intervals for bounded data (e.g. proportions, bounded scores, ratings) that are valid at every sample size , unlike the asymptotic normal-approximation intervals derived from the Central Limit Theorem, which are only guaranteed accurate as . In physics and engineering, related large-deviation techniques (Cramér's theorem, of which the Chernoff bound is the elementary precursor) describe rare-event probabilities in statistical mechanics, queueing theory, and information theory (e.g. bounding decoding error probabilities in channel coding).
:::quiz[In Hoeffding's Lemma, a mean-zero variable supported on is shown to be sub-Gaussian with variance proxy]
- ✓
:::faq[Does Hoeffding's inequality require symmetric intervals like ?] No. The interval for each can be any bounded interval, not necessarily symmetric about or about the mean. The bound depends only on the length , not on the location of the interval; shifting a variable by a constant does not change its range length and leaves the Hoeffding bound unchanged, consistent with the proof's use of the mean-zero centered variable .
Ask the tutor: How does the Chernoff–Hoeffding technique generalize to martingale differences via the Azuma–Hoeffding inequality?
Let be a real random variable. Its moment generating function (MGF) is
whenever this expectation is finite. A random variable with is called sub-Gaussian with variance proxy if
This is precisely the MGF bound satisfied by a mean-zero Gaussian random variable , whose MGF equals exactly. Sub-Gaussianity says 's tails are no heavier than a Gaussian's, even if is far from Gaussian in distribution (for instance, if is bounded or discrete).
Intuition
Markov's inequality bounds using only ; Chebyshev upgrades this using , i.e. the second moment of a centered variable. The natural next step is to use all moments simultaneously — and the object that packages every moment at once is the moment generating function, since . Applying Markov's inequality not to but to the tilted, strictly increasing transform for a well-chosen converts a tail event into , and Markov applied there gives a bound involving . Because this holds for every , we may minimize over , and this single extra degree of freedom is what produces exponential rather than polynomial decay. For sums of independent variables, MGFs multiply: , turning a sum into a product and letting the bound compound across all terms — this multiplicativity is the structural reason the tail probability ends up exponentially small in . Hoeffding's contribution is a clean, universal bound on the MGF of any bounded mean-zero variable (Hoeffding's Lemma), which converts "boundedness" into "sub-Gaussianity," after which the Chernoff machine runs automatically.
Let be a real random variable such that is finite for in some open interval containing . Then for every real number ,
and symmetrically, for every real ,
Technique: Markov's inequality applied to an exponential transform. Fix for which . The function is strictly increasing on since , so the events and are identical:
Hence . The random variable is non-negative, so Markov and Chebyshev Inequalities (Markov's inequality) applies directly to with threshold :
This chain of (in)equalities holds for the fixed we chose, but was arbitrary among values where is finite. Since the left side does not depend on , we may take the infimum of the right side over all valid without affecting the validity of the bound on the left:
For the second claim, fix . Then is strictly decreasing, so , and the identical Markov argument applied to with threshold gives for this ; taking the infimum over completes the proof.
∎Let be a random variable with and for real numbers . Then for every ,
Equivalently, is sub-Gaussian with variance proxy .
Technique: convexity bound + Taylor expansion with a variational (max-variance) step. Fix ; the case is trivial (), so assume . Since almost surely, write as a convex combination of the endpoints: for ,
Because is convex, applying convexity pointwise (not the expectation yet) gives
Taking expectations (linearity, and using since ), and writing (note ), we get
Set and factor out :
Define , using (since and gives ). We must show
Compute derivatives in . Let , so . Then
Note , and . Now compute the second derivative:
Let (this is , a probability-like weight). Then . Since for all (as is maximized at with value , by elementary calculus on the quadratic ), we get
By Taylor's theorem with the Lagrange remainder, for some between and ,
Therefore ; unwinding, . Exponentiating gives the claimed bound.
∎Let be independent random variables such that, for each , takes values in a bounded interval almost surely (with ). Let and . Then for every ,
and, by the same bound applied to ,
In particular, if and , then for every ,
Technique: Chernoff bound + Hoeffding's Lemma + independence (MGF multiplicativity). Let , so and almost surely, an interval of the same length . Let .
Step 1 (MGF of via independence). Since are independent, so are (each is a fixed function of alone). For independent random variables, the MGF of the sum is the product of the MGFs: for any such that each is finite,
where the last equality uses independence of the (expectation of a product of independent random variables is the product of expectations — itself a direct consequence of independence of the underlying -algebras, applied to the measurable functions ). Each factor here is finite because is bounded, so is bounded, hence integrable.
Step 2 (bound each factor by Hoeffding's Lemma). By Hoeffding's Lemma applied to each (mean zero, supported on an interval of length ),
Multiplying across ,
Step 3 (Chernoff optimization). By the Chernoff Bound applied to with threshold ,
The exponent is a convex quadratic in (since whenever not all ), minimized where , i.e. at — a valid choice since as required by the Chernoff bound. Substituting,
Therefore
This proves the first stated inequality.
Step 4 (the two-sided and averaged versions). Applying the identical argument to , whose summands are mean-zero and supported on intervals of the same lengths , gives
Since , a union of two disjoint events, subadditivity of probability gives the two-sided bound as the sum of the two one-sided bounds, i.e. twice the common bound. Finally, dividing by : , so substituting for in the two-sided bound gives
Worked examples
Example 1 — asymmetric Bernoulli-type trials with unequal ranges. Suppose are independent, with scaled to (i.e. with probability and otherwise), where the ranges alternate: for odd ( of them) and for even ( of them), and varies but is unspecified beyond boundedness (Hoeffding's inequality needs no knowledge of at all). We want a bound on where . Here for all , so . Compute
By Hoeffding's inequality with :
So regardless of the individual success probabilities (they could all be different, unknown, even adversarially chosen), the chance the weighted sum exceeds its mean by is at most about . Note this bound required zero distributional information beyond the ranges — a striking illustration of the theorem's distribution-free character.
Example 2 — comparing Chebyshev and Hoeffding numerically, sample mean of -valued variables. Let be i.i.d. with almost surely, and (say) — consistent with, e.g., a scaled Beta-type distribution on with these moments. We want . Chebyshev. Since , Chebyshev's inequality gives
Hoeffding. Here for every , so . With , :
Compute the exponent: , so the bound is . Here Hoeffding's bound () is worse than Chebyshev's () — a deliberately chosen regime to show Hoeffding is not universally sharper; it wins decisively as grows (its bound decays like versus Chebyshev's ), but for moderate with a small true variance relative to the range, the variance-based bound can be tighter. This is an important scope caveat: Hoeffding uses only the range , discarding variance information entirely, so when the true variance is much smaller than the crude proxy implies, Chebyshev can win at finite .
Hoeffding's inequality requires each to be supported on a bounded interval . Drop this hypothesis and the exponential decay can fail entirely — even for i.i.d. mean-zero variables with finite variance. Let be i.i.d. with the (heavy-tailed but finite-variance) density
symmetrized so (the density above, restricted and signed symmetrically about , gives pattern — concretely, take with for , a symmetric Pareto-type law). This law has and finite variance (a short computation with the Pareto tail exponent shows the second moment converges, e.g. ), but its moment generating function is infinite for every :
because is not integrable at for any (the exponential eventually dominates any polynomial decay). Consequently the entire Chernoff machine breaks down at its first step: the bound is vacuous, since for every , giving the useless bound . No exponential tail bound of Hoeffding's type can hold for : it is a classical fact for such regularly-varying tails that decays only polynomially in (governed by the single-summand tail, via subexponential large-deviation theory), not exponentially. Chebyshev's inequality still applies here (it only needs finite variance) and gives the correct polynomial-order bound — but Hoeffding's exponential bound is simply unavailable. This shows boundedness (or at least an exponential-moment / sub-Gaussian condition) is not a technical nicety but load-bearing: without it, the qualitative conclusion (exponential decay) is false, not merely unproved.
Scope, edge cases & common traps
| Situation | What applies | What can go wrong |
|---|---|---|
| bounded, independent, ranges known | Hoeffding's inequality, exact form above | None — hypotheses fully met |
| independent, unbounded but sub-Gaussian (e.g. Gaussian) | A sub-Gaussian version with the same proof shape works, using the variance proxy directly | Must re-derive/quote the sub-Gaussian MGF bound; plain Hoeffding's Lemma no longer applies |
| dependent (e.g. Markov chain, martingale differences) | Needs Azuma–Hoeffding for martingale differences, not this i.i.d./independent-sum theorem | Applying the stated theorem directly is invalid — independence is used essentially in Step 1 (MGF multiplicativity) |
| unbounded, only finite variance (heavy tails) | Chebyshev still valid; Hoeffding's Lemma inapplicable | Common error: quoting Hoeffding "because the variance is finite" — variance finiteness does not imply boundedness or sub-Gaussianity |
| Small , small true variance vs. range | Both Chebyshev and Hoeffding valid, compare numerically | Assuming Hoeffding is always tighter than Chebyshev — false, as Example 2 shows |
The mathematician behind it
Origins · 1 minWassily Hoeffding and how this was discovered
Wassily Hoeffding was born in Finland to a family that soon relocated, and he was educated in Germany, earning his doctorate in Berlin in 1940 under difficult wartime circumstances. He emigrated to the United States in the 1940s and became one of the founding figures of modern mathematical statistics at the University of North Carolina, where he worked alongside a generation building rigorous non-parametric and asymptotic theory. Hoeffding is remembered for U-statistics (a broad generalization of the sample mean and variance with elegant asymptotic theory) and for the 1963 paper "Probability Inequalities for Sums of Bounded Random Variables," which introduced the inequality bearing his name and remains, six decades later, one of the most cited papers in all of statistics and computer science.
Is Hoeffding's inequality only for i.i.d. random variables?
No. The version proved here requires only independence, not identical distribution: each may have its own distribution, as long as it is confined to its own interval . This is deliberately more general than the i.i.d. case, and is essential in applications like weighted sums, unequal sample sizes, or heterogeneous randomized algorithms where different trials have different (possibly unknown) success probabilities and ranges, as in Worked Example 1.
How does Hoeffding's inequality compare to the Central Limit Theorem?
The Central Limit Theorem gives an asymptotic approximation: as , converges in distribution to a Gaussian, but says nothing precise about any fixed, finite , and gives no explicit tail bound. Hoeffding's inequality gives an explicit, valid-for-every-, non-asymptotic exponential bound on the tail probability, at the cost of using only boundedness rather than the exact limiting shape. The two views are complementary: CLT describes the bulk of the distribution's shape in the limit; Hoeffding controls the tails uniformly at every finite sample size.
Why does the bound involve rather than the variance ?
Hoeffding's Lemma bounds the MGF using only the range of , producing the variance proxy , which is always an upper bound on the true variance (this can be shown via the Bhatia–Davis inequality: for , , with equality only for a two-point -valued variable). Using range instead of variance sacrifices sharpness when the true variance is much smaller than , but gains distribution-freeness: no knowledge of the exact variance, shape, or higher moments of is required, only its support.
Can Hoeffding's inequality be applied to sampling without replacement?
Not directly — the proof relies essentially on independence for the MGF factorization step. Sampling without replacement from a finite population induces negative dependence among draws. However, a classical extension (the Hoeffding–Serfling inequality) proves an analogous exponential bound for sampling without replacement, exploiting the negative correlation structure; this is a genuinely different theorem requiring a separate proof, not a corollary of the independent-sum version stated here.
What happens to the bound as for the sample mean version?
For the averaged form, when all ranges are equal to a common length (since then , and the in the numerator cancels one power of in the denominator). This bound tends to exponentially fast in for any fixed , which is a quantitative, non-asymptotic form of the weak law of large numbers with an explicit convergence rate, strictly stronger than the qualitative statement the law itself provides.
Is the constant in Hoeffding's inequality tight?
The variance proxy in Hoeffding's Lemma is tight in the sense that it is attained (in the limit) by a symmetric two-point Bernoulli-type variable taking values and with probabilities approaching each. For general bounded distributions the bound can be loose (as in Worked Example 2, where the true variance is far below the proxy), so tighter but more complex alternatives (Bennett's or Bernstein's inequalities, which incorporate the true variance) are often preferred when variance information is available.