Archipelago

Lec 24大偏差界:Markov、Chebyshev 与 Chernoff 界

讲义完成更新于 2026-09-16
后续

当前课程暂无后续已收录内容。

Lec 24 大偏差界:Markov、Chebyshev 与 Chernoff 界

资料依据:课程视频与 transcript · Lecture notes

TL;DR

  • Markov 不等式只使用非负随机变量的期望给出上尾界;通过平移已知上下界可以得到更紧的结果。
  • Chebyshev 不等式对平方偏差应用 Markov,用方差控制偏离均值至少 cc 个标准差的概率不超过 1/c21/c^2。
  • Chernoff 界利用互独立与有界性获得指数级尾界;更强的假设换来比只依赖均值或方差的界快得多的衰减。

1. 方差回顾

定义(方差): 随机变量 RR 的方差(variance)为: Var[R]=E[(R−E[R])2]\text{Var}[R] = \mathbb{E}\left[(R - \mathbb{E}[R])^2\right] 标准差(standard deviation)σ(R)=Var[R]\sigma(R) = \sqrt{\text{Var}[R]}。

等价计算公式:

Var[R]=E[R2]−E[R]2\text{Var}[R] = \mathbb{E}[R^2] - \mathbb{E}[R]^2

证明:

Var[R]=E[(R−E[R])2]=E[R2−2E[R]⋅R+E[R]2]=E[R2]−E[R]2\text{Var}[R] = \mathbb{E}[(R - \mathbb{E}[R])^2] = \mathbb{E}[R^2 - 2\mathbb{E}[R] \cdot R + \mathbb{E}[R]^2] = \mathbb{E}[R^2] - \mathbb{E}[R]^2

定理: 若 R1,…,RnR_1, \ldots, R_n 两两独立,则: Var[R1+⋯+Rn]=Var[R1]+⋯+Var[Rn]\text{Var}[R_1 + \cdots + R_n] = \text{Var}[R_1] + \cdots + \text{Var}[R_n]

警告: σ(R1+R2)≠σ(R1)+σ(R2)\sigma(R_1 + R_2) \neq \sigma(R_1) + \sigma(R_2)(即使独立),但 σ(R1+R2)2=σ(R1)2+σ(R2)2\sigma(R_1+R_2)^2 = \sigma(R_1)^2 + \sigma(R_2)^2(独立时成立)。


