Tutorials › Statistical Theory I - Probability and Distribution Theory › Common Errors in Applying Concentration Inequalities

Concentration and Exponential Bounds · Tutorial 943 of 994

Common Errors in Applying Concentration Inequalities

Learn to check the assumptions and arithmetic behind concentration inequalities before interpreting their tail bounds.

Advanced 11 min read

What You'll Learn

  • Translate an event for a sample sum into a deviation from its expectation.
  • Check independence and the range widths required by Hoeffding’s inequality.
  • Distinguish a variance bound from the additional boundedness condition in Bernstein’s inequality.
  • Identify when an inequality controls one tail and when a two-sided bound is needed.
  • Recognize when a simplified quadratic tail bound is justified by the deviation size.
  • Diagnose invalid bounds by comparing their assumptions with the random variables in question.

Why Concentration Bounds Need Careful Checking

A concentration inequality can turn a complicated probability into a short expression, but the expression is useful only if its assumptions match the model and its event is written correctly. A misplaced mean, an incorrect range length, or a one-sided bound applied to an absolute deviation can make a formally neat calculation misleading. The essential habit is to check the random variables, the event, the hypotheses, and the deviation scale before evaluating an exponential.

This tutorial focuses on those checks. We use Hoeffding’s inequality for independent bounded variables and Bernstein’s inequality for independent bounded, mean-zero variables. The key issue is not memorizing another list of bounds; it is knowing which quantity each bound controls and what must be true before applying it.

State the Event as a Centered Deviation

Definition: The centered version of a random variable \(X\) is \(X-E[X]\), provided \(E[X]\) exists. For a sum \(S=\sum_{i=1}^n X_i\) with finite expectations, its centered deviation is $$ S-E[S]=\sum_{i=1}^n(X_i-E[X_i]). $$

For example, an event that a sample mean exceeds a target is not automatically an event that the centered mean exceeds that target. If \(\bar X=n^{-1}\sum_i X_i\), then $$ \{\bar X\geq c\}=\left\{\bar X-E[\bar X]\geq c-E[\bar X]\right\}. $$ The deviation is \(c-E[\bar X]\), not \(c\). If the target is below the mean, it is not an upper-tail event with a nonnegative deviation at all.

Worked Example: Centering a Bernoulli Sum

Let \(X_1,\ldots,X_{10}\) be independent Bernoulli random variables with \(P(X_i=1)=0.3\). Find a Hoeffding upper bound for \(P(\sum_i X_i\geq 5)\).

Each variable has \(E[X_i]=0.3\), so \(E[\sum_i X_i]=3\). Therefore the event must be rewritten as $$ \left\{\sum_{i=1}^{10}(X_i-E[X_i])\geq 5-3\right\} = \left\{\sum_{i=1}^{10}(X_i-0.3)\geq 2\right\}. $$ Each \(X_i\) lies in an interval of width \(1\). Hoeffding’s inequality gives $$ P\left(\sum_{i=1}^{10}X_i\geq 5\right) \leq \exp\left(-\frac{2(2)^2}{10(1)^2}\right) = \exp(-0.8) \approx 0.4493. $$ Using \(5\) as the centered deviation would instead give \(\exp(-5)\approx0.00674\), an unjustifiably small bound. In fact, the exact probability is $$ \sum_{k=5}^{10}\binom{10}{k}(0.3)^k(0.7)^{10-k}\approx 0.1503, $$ which already exceeds that incorrect result.

Check Independence and the Actual Range Widths

For independent random variables \(X_i\) with deterministic finite bounds \(a_i\leq X_i\leq b_i\) almost surely, Hoeffding’s inequality is $$ P\left(\sum_{i=1}^n(X_i-E[X_i])\geq t\right) \leq \exp\left(-\frac{2t^2}{\sum_{i=1}^n(b_i-a_i)^2}\right), $$ for \(t\geq 0\), when \(\sum_i(b_i-a_i)^2>0\). The quantity in the denominator is the sum of the **squared range widths**. It is not the sum of the upper endpoints, the sum of the ranges, or the square of a common bound unless those quantities really equal the required sum of squared widths.

Independence is a separate, essential hypothesis in this form of the inequality. Knowing that each variable is bounded does not establish independence. When the variables are dependent, a different result may apply under additional structure—for instance, a bounded-difference inequality for a function of independent inputs or an Azuma–Hoeffding bound for a martingale. One must verify the assumptions of that result rather than silently reuse the independent-sum bound.

