Documentation

TauCeti.Probability.Distributions.Gaussian.Moments

Moments of the real Gaussian distribution #

This file computes the centered moments of Mathlib's real Gaussian measure. The absolute centered moment is evaluated first from the Gaussian density and Euler's Gamma integral; the ordinary even and odd centered moments then follow from this formula and symmetry.

The formulas follow the real-Gaussian entry in the StandardDistributions roadmap and the standard calculation in, for example, Johnson, Kotz, and Balakrishnan, Continuous Univariate Distributions, volume 1, Chapter 13.

Main results #

The absolute value is integrable under every real Gaussian law.

The sum of the absolute coordinate values is integrable under two real Gaussian laws.

@[simp]
theorem TauCeti.Probability.integral_abs_sub_pow_gaussianReal (m : ℝ) (v : NNReal) (n : ℕ) :
∫ (x : ℝ), |x - m| ^ n ∂ProbabilityTheory.gaussianReal m v = (2 * ↑v) ^ (↑n / 2) * Real.Gamma ((↑n + 1) / 2) / √Real.pi

The nth absolute centered moment of a real Gaussian distribution.

The mean of the absolute value of a centered real Gaussian, the half-normal mean: E|X| = √(2 * v / π) for X ∼ N(0, v).

@[simp]

The integral of the 2nth power about the mean of a real Gaussian distribution is vⁿ (2n - 1)‼.

@[simp]

The 2nth centered moment of a real Gaussian distribution is vⁿ (2n - 1)‼.

The second moment of a real Gaussian distribution is its variance plus its squared mean.

The fourth centered moment of a real Gaussian distribution is three times its squared variance.

@[simp]

Every odd centered moment of a real Gaussian distribution vanishes.