Exponential moments of sub-Gaussian variables and empirical means #
Two facts about sub-Gaussian moment-generating functions (Mathlib's HasSubgaussianMGF).
- If
Xis sub-Gaussian with variance proxycand2 s c < 1, thenš¼ exp (s X²) ⤠1 / ā(1 - 2 s c). The proof writesexp (s y²)as the moment-generating function of a standard Gaussiangatā(2 s) y, exchanges the two expectations and boundsš¼ exp (ā(2 s) g X)by the sub-Gaussian estimate; the remaining factor is the Gaussian integralš¼ exp (s c g²) = 1 / ā(1 - 2 s c). - Hoeffding's lemma for an empirical mean: for
m > 0independent samples fromDandfwith values in[0, 1],ā« f āD - (ā i, f (S i)) / mis sub-Gaussian with variance proxy1 / (4 m)underMeasure.pi[Hoe63].
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 #
ProbabilityTheory.HasSubgaussianMGF.lintegral_exp_mul_sq_le: the exponential moment ofs X².Cslib.Probability.hasSubgaussianMGF_integral_sub_sum_div: the empirical mean of bounded i.i.d. samples is sub-Gaussian about its expectation.
References #
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.
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).