Degenerate range case: If \(\sum_i(b_i-a_i)^2=0\), every interval has width zero, so each \(X_i\) is almost surely constant and the centered sum is identically zero. Its upper-tail probability is \(1\) at \(t=0\) and \(0\) for \(t>0\); do not substitute into a formula with a zero denominator.

Worked Example: Use Widths, Not a Convenient Common Bound

Let \(X_1\) and \(X_2\) be independent, with \(X_1\) taking \(0\) and \(2\) with equal probabilities, and \(X_2\) taking \(-1\) and \(2\) with equal probabilities. Find a Hoeffding bound for \(P((X_1-E[X_1])+(X_2-E[X_2])\geq2.5)\).

The expectations are \(E[X_1]=1\) and \(E[X_2]=0.5\). The range widths are \(2\) and \(3\), so the sum of squared widths is \(2^2+3^2=13\). Thus $$ P\left((X_1-E[X_1])+(X_2-E[X_2])\geq2.5\right) \leq \exp\left(-\frac{2(2.5)^2}{13}\right) = \exp\left(-\frac{25}{26}\right) \approx0.3823. $$ To check the scale, the centered variables take values \(\pm1\) and \(\pm1.5\). Their sum equals \(2.5\) with probability \(1/4\), so the event probability is \(0.25\), consistent with the bound. Incorrectly using width \(2\) for both variables would produce \(\exp(-25/16)\approx0.2096\), which is below the actual event probability. The second variable’s width is \(3\), not \(2\).

Variance Does Not Replace Every Bernstein Assumption

A common form of Bernstein’s inequality applies to independent random variables \(X_1,\ldots,X_n\) such that \(E[X_i]=0\) and \(|X_i|\leq M\) almost surely for a common \(M>0\). Write \(V=\sum_i\operatorname{Var}(X_i)\). If \(V>0\), then for \(t\geq0\), $$ P\left(\sum_{i=1}^n X_i\geq t\right) \leq \exp\left(-\frac{t^2}{2(V+Mt/3)}\right). $$ If \(V=0\), all the centered variables are zero almost surely, and the event can be treated directly. The bound needs both a variance quantity and an almost-sure bound on the centered summands. A variance calculation alone does not supply \(M\).

A valid variance upper bound can replace the actual variance in \(V\), because increasing the denominator only weakens the bound. But the bound must be for the same variables being summed. In particular, a bound on \(\operatorname{Var}(X_i)\) does not imply that \(|X_i-E[X_i]|\) is bounded by that variance bound. Also, if a source states Bernstein’s inequality for centered variables bounded by \(M\), a bound on the uncentered \(X_i\) must be translated carefully before using that version.

Worked Example: A Variance-Only Gaussian Exponent Can Fail

Let \(X\) equal \(9\) with probability \(0.1\) and \(-1\) with probability \(0.9\). Compare a variance-only exponential expression with the Bernstein bound for \(P(X\geq9)\).

First, $$ E[X]=9(0.1)-1(0.9)=0, $$ and $$ \operatorname{Var}(X)=E[X^2]=81(0.1)+1(0.9)=9. $$ Also \(|X|\leq9\), so \(M=9\) is valid. The event \(X\geq9\) has probability \(0.1\). If one uses the variance-only expression \(\exp(-t^2/(2V))\) at \(t=9\), it gives $$ \exp\left(-\frac{9^2}{2(9)}\right)=\exp(-4.5)\approx0.01111, $$ which is smaller than the true probability and therefore is not a valid bound here. Bernstein’s inequality retains the boundedness term: $$ P(X\geq9) \leq \exp\left(-\frac{9^2}{2(9+9(9)/3)}\right) = \exp(-9/8) \approx0.3247. $$ This is a valid, though not especially sharp, upper bound. Dropping the \(Mt/3\) term is not justified just because a variance has been computed.

One Tail Is Not the Same as Two

An upper-tail bound controls \(P(S-E[S]\geq t)\); it does not by itself control \(P(|S-E[S]|\geq t)\). For a two-sided event, separate the upper and lower tails: $$ P(|S-E[S]|\geq t) \leq P(S-E[S]\geq t)+P(E[S]-S\geq t). $$ The second probability is a lower-tail probability for \(S\), or an upper-tail probability for \(-S\). If the same valid upper-tail bound applies to both directions, the union bound gives twice that bound, capped at \(1\).

