Documentation

CslibFrontier.Foundations.Probability.Gaussian.Moments

Low moments of the standard Gaussian #

The moment generating function of the standard Gaussian is t ↦ exp (t ^ 2 / 2) (mgf_id_gaussianReal), and the nth moment is its nth derivative at 0 (iteratedDeriv_mgf_zero). Differentiating four times gives E[z³] = 0 and E[z⁴] = 3, the moments used by the Invariance Principle O'Donnell, Section 11.6. By Cauchy–Schwarz, the third absolute moment is at most √3 ≤ 2; the book's exact value is 2 √(2/π) O'Donnell, Section 11.5, proof of the Variant Berry–Esseen Theorem. The mean of z on the tail z > t is the density there, E[z · 1{z > t}] = φ(t), since -φ is an antiderivative of z φ(z) (hasDerivAt_gaussianPDFReal); by symmetry the first absolute moment is E[|z|] = 2 φ(0) = √(2 / π) O'Donnell, Section 5.2, equation (5.4).

Main results #

References #

The nth moment of the standard Gaussian is the nth derivative of its moment generating function t ↦ exp (t ^ 2 / 2) at 0.

The second moment of the standard Gaussian is 1.

The third moment of the standard Gaussian is 0.

The fourth moment of the standard Gaussian is 3.

The third absolute moment of the standard Gaussian is at most 2: by Cauchy–Schwarz, (E|z|³)² ≤ E[z²] E[z⁴] = 3. (Its exact value is 2 √(2/π).)

The mean of the standard Gaussian on the tail z > t is its density at t: E[z · 1{z > t}] = φ(t), since -φ is an antiderivative of z φ(z) that vanishes at infinity.

The first absolute moment of the standard Gaussian is E[|z|] = √(2 / π) O'Donnell, Section 5.2, equation (5.4): by symmetry it is 2 E[z · 1{z > 0}], which is 2 φ(0).

theorem ProbabilityTheory.HasLaw.integral_eq_zero_of_gaussianReal {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {P : MeasureTheory.Measure Ω} {g : Ω → ℝ} (hg : HasLaw g (gaussianReal 0 1) P) :
∫ (ω : Ω), g ω ∂P = 0

A random variable with standard Gaussian law has mean 0.

theorem ProbabilityTheory.HasLaw.integral_sq_eq_one_of_gaussianReal {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {P : MeasureTheory.Measure Ω} {g : Ω → ℝ} (hg : HasLaw g (gaussianReal 0 1) P) :
∫ (ω : Ω), g ω ^ 2 ∂P = 1

A random variable with standard Gaussian law has second moment 1.

theorem ProbabilityTheory.HasLaw.integral_pow_three_eq_zero_of_gaussianReal {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {P : MeasureTheory.Measure Ω} {g : Ω → ℝ} (hg : HasLaw g (gaussianReal 0 1) P) :
∫ (ω : Ω), g ω ^ 3 ∂P = 0

A random variable with standard Gaussian law has third moment 0.