On this page
Flip a fair coin 1000 times and you expect 500 heads. You will rarely get exactly 500, but you will almost never get 600. A Chernoff bound, one of the standard concentration inequalities, turns "almost never" into a number you can prove: the total of many independent trials stays close to its average.
What is a Chernoff bound?
A Chernoff bound is an upper limit on the chance that a random variable lands far from its mean, found by applying Markov's inequality to e^(tX) instead of to X (Wikipedia: Chernoff bound). It is named after Herman Chernoff, who described the method in a 1952 paper in The Annals of Mathematical Statistics, though, as the same article notes, Chernoff himself attributed it to Herman Rubin.
The version most students meet is for a sum X of independent 0/1 variables (coin flips, yes/no trials) with mean μ = E[X]. For 0 < δ ≤ 1:
P(X ≥ (1+δ)μ) ≤ e^(−δ²μ/3)
The bound shrinks exponentially in μ and in the square of the relative deviation δ. Double the number of flips, keep δ the same, and the bound is squared.
How does the exponential-moment trick work?
Start from Markov's inequality: for a non-negative Y, P(Y ≥ a) ≤ E[Y]/a. On its own it is weak. The trick is to apply it to Y = e^(tX) for some t > 0, which turns a sum into a product.
Exponentiate: P(X ≥ a) = P(e^(tX) ≥ e^(ta)) ≤ E[e^(tX)] / e^(ta).
Use independence: E[e^(tX)] is the product of the E[e^(tXᵢ)] = 1 + pᵢ(e^t − 1), and each is at most e^(pᵢ(e^t − 1)) because 1 + x ≤ eˣ.
Multiply: E[e^(tX)] ≤ e^(μ(e^t − 1)). This is the moment generating function doing the work.
Optimise t, the step people skip: the inequality holds for every t > 0, so pick the best one. With a = (1+δ)μ that is t = ln(1+δ), giving the sharp form (e^δ / (1+δ)^(1+δ))^μ.
Simplify: the Chernoff bound article shows this is at most e^(−δ²μ/(2+δ)); since 2 + δ ≤ 3 when δ ≤ 1, it is at most e^(−δ²μ/3).
How likely are 600 heads in 1000 fair flips?
Let X be the number of heads in 1000 fair flips. Then μ = 500 and the variance is 1000 × ½ × ½ = 250. We want P(X ≥ 600), so δ = 100/500 = 0.2. Here are four answers, from loosest to exact.
Chebyshev: Chebyshev's inequality gives P(X is 100 or more away from 500) ≤ 250/100² = 0.025, about 1 in 40.
Chernoff: e^(−0.2² × 500/3) = e^(−6.67) ≈ 0.0013, about 1 in 790. The sharp form from step 4 gives about 0.00008.
Hoeffding: with each flip between 0 and 1, Hoeffding's inequality gives e^(−2 × 100²/1000) = e^(−20) ≈ 2.1 × 10⁻⁹, about 1 in 485 million.
Exact: adding C(1000, k)/2¹⁰⁰⁰ for k = 600 to 1000 gives about 1.36 × 10⁻¹⁰, roughly 1 in 7.3 billion.
Every line is true, yet Chebyshev and the exact answer differ by a factor of about 180 million. Chebyshev uses only the variance, so it falls like 1/t². Chernoff and Hoeffding use the whole moment generating function, so they fall like e^(−ct²). The normal approximation to the binomial lands close to the exact figure, but it is an estimate; the bounds are guarantees.
Now try 100 flips and 60 heads (μ = 50, variance 25, δ = 0.2). Chebyshev gives 25/10² = 0.25, the simple Chernoff form gives e^(−0.67) ≈ 0.51 and Hoeffding gives e^(−2) ≈ 0.14. With few trials the exponential bound can lose to the "weak" one, so compute more than one.
What does Hoeffding's inequality add?
Wassily Hoeffding's 1963 paper in the Journal of the American Statistical Association proved a bound for sums of independent variables that each lie in a known range [aᵢ, bᵢ]: P(S − E[S] ≥ t) ≤ exp(−2t² / Σ(bᵢ − aᵢ)²), as stated in the Hoeffding's inequality article.
It needs no 0/1 assumption: marks out of 10, sensor readings or any bounded quantity will do. And it depends on the number of trials n rather than on μ. For fair coins that makes it tighter than e^(−δ²μ/3). For rare events the comparison flips: if every trial has the same success chance p below 1/6 (and δ ≤ 1), the Chernoff exponent t²/(3μ) beats Hoeffding's 2t²/n.
How do you pick the right tail bound?
You only know the mean of a non-negative variable: use Markov.
You know the variance too: use Chebyshev, which does not even need independence.
Independent 0/1 trials with a known mean: use Chernoff, and the sharp form if you need a tighter number.
Independent and bounded, but not 0/1: use Hoeffding.
You need the actual probability, not a guarantee: compute it or approximate it, and say which you did.
If the moment generating function step still feels shaky, the Fermi Concept Library covers every concept in mathematics, each with its own lesson. To practise, the Fermi Problem Library has worked problems with a step-by-step solver that explains the reasoning rather than printing an answer.
Redo the 1000-flip example for 550 heads before you move on; it is the quickest way to feel how fast these bounds tighten.



