Bernstein's Inequality
A concentration bound that says a sum of bounded, independent random variables is unlikely to stray far from its expected value, with the bound tightening once you account for how much variance the variables actually have.
If you flip a fair coin a thousand times, common sense says the number of heads should land close to 500 — Bernstein's inequality is one of the tools that makes "close to" mathematically precise, and does a better job of it than a cruder bound like Chebyshev's inequality when the individual variables are well-behaved (bounded and not too spread out).
For independent, mean-zero random variables , each bounded by , and with total variance , Bernstein's inequality bounds the chance the sum strays past a threshold :
In plain English: for small deviations relative to , the bound behaves like a Gaussian tail (decaying as ), but as grows large the term takes over and the decay softens to — a compromise between the fast Gaussian-like decay you'd hope for and the slower decay that a single large, bounded term can actually produce.
For 1,000 independent $1-or-$0 bets with a 50% edge each (, ), the inequality bounds the probability the total sum exceeds its mean by more than 100: plugging in gives an exponent of roughly , an astronomically small probability — confirming that large deviations from a well-diversified sum of small, bounded bets are genuinely rare.
Bernstein's inequality bounds how far a sum of bounded, independent random variables can stray from its mean, using both the total variance and the largest possible single term — giving a tighter, more realistic tail bound than variance-only inequalities whenever the variables are known to be bounded.
Practice in interviews
Further reading
- Boucheron, Lugosi, Massart, Concentration Inequalities, ch. 2