NLA-lib Explorer

NLAlib.integral_sq_of_hasLaw_gaussianReal

Library · theorem

The second moment of a centred Gaussian is its variance: \mathbb{E}[X^2] = \mathbf{v} when X has law \mathcal{N}(0, \mathbf{v}).

NLAlib.integral_sq_of_hasLaw_gaussianReal.{u_1} {Ω : Type u_1} {mΩ : MeasurableSpace Ω}
  {μ : Measure Ω} {X : Ω → ℝ} {v : ℝ≥0} (hX : HasLaw X (gaussianReal 0 v) μ) :
  ∫ (ω : Ω), X ω ^ 2 ∂μ = ↑v

Full source on GitHub

Import NLAlib.Probability.Distributions.Gaussian.