Comment 3, p. 1273 — Cramér–Chernoff bound P(S − np > nε) ≤ exp(−n h(p, ε)) for S ~ Bin(n, p)
ProvedMassartDKW.Binom.comment_3Let be a random variable with binomial distribution , with , and set . For every with ,
where is the function of Lemma 1.
This is the classical Cramér–Chernoff bound for binomial tails (Massart cites Shorack and Wellner (1986), p. 440). With Lemma 1(ii) it gives Theorem 2 at once.
Formalization Note. is an -valued random variable on a probability space whose law is Mathlib's binomial n p (the number of successes in independent trials with success probability ); is allowed. The hypothesis is the standing assumption of Lemma 1, under which is defined; at Lean's would make a junk value. The probability is an outer measure value in , compared with the real bound through ENNReal.ofReal.
import Mathlib import Definitions.Def_MassartDKW_Binom_Setting open MeasureTheory ProbabilityTheory
namespace MassartDKW.Binom
/-- Massart (1990), Comment 3, p. 1273 (Cramér–Chernoff bound): if `S` has the binomial law
`Bin(n, p)` with `0 < p` and `0 < ε ≤ q = 1 − p`, then `P(S − np > nε) ≤ exp(−n h(p, ε))`. -/
theorem comment_3 {Ω : Type*} [MeasurableSpace Ω] (P : Measure Ω) [IsProbabilityMeasure P]
(n : ℕ) (p : unitInterval) (S : Ω → ℕ) (hS : HasLaw S (binomial n p) P)
(hp : 0 < (p : ℝ)) (ε : ℝ) (hε : 0 < ε) (hεq : ε ≤ 1 - (p : ℝ)) :
P {ω | (n : ℝ) * ε < (S ω : ℝ) - n * (p : ℝ)} ≤
ENNReal.ofReal (Real.exp (-((n : ℝ) * h (p : ℝ) ε))) := by sorry
end MassartDKW.Binom
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.