advanced29 min studyLesson 691 in Mathematics

Exponential moments and the Chernoff method

Convert exponential moments into directed tail bounds and optimize only over the moment-generating function's valid domain.

On this page

What you’ll understand

  • Derive upper and lower tail bounds from exponential Markov inequalities.
  • Track the finite-mgf domain when optimizing a Chernoff bound.
  • Compute an optimized binomial bound and compare it with an exact probability.

Variance summarizes average squared fluctuation, while a rare upper tail can depend on much more of the distribution. Exponential moments amplify large values in a chosen direction and turn Markov's inequality into a flexible tail estimate. The method has only a few algebraic steps, but their assumptions matter: the sign of the exponential parameter chooses a tail, independence justifies factorization, and an optimizer must stay inside the domain where the moment exists.

Exponentiate a directed event

For a real random variable S and λ positive, the event S≥a implies exp(λS)≥exp(λa). Markov's inequality therefore gives a bound whenever the positive exponential moment is finite. Define the cumulant generating function K(λ)=log E exp(λS), allowing value infinity outside its domain. Minimizing K(λ)−λa over positive admissible parameters improves the estimate. The endpoint λ=0 always yields the trivial bound one, so an infimum can include it by continuity when the right-hand domain is nonempty.

The lower event S≤a instead uses λ negative; multiplying an inequality by λ reverses its direction before exponentiation. Equivalently apply the positive-parameter upper-tail method to −S. Finite positive moments alone say nothing comparable about a heavy lower tail. Centering is not needed for the basic Markov step, but concentration around the mean requires subtracting that mean and changes the cumulant by a linear term. A two-sided statement generally combines two directed bounds through a union bound.

P{S≥a}≤inf⁡λ>0: K(λ)<∞exp⁡{K(λ)−λa},K(λ)=log⁡EeλS\mathbb P\{S\ge a\}\le\inf_{\lambda>0:\,K(\lambda)<\infty}\exp\{K(\lambda)-\lambda a\},\qquad K(\lambda)=\log\mathbb E e^{\lambda S}
Positive λ controls the upper tail. A lower tail uses negative λ, or the same formula for −S.↔ Scroll wide equations horizontally.

Independence adds cumulants

For independent variables, the exponential of their sum is a product whose expectation factors. Their cumulants therefore add on the common finite domain. This turns a difficult distribution of a sum into individual moment calculations. Identical distribution is convenient but unnecessary. Dependence breaks this product identity: knowing every marginal mgf does not determine the sum's mgf. Conditional mgf bounds can replace independence for a martingale, but they require information at each step of the filtration rather than just unconditional moments.

For a Bernoulli variable of success probability p, the mgf is 1−p+p exp(λ), finite for every real λ. A binomial sum of n independent copies therefore has cumulant n log(1−p+p exp(λ)). At an upper threshold nq with p<q<1, differentiation gives the positive optimizer log(q(1−p)/(p(1−q))). Substitution yields the binary relative entropy exponent. The threshold need not be an integer; the event still means the integer count is at least its ceiling, and rounding the threshold upward can improve the bound.

P{K≥nq}≤e−nD(q∥p),D(q∥p)=qlog⁡qp+(1−q)log⁡1−q1−p(0<p<q<1)\mathbb P\{K\ge nq\}\le e^{-nD(q\|p)},\qquad D(q\|p)=q\log\frac qp+(1-q)\log\frac{1-q}{1-p}\quad(0<p<q<1)
Here K is Binomial(n,p). The logarithms are natural, and the displayed formula concerns the upper tail.↔ Scroll wide equations horizontally.

Optimization is constrained by existence

An exponential variable of rate one has mgf 1/(1−λ) only for λ<1. Treating its algebraic expression as valid for larger λ would produce nonsensical bounds and can even introduce the logarithm of a negative number. More generally a stationary point found by differentiating a formal expression is a candidate only inside the finite-moment domain. If the infimum lies at an open boundary, take a limit from inside that domain rather than asserting an unattained minimizing parameter exists.

