Quiz 2

Concentration Inequalities

348 words
2 min read
Python Week 1: the first filter for runtime behavior
Visual companion
Python
Type and operator map

Python Week 1: the first filter for runtime behavior

View
Revision summary

What this note is really saying

Short form

# Concentration Inequalities ## 🎯 Learning Objectives - State Markov's, Chebyshev's, and Chernoff's inequalities - Apply concentration bounds to analyze randomized algorithms - Derive tail bounds for sums of independent random variables - Understand the trade-off between tail decay and moment assumptions * * * ## 1...

Concentration Inequalities

🎯 Learning Objectives

  • State Markov's, Chebyshev's, and Chernoff's inequalities
  • Apply concentration bounds to analyze randomized algorithms
  • Derive tail bounds for sums of independent random variables
  • Understand the trade-off between tail decay and moment assumptions

1.1 Intuition: How Fast Does a Random Variable Concentrate?

Concentration inequalities quantify how quickly a random variable approaches its mean. They're the foundation of randomized algorithm analysis and statistical learning theory.
🔑 Key Insight: Under weak assumptions (finite variance → Chebyshev; boundedness → Hoeffding; subgaussian → Chernoff), sums of independent random variables concentrate exponentially fast around their mean.

1.2 Key Inequalities

Markov's Inequality

Pr(Xt)E[X]tfor X0\Pr(X \geq t) \leq \frac{E[X]}{t} \quad \text{for } X \geq 0
Example: If average income is 50k,atmost1/4ofpeopleearn50k, at most 1/4 of people earn\geq 200k$.

Chebyshev's Inequality

Pr(XE[X]t)Var(X)t2\Pr(|X - E[X]| \geq t) \leq \frac{\text{Var}(X)}{t^2}
Example: For Xˉ\bar{X} from nn i.i.d. samples: Pr(Xˉμϵ)σ2nϵ2\Pr(|\bar{X} - \mu| \geq \epsilon) \leq \frac{\sigma^2}{n\epsilon^2}

Chernoff Bound (Multiplicative)

For X=XiX = \sum X_i where Xi[0,1]X_i \in [0,1] independent:
Pr(X(1+δ)μ)(eδ(1+δ)1+δ)μ\Pr(X \geq (1+\delta)\mu) \leq \left(\frac{e^\delta}{(1+\delta)^{1+\delta}}\right)^\mu

Hoeffding's Inequality

For Xi[ai,bi]X_i \in [a_i, b_i] independent:
Pr(XˉE[Xˉ]t)2exp(2n2t2(biai)2)\Pr(|\bar{X} - E[\bar{X}]| \geq t) \leq 2\exp\left(-\frac{2n^2 t^2}{\sum(b_i - a_i)^2}\right)

1.3 Comparison

BoundAssumptionsDecayUse Case
MarkovX0X \geq 01/t1/tGeneric
ChebyshevFinite variance1/t21/t^2Generic with variance
ChernoffIndependent, boundedexp(cμδ2)\exp(-c\mu\delta^2)Sums of bounded variables
HoeffdingIndependent, boundedexp(2nt2/(ba)2)\exp(-2nt^2/(b-a)^2)Sample means

✅ Practice Questions

Q1: Use Chebyshev to bound Pr(Xˉμϵ)\Pr(|\bar{X} - \mu| \geq \epsilon) for nn i.i.d. samples with variance σ2\sigma^2.
Solution
Var(Xˉ)=σ2/n\text{Var}(\bar{X}) = \sigma^2/n. By Chebyshev: Pr(Xˉμϵ)σ2nϵ2\Pr(|\bar{X} - \mu| \geq \epsilon) \leq \frac{\sigma^2}{n\epsilon^2}. Q2: Compare Hoeffding and Chebyshev bounds. Which is tighter for bounded variables? Solution
Hoeffding decays as exp(cnϵ2)\exp(-cn\epsilon^2), exponentially faster than Chebyshev's 1/(nϵ2)1/(n\epsilon^2). For bounded variables, Hoeffding is exponentially tighter. Q3: How many samples nn needed to estimate a mean within ±0.01\pm 0.01 with 95% confidence for bounded [0,1][0,1] variables? Solution
Hoeffding: 2exp(2n(0.01)2)0.052\exp(-2n(0.01)^2) \leq 0.05. So exp(0.0002n)0.025\exp(-0.0002n) \leq 0.025, 0.0002nln(0.025)-0.0002n \leq \ln(0.025), nln(40)/0.000218449n \geq \ln(40)/0.0002 \approx 18449. Join Discord NextRandomized SVD
Document outline

Keep your place and jump directly to a heading.

Table of Contents
System Normal // Awaiting Context

Intelligence Hub

Navigate the knowledge graph to generate context. The Hub adapts dynamically to surface backlinks, related notes, and metadata insights.