MindFormal v1.0.0One Mind

MindFormal.Tools.A695LearningValue.Moments

theorem MindFormal.A695LearningValue.integral_mul_centered {Ω : Type u_1} [MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] (f g : Ω → ℝ) (hf : MeasureTheory.Integrable f μ) (hg : MeasureTheory.Integrable g μ) (hfg : MeasureTheory.Integrable (fun (ω : Ω) => f ω * g ω) μ) :
∫ (ω : Ω), f ω * g ω ∂μ = (∫ (ω : Ω), f ω ∂μ) * ∫ (ω : Ω), g ω ∂μ + ∫ (ω : Ω), (f ω - ∫ (z : Ω), f z ∂μ) * (g ω - ∫ (z : Ω), g z ∂μ) ∂μ

The covariance correction needs integrable factors and product, not independence or separate second moments.