NLAlib.covariance_eq_variance_mul_div
Library · theorem
\operatorname{Cov}(U, V) = \operatorname{Var} U \cdot (\operatorname{Cov}(U, V) / \operatorname{Var} U) for U \in L^2 under a probability measure, also when \operatorname{Var} U = 0 (where the quotient is 0 by convention).
NLAlib.covariance_eq_variance_mul_div.{u_1} {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω}
[IsProbabilityMeasure μ] {U V : Ω → ℝ} (hU : MemLp U 2 μ) :
cov[U, V; μ] = Var[U; μ] * (cov[U, V; μ] / Var[U; μ])Import NLAlib.Probability.Distributions.GaussianIntegrationByParts.