Bennett / Bernstein sub-gamma concentration #
Variance-sensitive (Bernstein/Freedman-style) concentration, which Mathlib currently lacks:
Mathlib has the sub-Gaussian MGF (HasSubgaussianMGF, the base of Azuma/Hoeffding) but not the
sub-gamma / Bernstein one. When the conditional variance V is much smaller than the squared range
b², the sub-Gaussian tail exp(−ε²/2b²) is far too weak; the correct bound is the variance-based
exp(−ε²/(2(V+cε))).
This file develops that from scratch, Mathlib-only:
Contrib.Bennett.HasSubgammaMGF X V c μ— the sub-gamma MGF boundmgf ≤ exp(V t²/(2(1−ct)))(the variance-based analogue ofHasSubgaussianMGF, recovered atc = 0).Contrib.Bennett.subgamma_tail— the Bernstein tailP(X ≥ ε) ≤ exp(−ε²/(2(V+cε))), via the Chernoff bound at the optimal parametert* = ε/(V+cε).Contrib.Bennett.exp_mul_le_bennett_quadratic— the pointwise quadratic majorantexp(tx) ≤ 1 + tx + x²(exp(tb)−1−tb)/b²forx ≤ b.Contrib.Bennett.exp_sub_one_sub_le_bernstein—exp(u) − 1 − u ≤ u²/(2(1−u/3))for0 ≤ u < 3.Contrib.Bennett.mgf_le_bennett— Bennett's MGF inequality for a centered, upper-bounded variable.Contrib.Bennett.hasSubgammaMGF_of_bounded_above— a centered variable bounded above bybwith second moment≤ Vis sub-gamma with variance factorVand scaleb/3.
Sorry-free and axiom-clean [propext, Classical.choice, Quot.sound].
Sub-gamma MGF bound. X has a sub-gamma MGF with variance factor V and scale c if
mgf X μ t ≤ exp(V t²/(2(1−ct))) for 0 ≤ t and ct < 1. This is the variance-based
(Bernstein) analogue of HasSubgaussianMGF; when c = 0, every nonnegative parameter is in the
effective domain. It is the martingale-summable object underlying Freedman's inequality.
Equations
Instances For
Bernstein tail from the sub-gamma MGF. If X has a sub-gamma MGF with V > 0,
c > 0, then
P(X ≥ ε) ≤ exp(−ε²/(2(V + cε))). The optimal Chernoff parameter is t* = ε/(V+cε), at which the
exponent is exactly −ε²/(2(V+cε)).
Bennett's MGF inequality. A centered random variable bounded above by b > 0, whose second
moment is at most V, has the Bennett exponential-moment bound.
A bounded-above centered random variable with second moment at most V is sub-gamma with
variance factor V and scale b / 3.