NLAlib.integral_comp_norm_of_hasLaw_gaussianVector
Library · theorem
Polar coordinates for a standard Gaussian vector, the \chi_d density: for a standard Gaussian vector \mathbf{g} of dimension d = \lvert n \rvert \ge 1 and measurable \varphi, \mathbb{E}\,\varphi(\|\mathbf{g}\|) = \frac{1}{2^{d/2 - 1}\,\Gamma(d/2)} \int_0^\infty y^{d-1} e^{-y^2/2} \varphi(y)\,dy\,. Both sides are Bochner integrals, so the identity also holds (as 0 = 0) when either side is not integrable. This is the density-level fact behind the exact small ball of \chi^2 (NLAlib.measureReal_norm_sq_le_le_rpow_div_Gamma_of_hasLaw_gaussianVector).
NLAlib.integral_comp_norm_of_hasLaw_gaussianVector.{u_1, u_2} {Ω : Type u_1}
{mΩ : MeasurableSpace Ω} {μ : Measure Ω} {n : Type u_2} [Fintype n] {g : Ω → n → ℝ}
(hg : HasLaw g (gaussianVector n) μ) (hn : 0 < Fintype.card n) {φ : ℝ → ℝ} (hφ : Measurable φ) :
∫ (ω : Ω), φ ‖WithLp.toLp 2 (g ω)‖ ∂μ =
(∫ (y : ℝ) in Set.Ioi 0, y ^ (Fintype.card n - 1) * (rexp (-y ^ 2 / 2) * φ y)) /
(2 ^ (↑(Fintype.card n) / 2 - 1) * Real.Gamma (↑(Fintype.card n) / 2))Import NLAlib.Probability.Distributions.ChiSquareMoments.