A Chernoff bound is an upper bound, not an approximation with a guaranteed small relative error. It can capture the correct exponential scale while missing a substantial prefactor. Exact finite distributions provide a useful audit: the bound must dominate the event probability, but equality is not expected. For very small exponents it can remain close to one and convey little information. A result above one should simply be capped at one; that numerical weakness does not invalidate the underlying inequality.

At least eight heads in ten tosses

Let K be binomial with n=10 and p=1/2. Optimize an exponential upper bound for K≥8 and compare it with the exact probability.

  1. Write the logarithmic bound as 10 log((1+exp(λ))/2)−8λ. Its derivative vanishes when exp(λ)/(1+exp(λ))=0.8, giving λ=log4, which lies in the entire finite-mgf domain.

  2. The optimized exponent is −10D(0.8||0.5), where D is approximately 0.192744757. Hence the tail is at most exp(−1.92744757), approximately 0.145519.

  3. The exact count probability is (choose(10,8)+choose(10,9)+choose(10,10))/2¹⁰=(45+10+1)/1024=0.0546875. It lies below the bound, with room left by exponential Markov.

The result

The optimized Chernoff bound is about 0.14552, while the exact probability is 0.0546875. The comparison checks validity without claiming equality.

Explore the model

Interactive lab

Interactive lab · probability

Sum the exact upper-tail bars

Pause and Reset, then set p = 0.5 and trials n = 10. Predict mean five and variance 2.5. Add the bars for counts eight through ten and compare 0.0546875 with the paper Chernoff bound 0.145519. Reset and set both p = 0.5 and n = 12; for counts nine through twelve the exact tail is 0.072998, below exp(−12D(0.75||0.5))≈0.208098. The bars are exact binomial masses, not random tosses or a fitted tail curve.

Sum the exact upper-tail barsThese are exact binomial probabilities for independent trials with one fixed success probability. Playback tours the distribution; it does not resample outcomes. Current readings: Mean · np: 5; Variance · np(1−p): 2.5; Total probability: 1. All parameters are adjustable with the labeled controls below.03581000.070.150.220.3Successes kP(X = k)k = 0 · P = 9.77e-4
Exact probabilityHighlighted outcomeMean np
Mean · np
5
Variance · np(1−p)
2.5
Total probability
1
t = 0 s

These are exact binomial probabilities for independent trials with one fixed success probability. Playback tours the distribution; it does not resample outcomes. Parameter changes pause playback and recompute the model at the current elapsed time. Reset restores both parameters and returns time to zero. Playback starts paused. Adjust either parameter, then choose Play or Step.

Look forAn exact finite distribution separates the actual tail probability from an exponential upper bound.

Check your understanding

An mgf is finite only for λ<1. An unconstrained calculation proposes λ=1.3 for an upper tail. What is justified?

Try it yourself

For X exponential of rate one, derive a Chernoff upper bound for P(X≥3). State the optimizer and compare with the exact tail exp(−3).

Take a moment to make a prediction or work it out on paper. Open a hint when you need one.

Give me a hint

Minimize −3λ−log(1−λ) over 0<λ<1. The derivative contains 1/(1−λ).

Compare with the solution

The derivative is −3+1/(1−λ), so the admissible optimizer is λ=2/3. The logarithmic bound becomes −2+log⁡3-2+\log3, giving 3e−2≈0.4060063e^{-2}\approx0.406006. The exact probability is e−3≈0.0497871e^{-3}\approx0.0497871, well below the bound. This is a single-variable example where exponential Markov is loose even after optimization. The finite-mgf restriction λ<1 is essential: substituting a larger parameter into 1/(1−λ) would not represent an expectation and could not support a probability inequality.

Take it with you

  • The sign of the exponential parameter selects the tail being controlled.
  • Independent summands add cumulants only on their common finite-moment domain.
  • An optimized exponential bound can be valid and still substantially exceed the exact probability.

Read further

Original sources and deeper explanations to follow at your own pace.

Optional progress, saved in this browser when available. Revisit any lesson at any time.

Lesson not marked complete.