Documentation

CslibFrontier.Probability.SubGaussian

Exponential moments of sub-Gaussian variables and empirical means #

Two facts about sub-Gaussian moment-generating functions (Mathlib's HasSubgaussianMGF).

Together, at s = 2 (m - 1), they bound š”¼ exp (2 (m - 1) Δ²) by √m for the deviation Ī” of an empirical mean; this is the exponential-moment step of McAllester's PAC-Bayes bound, where [ShalevShwartzBenDavid2014, Section 31.1 and Exercise 31.1] uses the weaker bound m.

Main results #

References #

theorem ProbabilityTheory.HasSubgaussianMGF.lintegral_exp_mul_sq_le {Ī© : Type u_1} {mĪ© : MeasurableSpace Ī©} {μ : MeasureTheory.Measure Ī©} [MeasureTheory.IsProbabilityMeasure μ] {X : Ī© → ā„} {c : NNReal} (hX : HasSubgaussianMGF X c μ) {s : ā„} (hs : 0 ≤ s) (hsc : 2 * s * ↑c < 1) :
∫⁻ (ω : Ī©), ENNReal.ofReal (Real.exp (s * X ω ^ 2)) āˆ‚Ī¼ ≤ ENNReal.ofReal (√(1 - 2 * s * ↑c))⁻¹

The exponential moment of a square: if X is sub-Gaussian with variance proxy c under a probability measure, then š”¼ exp (s X²) ≤ 1 / √(1 - 2 s c) whenever 0 ≤ s and 2 s c < 1. The proof integrates the sub-Gaussian bound against a standard Gaussian.

theorem Cslib.Probability.hasSubgaussianMGF_integral_sub_sum_div {Z : Type u_1} [MeasurableSpace Z] (D : MeasureTheory.Measure Z) [MeasureTheory.IsProbabilityMeasure D] {f : Z → ā„} (hf : Measurable f) (hf01 : āˆ€ (z : Z), f z ∈ Set.Icc 0 1) {m : ā„•} (hm : 0 < m) :
ProbabilityTheory.HasSubgaussianMGF (fun (S : Fin m → Z) => ∫ (z : Z), f z āˆ‚D - (āˆ‘ i : Fin m, f (S i)) / ↑m) (4 * ↑m)⁻¹ (MeasureTheory.Measure.pi fun (x : Fin m) => D)

Hoeffding's lemma for an empirical mean [Hoe63]: for m > 0 independent samples S from a probability measure D and a measurable f with values in [0, 1], the deviation ∫ f āˆ‚D - (āˆ‘ i, f (S i)) / m of the empirical mean is sub-Gaussian with variance proxy 1 / (4 m).