Why Variance and Range Both Matter
A tail bound for a sum can improve when its summands have small variance, even if they are allowed to vary over a relatively wide interval. Bernstein’s inequality makes this improvement explicit while retaining protection from unusually large individual summands. Its denominator contains both the sum’s variance and a term determined by the largest summand bound. For moderate deviations, variance can dominate; for large deviations, the range term limits how quickly the exponent grows.
Let \(X_1,\ldots,X_n\) be independent and centered, and write \(S=\sum_{i=1}^n X_i\). Define the total variance \(v=\sum_{i=1}^n E[X_i^2]\). The bound below applies when each \(X_i\) is bounded in absolute value by the same constant. The summands need not have the same distribution.
Bernstein’s Inequality
The parameter \(v\) records the aggregate spread of the summands, while \(b\) controls the largest possible size of any one summand. Both are required in the stated inequality. For the lower tail, apply the one-sided inequality to \(-X_1,\ldots,-X_n\): these variables remain independent and centered, have the same variances, and satisfy the same absolute bound. The two-sided result then follows by adding the probabilities of the upper- and lower-tail events.
If \(X_i\) is known to lie in an interval \([a_i,c_i]\) and is centered, its range width \(c_i-a_i\) is a valid absolute bound: \(E[X_i]=0\) lies in that interval, so \(|X_i|\le c_i-a_i\) almost surely. Thus one may take \(b=\max_i(c_i-a_i)\). A sharper valid absolute bound can be used when available.
Two Useful Forms of the Bound
The denominator in Bernstein’s exponent gives a convenient way to see its two regimes. Since \(v+bt/3\le 2\max\{v,bt/3\}\), for \(v,b,t>0\),
Therefore the one-sided probability is at most the exponential of the negative of this minimum. When \(t\) is small relative to \(v/b\), the quadratic term \(t^2/(4v)\) is the smaller term and the exponent is variance-sensitive. For larger \(t\), the linear term \(3t/(4b)\) can be the smaller one. This comparison describes the bound’s regimes; it does not say that the inequality is an approximation to the true tail.
To verify the threshold, set \(a=\sqrt{2vx}\) and \(c=2bx/3\), so \(t=a+c\). Direct expansion gives
Thus \(t^2/[2(v+bt/3)]\ge x\). Substitution into Bernstein’s inequality proves the claim. Applying the same argument to \(-S\) and using the union bound gives
Worked Applications
Worked Example: A Bernoulli Sample Mean
Let \(Y_1,\ldots,Y_{50}\) be independent Bernoulli random variables with success probability \(p=0.2\). Bound the probability that their sample mean exceeds \(p\) by at least \(0.1\).
Set \(X_i=Y_i-p\). Then \(E[X_i]=0\), and \(S=\sum_i X_i\). Since \(Y_i\) is either 0 or 1, \(X_i\) is either \(-0.2\) or \(0.8\), so \(b=0.8\) is valid. The variance of each summand is \(p(1-p)=0.2(0.8)=0.16\), and therefore \(v=50(0.16)=8\).
The sample-mean event is equivalent to a sum event: \(50^{-1}\sum_iY_i-p\ge0.1\) if and only if \(S\ge50(0.1)=5\). Bernstein’s inequality yields
The bound uses the actual variance and the centered Bernoulli range. Replacing \(b=0.8\) by the looser bound \(b=1\) would still be valid, but would give a weaker exponent.
Worked Example: Bounded Measurements With Small Total Variance
Suppose \(X_1,\ldots,X_{100}\) are independent and centered, each lies in \([-1,1]\), and their total variance is \(v=4\). Find a two-sided Bernstein bound for \(P(|S|\ge5)\).
Here \(b=1\), \(t=5\), and \(v=4\). The two-sided inequality gives
The variance contribution is \(4\), while the range contribution \(bt/3\) is \(5/3\). Both enter the denominator. The conclusion is an upper bound on the probability, not a claim that the actual probability is close to \(0.220\).
Worked Example: A Weighted Sum With Unequal Ranges
Let \(Z_1,\ldots,Z_4\) be independent Bernoulli random variables with success probability \(1/2\), and define \(S=(Z_1-1/2)+2(Z_2-1/2)+(Z_3-1/2)+3(Z_4-1/2)\). Bound \(P(S\ge3)\).
Each summand is centered. Their absolute bounds are respectively \(1/2,1,1/2,3/2\), so \(b=3/2\) is valid. The variances are respectively \(1/4,4(1/4),1/4,9(1/4)\), giving \(v=(1+4+1+9)/4=15/4\). Taking \(t=3\), Bernstein’s inequality gives
The largest weighted summand determines \(b\), but every summand contributes to \(v\). This distinction matters when the weights or variances differ substantially.
Common Mistakes and Interpretation
- Using the variance of one summand in place of total variance. The theorem requires \(v=\sum_i\operatorname{Var}(X_i)\). For identically distributed summands, this is \(n\operatorname{Var}(X_1)\), not just \(\operatorname{Var}(X_1)\).
- Forgetting to center the variables. The theorem applies to \(X_i\) with \(E[X_i]=0\). For a sum of noncentered observations \(Y_i\), first use \(X_i=Y_i-E[Y_i]\), then express the deviation from the sum of their means.
- Using an invalid bound for \(b\). The condition is \(|X_i|\le b\) almost surely for every summand. A bound on the average size is not a substitute for a bound on each summand.
- Confusing a sum threshold with a sample-mean threshold. If \(\bar Y=n^{-1}\sum_iY_i\), then \(\bar Y-E[\bar Y]\ge\varepsilon\) corresponds to a centered-sum threshold \(t=n\varepsilon\), not \(t=\varepsilon\).
- Dropping the range term for large deviations. The denominator includes \(bt/3\) as well as \(v\). Omitting it does not follow from Bernstein’s inequality and can produce an unjustified, overly strong bound.
Bernstein’s inequality is useful when a variance bound is more informative than a range bound alone. It can give sharper control for sums whose individual contributions are bounded but whose total variance is small. The two inputs should be assessed separately: variance summarizes aggregate fluctuation, whereas \(b\) guards against large individual contributions.
Check Your Understanding
Use the hypotheses and forms of Bernstein’s inequality above to answer these questions.
- For independent centered \(X_i\) with \(|X_i|\le b\), what quantity is denoted by \(v\), and how does it enter the one-sided bound?
- If the summands are centered and lie in intervals of widths \(2,1,\) and \(4\), what common range-width bound may be used for \(b\)?
- For an upper deviation of \(\varepsilon\) in a sample mean based on \(n\) observations, what threshold \(t\) should be used for the centered sum?
- Why does applying the one-sided inequality to \(-X_i\) give a lower-tail bound with the same \(v\) and \(b\)?
- In the exponent comparison, which term controls the bound when \(t\) is small relative to \(v/b\), and which term can control it for large \(t\)?