For example, if independent centered variables have ranges \([a_i,b_i]\), then \(-X_i\) has range \([-b_i,-a_i]\) with the same width \(b_i-a_i\). Applying Hoeffding’s inequality to both signs yields $$ P\left(\left|\sum_i(X_i-E[X_i])\right|\geq t\right) \leq 2\exp\left(-\frac{2t^2}{\sum_i(b_i-a_i)^2}\right), $$ when the sum of squared widths is positive. The factor \(2\) comes from covering two tail events, not from changing the deviation \(t\).

Worked Example: Recognize Which Tail Is Being Bounded

Let \(X\) equal \(9\) with probability \(0.1\) and \(-1\) with probability \(0.9\), as above. Compare its upper and absolute deviations at \(t=1\).

Since \(E[X]=0\), the upper-tail event is \(\{X\geq1\}\), which has probability \(0.1\). The lower-tail event \(\{X\leq-1\}\) has probability \(0.9\). Hence $$ P(|X|\geq1)=P(X\geq1)+P(X\leq-1)=0.1+0.9=1. $$ An upper-tail statement about \(P(X\geq1)\) cannot be reported as a bound on \(P(|X|\geq1)\). A two-sided argument has to include the lower tail as well; when a common tail bound is available, the union-bound form includes the factor \(2\).

Check the Deviation Regime and Justification

The displayed Bernstein inequality with denominator \(2(V+Mt/3)\) is valid for every \(t\geq0\) under its stated assumptions. A frequent mistake is to replace its denominator by \(2V\) and claim the sharper Gaussian-looking bound \(\exp(-t^2/(2V))\). That replacement makes the denominator smaller, hence the claimed upper bound smaller, and is not licensed by Bernstein’s inequality. For a coarser quadratic-regime consequence, if \(0\leq t\leq 3V/M\), then \(Mt/3\leq V\), so $$ V+Mt/3\leq2V \quad\Longrightarrow\quad \exp\left(-\frac{t^2}{2(V+Mt/3)}\right) \leq \exp\left(-\frac{t^2}{4V}\right). $$ Thus the latter is a valid consequence in that stated regime, with the displayed constant.

This distinction is related to the two-regime behavior of sub-exponential tails: smaller deviations have a quadratic exponent, while sufficiently large deviations have a linear exponent. A quadratic approximation cannot simply be extended to arbitrarily large deviations without checking its hypotheses. Conversely, Hoeffding’s bounded-range inequality has no analogous deviation restriction, although for \(t\) beyond the maximum possible centered sum the event is impossible and the resulting bound may merely be loose.

A Reliable Application Checklist

1
Write the event exactly.
Identify whether the target is a raw sum, a centered sum, a sample mean, an upper tail, or an absolute deviation.
2
Match the assumptions.
Check independence (or the relevant alternative structure), finite expectations, bounded ranges, and any variance and almost-sure bounds required.
3
Insert the correct scale.
Use each range width \(b_i-a_i\), the sum of variances, and the centered bound \(M\) as required by the selected inequality.
4
Check direction and regime.
Use a lower-tail argument as well as an upper-tail one for two-sided events, and verify any restriction on \(t\) before simplifying an exponent.

Concentration inequalities are powerful precisely because their assumptions compress a great deal of model information into a simple tail estimate. A few lines of checking prevent the most consequential errors: centering by the wrong amount, treating dependence as independence, confusing a variance with a range, omitting a tail, or using a bound outside the regime that supports it.

Check Your Understanding

For each question, identify the assumption or calculation that needs checking before accepting the proposed bound.

  1. If \(E[\sum_i X_i]=12\), what is the centered deviation corresponding to the event \(\sum_i X_i\geq17\)?
  2. For independent variables in intervals of widths \(1\), \(2\), and \(4\), what quantity belongs in Hoeffding’s denominator?
  3. Why does knowing \(V=\sum_i\operatorname{Var}(X_i)\) not by itself establish the hypotheses of the stated Bernstein inequality?
  4. What additional probability must be controlled to turn an upper-tail bound into a two-sided bound?
  5. Under what condition does \(V+Mt/3\leq2V\), and what quadratic-regime consequence follows?