Theorem 2, p. 1271 — P(S − np > nε) ≤ exp(−nε²/(2(p + ε/3)(q − ε/3))) for S ~ Bin(n, p), 0 < ε ≤ q
ProvedMassartDKW.Binom.theorem_2Let be a random variable with binomial distribution and set . Then for every with ,
Massart obtains this exponential bound for binomial upper tails as a by-product of his proof of the tight Dvoretzky–Kiefer–Wolfowitz inequality. The factor in the denominator makes it sharper than Bernstein's inequality, whose denominator is , and it also implies Hoeffding's bound .
Formalization Note. is an -valued random variable on a probability space whose law is Mathlib's binomial n p, with ; and are allowed, as on the page. The denominator is positive on the whole range, since . The event is the strict upper tail , and its probability, an element of , is compared with the real bound through ENNReal.ofReal.
import Mathlib import Definitions.Def_MassartDKW_Binom_Setting open MeasureTheory ProbabilityTheory
namespace MassartDKW.Binom
/-- Massart (1990), Theorem 2, p. 1271: if `S` has the binomial law `Bin(n, p)` and `q = 1 − p`,
then for every `ε` with `0 < ε ≤ q`,
`P(S − np > nε) ≤ exp(−nε²/(2(p + ε/3)(q − ε/3)))`. -/
theorem theorem_2 {Ω : Type*} [MeasurableSpace Ω] (P : Measure Ω) [IsProbabilityMeasure P]
(n : ℕ) (p : unitInterval) (S : Ω → ℕ) (hS : HasLaw S (binomial n p) P)
(ε : ℝ) (hε : 0 < ε) (hεq : ε ≤ 1 - (p : ℝ)) :
P {ω | (n : ℝ) * ε < (S ω : ℝ) - n * (p : ℝ)} ≤
ENNReal.ofReal (Real.exp (-((n : ℝ) * ε ^ 2) /
(2 * ((p : ℝ) + ε / 3) * (1 - (p : ℝ) - ε / 3)))) := by sorry
end MassartDKW.Binom
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.