Skip to main content
KetQat

Appearance

Proof · intermediate

Proof of the Chernoff bound

Apply Markov's inequality to exp(s times the sum), factor or bound the moment generating function, and optimise over s; for 0/1 variables the optimal s gives the binary relative entropy exactly.

Established resultMachine-checkedUpdated 2026-12-01 · last verified 2026-12-01

AI-assisted text, machine-checked, not yet reviewed by a person. Citations resolve and an automated pass compared the statements with the cited sources. That is not peer review; check the sources for anything you depend on.

Part 1. For s≥0s \ge 0, by Markov's inequality applied to the nonnegative variable esnXˉe^{s n \bar X} and independence,

Pr⁡[Xˉ≥a]=Pr⁡[esnXˉ≥esna]≤e−sna (E esX)n=e−n(sa−ln⁡EesX).\Pr[\bar X \ge a] = \Pr\big[e^{s n \bar X} \ge e^{s n a}\big] \le e^{-sna}\, \big(\mathbb{E}\, e^{sX}\big)^n = e^{-n (s a - \ln \mathbb{E} e^{sX})} .

This holds for every s≥0s \ge 0; take the infimum of the right-hand side.

Part 2. Fix s≥0s \ge 0. Because Xi∈{0,1}X_i \in \{0, 1\}, esXi=1+(es−1)Xie^{s X_i} = 1 + (e^s - 1) X_i. Expanding the product over ii and using ∏i∈TXi=1[Xi=1 ∀i∈T]\prod_{i \in T} X_i = \mathbf{1}[X_i = 1\ \forall i \in T],

E es∑iXi=∑T⊆{1..n}(es−1)∣T∣Pr⁡[Xi=1 ∀i∈T]≤∑T((es−1)p)∣T∣=(1−p+pes)n,\mathbb{E}\, e^{s \sum_i X_i} = \sum_{T \subseteq \{1..n\}} (e^s - 1)^{\abs{T}} \Pr\big[X_i = 1\ \forall i \in T\big] \le \sum_{T} \big( (e^s - 1) p \big)^{\abs{T}} = (1 - p + p e^s)^n ,

where the inequality uses the hypothesis and es−1≥0e^s - 1 \ge 0. Markov's inequality gives

Pr⁡[∑iXi≥qn]≤exp⁡ ⁣(−n[sq−ln⁡(1−p+pes)]).\Pr\Big[\sum_i X_i \ge q n\Big] \le \exp\!\Big( -n \big[ s q - \ln(1 - p + p e^s) \big] \Big) .

If q<1q < 1, choose es=q(1−p)p(1−q)e^s = \frac{q (1 - p)}{p (1 - q)}, which is ≥1\ge 1 because q≥pq \ge p. Then 1−p+pes=1−p1−q1 - p + p e^s = \frac{1 - p}{1 - q} and

sq−ln⁡(1−p+pes)=qln⁡q(1−p)p(1−q)−ln⁡1−p1−q=qln⁡qp+(1−q)ln⁡1−q1−p=De(q∥p).s q - \ln(1 - p + p e^s) = q \ln\frac{q (1 - p)}{p (1 - q)} - \ln\frac{1 - p}{1 - q} = q \ln\frac{q}{p} + (1 - q) \ln\frac{1 - q}{1 - p} = D_e(q \Vert p) .

If q=1q = 1 the event is {Xi=1 ∀i}\{X_i = 1\ \forall i\}, whose probability is at most pnp^n by the hypothesis with T={1,…,n}T = \{1, \dots, n\}, and pn=e−nDe(1∥p)p^n = e^{-n D_e(1 \Vert p)}. For independent XiX_i with Pr⁡[Xi=1]≤p\Pr[X_i = 1] \le p the hypothesis holds because the joint probability factors. The lower-tail identity De(1−q∥1−p)=De(q∥p)D_e(1 - q \Vert 1 - p) = D_e(q \Vert p) is immediate from the formula. This is the standard exponential-moment argument, written out in full; Impagliazzo and Kabanets give an alternative, combinatorial proof of part 2.

Proves

Open in the knowledge graph

Contributions about this record

Nobody has published a contribution about it yet.

Publish a result, reproduction or commentPropose a correction to this page

References

  1. Herman Chernoff (1952). A Measure of Asymptotic Efficiency for Tests of a Hypothesis Based on the sum of Observations. The Annals of Mathematical Statistics 23, 493-507. doi:10.1214/aoms/1177729330
  2. Russell Impagliazzo, Valentine Kabanets (2010). Constructive Proofs of Concentration Bounds. APPROX/RANDOM 2010, Lecture Notes in Computer Science 6302, 617-631, Springer. doi:10.1007/978-3-642-15369-3_46

Contributors

  • KetQat maintainers · @ketqatConceptualization; Supervision (CRediT roles)
  • Claude (AI drafting assistant)Writing, original draft (CRediT roles)

Review history

  1. Automated source check · Pass · 2026-12-01 · Independent automated verification pass (AI, not the drafting session)

    Proof checked against the hypotheses in theorem/chernoff-bound: Markov applied to exp(s n Xbar) with i.i.d. factorisation; for 0/1 variables the expansion exp(s X_i) = 1 + (e^s - 1) X_i, the subset-sum bound giving (1 - p + p e^s)^n, the choice e^s = q(1-p)/(p(1-q)) >= 1, the algebra 1 - p + p e^s = (1-p)/(1-q) and the resulting exponent D_e(q||p), the q = 1 case and the symmetry D_e(1-q||1-p) = D_e(q||p). Numerical check (python): exact binomial tails for (n,p,q) = (50,.2,.3), (100,.1,.25), (30,.5,.9) lie below exp(-n D_e). Crossref metadata of Chernoff 1952 and Impagliazzo-Kabanets 2010 match; the latter is cited only as giving an alternative combinatorial proof (paper not read).

Revision history

  1. 2026-12-01Content release 2.1.0: 35 more topics, an independent source check of every record, intake hardening (#17)80537b7e

Current revision 0ab14bf7aaa8fbee. Source file knowledge/records/proof/chernoff-bound.md in the content repository (readable there once it is public).