2. 马尔可夫不等式(Markov's Inequality)

定理(马尔可夫不等式): 设 RR 为非负随机变量,则对任意 x>0x > 0: Pr⁡[R≥x]≤E[R]x\Pr[R \geq x] \leq \frac{\mathbb{E}[R]}{x} 等价形式:Pr⁡[R≥c⋅E[R]]≤1c\Pr[R \geq c \cdot \mathbb{E}[R]] \leq \frac{1}{c}。

证明:

E[R]=E[R∣R≥x]Pr⁡[R≥x]+E[R∣R<x]Pr⁡[R<x]≥x⋅Pr⁡[R≥x]+0\mathbb{E}[R] = \mathbb{E}[R \mid R \geq x] \Pr[R \geq x] + \mathbb{E}[R \mid R < x] \Pr[R < x] \geq x \cdot \Pr[R \geq x] + 0

整理即得。

非负性的必要性: 若 RR 可取负值,则 E[R∣R<x]\mathbb{E}[R \mid R < x] 不再非负,不等式失效。

实用技巧:调整界

若 RR 的取值范围为 [ℓ,u][\ell, u],可灵活变换:

  • 应用于 R−ℓR - \ell(非负)得到更紧的上侧界
  • 应用于 u−Ru - R(非负)得到下侧界

示例: 成绩 R∈[30,100]R \in [30, 100],E[R]=75\mathbb{E}[R]=75,估计 Pr⁡[R≥90]\Pr[R \geq 90]:

  • 直接用马尔可夫:75/90≈0.83375/90 \approx 0.833
  • 对 R−30R-30 用马尔可夫:E[R−30]/60=45/60=0.75\mathbb{E}[R-30]/60 = 45/60 = 0.75(更紧)

马尔可夫界的松紧性

  • 懒苏珊转盘版手机问题:Pr⁡[R≥n]≤1/n\Pr[R \geq n] \leq 1/n(马尔可夫),真实值也是 1/n1/n——紧!
  • 袋中取手机版:Pr⁡[R≥n]≤1/n\Pr[R \geq n] \leq 1/n(马尔可夫),真实值是 1/n!1/n!——非常松!

3. 切比雪夫不等式(Chebyshev's Inequality)

定理(切比雪夫不等式): 对任意随机变量 RR(无需非负)和 x>0x > 0: Pr⁡[∣R−E[R]∣≥x]≤Var[R]x2=(σ(R)x)2\Pr[|R - \mathbb{E}[R]| \geq x] \leq \frac{\text{Var}[R]}{x^2} = \left(\frac{\sigma(R)}{x}\right)^2 等价形式:Pr⁡[∣R−E[R]∣≥c⋅σ(R)]≤1c2\Pr[|R - \mathbb{E}[R]| \geq c \cdot \sigma(R)] \leq \frac{1}{c^2}。

证明(对马尔可夫的应用):

对非负随机变量 (R−E[R])2(R - \mathbb{E}[R])^2 应用马尔可夫:

Pr⁡[∣R−E[R]∣≥x]=Pr⁡[(R−E[R])2≥x2]≤E[(R−E[R])2]x2=Var[R]x2\Pr[|R - \mathbb{E}[R]| \geq x] = \Pr\left[(R - \mathbb{E}[R])^2 \geq x^2\right] \leq \frac{\mathbb{E}[(R-\mathbb{E}[R])^2]}{x^2} = \frac{\text{Var}[R]}{x^2}

示例一(成绩): E[score]=75\mathbb{E}[\text{score}]=75,Var[score]=25\text{Var}[\text{score}]=25,σ=5\sigma=5,估计 Pr⁡[score≤65]\Pr[\text{score} \leq 65]:

Pr⁡[score≤65]≤Pr⁡[∣score−75∣≥10]≤25100=0.25\Pr[\text{score} \leq 65] \leq \Pr[|\text{score} - 75| \geq 10] \leq \frac{25}{100} = 0.25

(距均值 2 个标准差,概率 ≤1/4\leq 1/4)

示例二(nn 次抛硬币): RR = 正面数,E[R]=n/2\mathbb{E}[R]=n/2,Var[R]=n/4\text{Var}[R]=n/4:

Pr⁡[R≥3n4]≤Pr⁡[∣R−n2∣≥n4]≤n/4(n/4)2=4n\Pr\left[R \geq \frac{3n}{4}\right] \leq \Pr\left[|R - \frac{n}{2}| \geq \frac{n}{4}\right] \leq \frac{n/4}{(n/4)^2} = \frac{4}{n}

远优于马尔可夫给出的 2/32/3。


4. 切尔诺夫界(Chernoff Bound)

定理(切尔诺夫界): 设 T1,…,TnT_1, \ldots, T_n 为互独立随机变量,且 0≤Ti≤10 \leq T_i \leq 1,令 T=∑TiT = \sum T_i。则对所有 c≥1c \geq 1: Pr⁡[T≥c⋅E[T]]≤e−(cln⁡c−c+1)⋅E[T]\Pr[T \geq c \cdot \mathbb{E}[T]] \leq e^{-(c \ln c - c + 1) \cdot \mathbb{E}[T]}

证明思路: 对随机变量 cTc^T 应用马尔可夫,利用独立性展开。

应用(nn 次抛硬币,c=3/2c = 3/2):

Pr⁡[R≥3n4]=Pr⁡[R≥32⋅n2]≤e−0.1⋅n/2=e−n/20\Pr\left[R \geq \frac{3n}{4}\right] = \Pr\left[R \geq \frac{3}{2} \cdot \frac{n}{2}\right] \leq e^{-0.1 \cdot n/2} = e^{-n/20}

这是指数级改进,远优于切比雪夫的 4/n4/n!

集中性示例(令 c=1+4/nc = 1 + 4/\sqrt{n}): 对足够大的 nn:

Pr⁡[R≥n2+2n]≤0.02\Pr\left[R \geq \frac{n}{2} + 2\sqrt{n}\right] \leq 0.02

正面次数以极高概率集中在均值 n/2n/2 附近 n\sqrt{n} 量级的范围内,分布随 nn 增大越来越集中。


5. 三种界的对比

方法所需条件界的形式nn 次抛硬币 Pr⁡[R≥3n/4]\Pr[R \geq 3n/4]
马尔可夫R≥0R \geq 0E[R]/x\mathbb{E}[R]/x2/32/3(非常松)
切比雪夫无(需方差)Var[R]/x2\text{Var}[R]/x^24/n4/n
切尔诺夫互独立,有界指数级e−n/20e^{-n/20}(指数紧)

依赖关系: 切比雪夫只需两两独立,切尔诺夫需要互独立,换来更强的指数级界。

我的理解

我的理解

集中不等式可视为一条信息—结论梯子:只知非负性与期望时用 Markov,再知方差时用 Chebyshev,知道独立有界分量时用 Chernoff。界的强度来自额外假设,不应脱离条件比较公式。