Concentration Inequalities
Markov to McDiarmid, each with its hypotheses, a complete proof, an interpretation and the regime in which it is the right tool.
Every inequality on this page bounds the same kind of quantity — the probability that a random variable is far from its mean — and each pays for its conclusion with a different hypothesis. The table is the summary; the rest of the page is the proofs.
| Inequality | Hypothesis | Tail bound on | Decay | | --- | --- | --- | --- | | Markov | | (one-sided, about 0) | | | Chebyshev | | | | | Chernoff | MGF finite | | shape of | | Hoeffding | , independent, | | Gaussian | | Bernstein | as Hoeffding, plus variance | | Gaussian then exponential | | Azuma | martingale, increments in | | Gaussian | | McDiarmid | with bounded differences | | Gaussian | | Gaussian concentration | -Lipschitz, | | Gaussian, dimension-free |
Run it: Concentration inequalities, side by sideEmpirical tail probabilities of a sample mean against the Markov, Chebyshev, Hoeffding and Bernstein bounds.The two moment inequalities
Let be a random variable and . Then
Assumptions
Non-negativity of , and that is all. No independence, no variance, no boundedness. This is why Markov is the foundation on which every other inequality here is built: all of them are Markov applied to a cleverly chosen non-negative function of .
If then for all ,
More generally, applying Markov to gives , so each finite moment buys one more power of . Sub-Gaussianity is, in this light, exactly the statement that all moments are available with the right growth, which is what upgrades polynomial decay to Gaussian decay.
Both bounds are achieved with equality by explicit distributions, so neither can be improved without strengthening its hypotheses.
Key idea
These extremal distributions are worth staring at: they put all of their deviation mass at exactly the threshold . That is what a distribution with only a variance constraint is allowed to do, and it is why Chebyshev cannot see the difference between a Gaussian and a two-point distribution. Improving on Chebyshev requires a hypothesis that rules such distributions out — boundedness of many independent summands does exactly that.
The Chernoff method
Let have cumulant generating function , finite on an interval containing . Then for every ,
where is the Legendre transform of .
Hoeffding's inequality
Let be independent with almost surely, and let . Then for every ,
and the two-sided bound holds with an extra factor . In particular, for i.i.d. and ,
What this does not say
Hoeffding's bound does not involve the variance of the at all — only the lengths of their ranges. For a Bernoulli variable with small , the range is while the variance is , and Hoeffding is correspondingly loose. It is also useless for unbounded variables: there is no version of this theorem for Gaussian summands via this route, though of course the sum of Gaussians is exactly Gaussian.
Inverting the bound is the form used in practice. Setting the right-hand side to and solving for : with probability at least ,
Note the shape: the dependence on the confidence level is , which is extremely mild — buying three more orders of magnitude of confidence costs a factor of about in the bound. This is the practical content of exponential concentration.
Bernstein's inequality
Let be independent and centred with almost surely, and set . Then for all ,
Key idea
Read the denominator. For the term dominates and the bound is — Gaussian, with the true variance, not the range. For the term dominates and the bound is — exponential. Bernstein therefore interpolates between the two behaviours, with the crossover at the scale set by the ratio of variance to range. Hoeffding only ever gives the first shape, with replaced by the worst case compatible with the range.
Beyond independence: Azuma and McDiarmid
A sequence adapted to a filtration is a martingale if each is integrable and for all . Its increments are , which satisfy .
Let be a martingale whose increments satisfy almost surely. Then for all ,
Let be independent random variables with taking values in a set , and let satisfy the bounded differences condition: for each there is with
for all and all . Then for and every ,
Key idea
McDiarmid is the reason uniform convergence arguments work. The quantity of interest there is , which is a complicated function of the whole sample — but changing one sample point changes each empirical risk by at most , and the supremum is -Lipschitz in the uniform norm, so has bounded differences . McDiarmid then concentrates around its mean at rate , and the remaining work — bounding — is what Rademacher complexity does.
Gaussian concentration
Let and let be -Lipschitz with respect to . Then
equivalently for an absolute constant .
What this does not say
The dimension appears nowhere in the conclusion. That is the whole point, and it is the single most important structural fact in high-dimensional probability. But read the hypothesis carefully: must be Lipschitz in the Euclidean norm, and many natural functions are not Lipschitz with a dimension-free constant. is -Lipschitz, and the theorem correctly returns a bound with a in it. The theorem is dimension-free; individual applications are only as dimension-free as their Lipschitz constants.
The theorem also says nothing about , which is often the harder quantity. Concentration tells you the value is near some number; identifying that number is a separate problem.
is -Lipschitz, so for ,
with no dependence on whatsoever. Since , this is the statement explored numerically on the norm concentration page.
Problems
Markov and Chebyshev are attainedProof · Foundation · 15 min Derive Hoeffding's inequality from Hoeffding's lemmaProof · Intermediate · 30 min Locating the Bernstein crossoverNumerical · Intermediate · 30 min Applying McDiarmid to a medianProof · Advanced · 30 min Azuma for a random walk with driftProof · Intermediate · 30 min Simulate and compare the concentration inequalitiesCoding · Intermediate · 1 hour The Chernoff exponent is a Legendre transformProof · Advanced · 1 hourReferences
- BookRoman Vershynin (2018). High-Dimensional Probability: An Introduction with Applications in Data ScienceChapters 2 and 5. The results below are classical; the proofs here are written out independently and the constants are the ones the arguments give.
- BookStéphane Boucheron, Gábor Lugosi and Pascal Massart (2013). Concentration Inequalities: A Nonasymptotic Theory of IndependenceThe definitive treatment, including the entropy method and the log-Sobolev route to Gaussian concentration.
- PaperWassily Hoeffding (1963). Probability inequalities for sums of bounded random variables
- SurveyColin McDiarmid (1989). On the method of bounded differences
These works are cited as sources to read, not reproduced. All exposition, examples and problems on this site are written independently; where an argument is standard, the citation points to a canonical treatment.
Results stated on this page
- TheoremMarkov's inequalityproof includedA non-negative random variable exceeds t with probability at most its mean over t.
- CorollaryChebyshev's inequalityproof includedDeviations of size t have probability at most the variance over t squared.
- PropositionThe Chernoff methodproof includedOptimising an exponential Markov bound over the tilting parameter yields the Legendre transform of the cumulant generating function.
- TheoremHoeffding's inequalityproof includedSums of independent bounded variables have Gaussian tails with parameter determined by the ranges alone.
- TheoremBernstein's inequalityproof includedFor bounded variables, a tail bound interpolating between Gaussian behaviour at small deviations and exponential behaviour at large ones.
- TheoremAzuma–Hoeffding inequalityproof includedHoeffding's bound for martingales with bounded increments, requiring no independence.
- TheoremMcDiarmid's bounded differences inequalityproof includedA function of independent variables that changes little when any single coordinate is changed concentrates around its mean.
- TheoremGaussian concentration for Lipschitz functionsA Lipschitz function of a standard Gaussian vector is sub-Gaussian with parameter equal to its Lipschitz constant, with no dependence on dimension.
- PropositionMarkov and Chebyshev are attainedproof includedBoth inequalities are tight, so their weakness is a property of their hypotheses and not of their proofs.
Experiments
Problems (8)
All problems- Azuma for a random walk with driftProofIntermediate⏱ 30 min
- Locating the Bernstein crossoverNumericalIntermediate⏱ 30 min
- The Chernoff exponent is a Legendre transformProofAdvanced⏱ 1 hour
- Derive Hoeffding's inequality from Hoeffding's lemmaProofIntermediate⏱ 30 min
- Markov and Chebyshev are attainedProofFoundation⏱ 15 min
- Applying McDiarmid to a medianProofAdvanced⏱ 30 min
- Simulate and compare the concentration inequalitiesCodingIntermediate⏱ 1 hour
- Prove the Hanson–Wright inequalityProofOlympiad / Extreme⏱ 1 day