Documentation

CslibFrontier.Foundations.Probability.Gaussian.Real

Intervals and tails of real Gaussian distributions #

Three estimates and a density formula for the real Gaussian distribution gaussianReal μ v:

Main results #

The Gaussian density is continuous.

The Gaussian density is smooth.

The Gaussian density is at most its value 1 / √(2πv) at the mean.

A nondegenerate Gaussian gives each set at most the peak density 1 / √(2πv) times its Lebesgue measure.

theorem ProbabilityTheory.gaussianReal_real_Iic_add_le (μ x : ℝ) {v : NNReal} (hv : v ≠ 0) {ε : ℝ} (hε : 0 ≤ ε) :
(gaussianReal μ v).real (Set.Iic (x + ε)) ≤ (gaussianReal μ v).real (Set.Iic x) + ε / √(2 * Real.pi * ↑v)

Anticoncentration of a Gaussian: if Z ∼ N(μ, v) with v ≠ 0 and ε ≥ 0, then Pr[Z ≤ x + ε] ≤ Pr[Z ≤ x] + ε / √(2πv), since the density is at most 1 / √(2πv).

theorem ProbabilityTheory.gaussianReal_Icc_le (μ : ℝ) (v : NNReal) (c w : ℝ) :
(gaussianReal μ v) (Set.Icc (c - w) (c + w)) ≤ (gaussianReal μ v) (Set.Icc (μ - w) (μ + w))

Anderson's inequality on the line. A Gaussian gives an interval of radius w the most mass when it is centered at the mean.

A centered real Gaussian is symmetric: negation preserves gaussianReal 0 v.

theorem ProbabilityTheory.gaussianReal_meas_ge_le (μ : ℝ) (v : NNReal) {c : ℝ} (hc : 0 < c) :
(gaussianReal μ v) {x : ℝ | c ≤ |x - μ|} ≤ ENNReal.ofReal (↑v / c ^ 2)

Chebyshev's inequality for a Gaussian. A Gaussian deviates from its mean by at least c > 0 with probability at most v / c ^ 2.

The density of a Gaussian with respect to the standard Gaussian: for v ≠ 0, gaussianReal m v has density t ↦ φ_{m,v} t / φ_{0,1} t with respect to gaussianReal 0 1.