NLA-lib Explorer

ProbabilityTheory.integral_comp_norm_pi_gaussianReal

Library · theorem

Polar coordinates for a standard normal vector: for d = \lvert\iota\rvert \ge 1 independent standard normal coordinates \mathbf{g} (\iota nonempty) and every \varphi : \mathbb{R} \to \mathbb{R}, \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\,, the \chi_d density. Both sides are Bochner integrals, so the identity also holds (as 0 = 0) when either side is not integrable.

ProbabilityTheory.integral_comp_norm_pi_gaussianReal.{u_1} {ι : Type u_1} [Fintype ι] [Nonempty ι]
  (φ : ℝ → ℝ) :
  (∫ (x : ι → ℝ), φ ‖WithLp.toLp 2 x‖ ∂Measure.pi fun x ↦ gaussianReal 0 1) =
    (∫ (y : ℝ) in Set.Ioi 0, y ^ (Fintype.card ι - 1) * (rexp (-y ^ 2 / 2) * φ y)) /
      (2 ^ (↑(Fintype.card ι) / 2 - 1) * Real.Gamma (↑(Fintype.card ι) / 2))

Full source on GitHub

Import NLAlib.ForMathlib.Probability.Distributions.ChiSquared.