Union Bounds &
Concentration
Bounding the probability of unions and understanding how random variables concentrate around their expectations: the foundational tools of modern probability.
What Is the Union Bound?
The union bound (also called Boole's inequality) provides a simple upper bound on the probability that at least one of several events occurs. For any countable collection of events \(A_1, A_2, \ldots, A_n\):
This inequality is always valid: no independence or distributional assumptions required. It works because overlapping probabilities are counted multiple times on the right side, so the sum can only overestimate the true union probability.
Visual Intuition: Overlapping Events
Why Union Bounds Matter
What Is Concentration?
A random variable \(X\) is said to concentrate around its mean \(\mu = E[X]\) if the probability that \(X\) deviates far from \(\mu\) is small. Formally, we seek bounds of the form:
Concentration inequalities make this precise. They tell us how quickly the tail probability decays as the deviation \(t\) grows: polynomially (Markov, Chebyshev), exponentially (Chernoff, Hoeffding), or sub-Gaussian.
Markov's Inequality
The simplest concentration tool. For any non-negative random variable \(X\) and any \(a > 0\):
Chebyshev's Inequality
By applying Markov's inequality to \((X - \mu)^2\), we get a bound that uses the variance:
This gives a \(1/t^2\) decay: much better than Markov for large deviations. For the sample mean \(\bar{X}_n\) of \(n\) i.i.d. copies with variance \(\sigma^2\):
This shrinks as \(n\) grows: the sample mean concentrates around the population mean.
Markov vs Chebyshev
| Markov | Chebyshev | |
|---|---|---|
| Statement | \(P(X \geq a) \leq \frac{E[X]}{a}\) | \(P(|X-\mu| \geq t) \leq \frac{\sigma^2}{t^2}\) |
| Requirements | \(X \geq 0\), finite mean | Finite variance |
| Tail decay | \(O(1/t)\) | \(O(1/t^2)\) |
| Two-sided? | One-sided only | Two-sided |
| Tightness | Loose in general | Tight for heavy-tailed |
The Chernoff Method
For exponential tail decay, apply Markov to \(e^{sX}\) for \(s > 0\):
The Concentration Hierarchy
How to Apply the Union Bound
Example 1: Coin Flips
Flip a fair coin \(n = 100\) times. Let \(X\) = number of heads. Bound \(P(X \geq 70)\).
Example 2: Union Bound in Action
A server runs \(n = 1000\) independent jobs. Each job fails with probability \(p = 0.001\). What is the probability that at least one job fails?
Example 3: Combining Both Tools
Estimate \(k = 20\) population means simultaneously. Each estimate \(\bar{X}_i\) is the mean of \(n\) i.i.d. samples with variance \(\sigma^2\). We want \(P(\text{any estimate off by } \geq \epsilon) \leq \delta\).
Tail Decay: Visual Comparison
Common Mistakes
Summary Comparison
| Tool | Bound | Assumptions | Tail Rate |
|---|---|---|---|
| Union Bound | \(\sum P(A_i)\) | None | N/A |
| Markov | \(E[X]/a\) | \(X \geq 0\) | \(1/t\) |
| Chebyshev | \(\sigma^2/t^2\) | Finite variance | \(1/t^2\) |
| Chernoff | \(\inf_s e^{-st}M_X(s)\) | Finite MGF | \(e^{-ct^2}\) |
| Hoeffding | \(e^{-2n\epsilon^2/(b-a)^2}\) | Bounded \([a,b]\) | \(e^{-cn\epsilon^2}\) |
Question 1 of 5
Let \(X\) be a non-negative random variable with \(E[X] = 4\). By Markov's inequality, what is the best upper bound on \(P(X \geq 20)\)?
Question 2 of 5
A random variable \(X\) has mean \(\mu = 10\) and variance \(\sigma^2 = 9\). Using Chebyshev's inequality, what is the upper bound on \(P(|X - 10| \geq 6)\)?
Question 3 of 5
You run \(n = 50\) independent experiments, each with failure probability \(0.01\). By the union bound, what is the upper bound on the probability that at least one experiment fails?
Question 4 of 5
Which of the following is not a requirement for applying Markov's inequality?
Question 5 of 5
You want to simultaneously bound the deviations of \(k = 100\) sample means, each from \(n\) i.i.d. samples with variance \(\sigma^2\), to ensure the overall failure probability is at most \(\delta = 0.05\). Using Chebyshev + union bound, what sample size \(n\) do you need per estimate (for deviation \(\leq \epsilon\))?