Mathlib.Probability.Distributions.Gaussian

This barrel collects finite-dimensional Gaussian-measure developments.

Standard 3 core · 6 supporting This file develops the coordinate-product representation of the standard Gaussian measure on a finite-dimensional real inner-product space. ★ stdGaussian_map_normSq_eq_pi

Standard Gaussian measures

This file develops the coordinate-product representation of the standard Gaussian measure on a finite-dimensional real inner-product space. It also identifies the law of the squared norm with the sum of squared independent one-dimensional standard Gaussians.

def piGaussian reviewed
Causalean.Mathlib

For every real normed inner-product space, the coordinate product Gaussian measure is the product of independent standard normal laws, with one real-valued coordinate for every element of the finite index set whose size is the space's real rank.

Definition (Lean source)
E :
Type u_1
shared
piGaussian E :
Measure (Fin (finrank ℝ E) → ℝ)
Measure.pi (fun _ : Fin (finrank ℝ E) => gaussianReal 0 1)
def stdGaussian reviewed
Causalean.Mathlib

The standard Gaussian measure on a finite-dimensional real inner-product space.

Definition (Lean source)
stdGaussian E :
ProbabilityTheory.stdGaussian E
theorem stdGaussian_map_normSq_eq_pi reviewed
Causalean.Mathlib

Product-of-1-D-Gaussians model for the squared norm. The law of the squared norm under the standard Gaussian measure on E equals the law of the sum of squared coordinates under a product of finrank ℝ E independent standard real Gaussians.

Formal statement
E :
Type u_1
shared
(stdGaussian E).map (fun x => ‖x‖ ^ 2)
= (Measure.pi (fun _ : Fin (finrank ℝ E) => gaussianReal 0 1)).map (fun w => ∑ i, (w i) ^ 2)
Proof (Lean source)
theorem stdGaussian_map_normSq_eq_pi : (stdGaussian E).map (fun x => ‖x‖ ^ 2) = (Measure.pi (fun _ : Fin (finrank ℝ E) => gaussianReal 0 1)).map (fun w => ∑ i, (w i) ^ 2) := by rw [stdGaussian, ProbabilityTheory.stdGaussian_eq_map_pi_orthonormalBasis (stdOrthonormalBasis ℝ E), Measure.map_map (by fun_prop) (by fun_prop)] refine Measure.map_congr (ae_of_all _ fun w => ?_) simp only [Function.comp_apply] rw [← (stdOrthonormalBasis ℝ E).equiv_apply_euclideanSpace (toLp 2 w), LinearIsometryEquiv.norm_map, EuclideanSpace.norm_eq, Real.sq_sqrt (Finset.sum_nonneg fun i _ => by positivity)] refine Finset.sum_congr rfl fun i _ => ?_ rw [Real.norm_eq_abs, sq_abs]
Causalean.Mathlib.stdGaussian_map_normSq_eq_pi · Causalean/Mathlib/Probability/Distributions/Gaussian/Standard.lean:112 · uses stdGaussian
6 supporting declarations (lemmas, instances)