MindFormal v1.0.0One Mind

MindFormal.Tools.A640Standards.ConditionalCovariance

theorem MindFormal.A640Standards.conditional_event_covariance {Ω : Type u_1} [mΩ : MeasurableSpace Ω] (μ : MeasureTheory.Measure Ω) [MeasureTheory.IsProbabilityMeasure μ] (m : MeasurableSpace Ω) (hm : m ≤ mΩ) (s t : Set Ω) (hs : MeasurableSet s) (ht : MeasurableSet t) (independent : μ[(s ∩ t).indicator fun (x : Ω) => 1 | m] =ᵐ[μ] fun (ω : Ω) => μ[s.indicator fun (x : Ω) => 1 | m] ω * μ[t.indicator fun (x : Ω) => 1 | m] ω) :
μ.real (s ∩ t) - μ.real s * μ.real t = ∫ (ω : Ω), (μ[s.indicator fun (x : Ω) => 1 | m] ω - μ.real s) * (μ[t.indicator fun (x : Ω) => 1 | m] ω - μ.real t) ∂μ

Conditional independence of two event indicators has this moment factorization. Taking total expectations gives the covariance of their conditional success probabilities on an arbitrary common history.