Mathlib.Probability.Moments.Covariance
55 declarations. Mathlib docs · Source
def ProbabilityTheory.covariance E1 #
{Ω : Type u_1} → {mΩ : MeasurableSpace Ω} → (Ω → ℝ) → (Ω → ℝ) → MeasureTheory.Measure Ω → ℝ
The covariance of two real-valued random variables defined as
the integral of (X - 𝔼[X])(Y - 𝔼[Y]).
def ProbabilityTheory.«termCov[_,_;_]» E1 #
Lean.ParserDescr
The covariance of two real-valued random variables defined as
the integral of (X - 𝔼[X])(Y - 𝔼[Y]).
def ProbabilityTheory.«termCov[_,_]» E1 #
Lean.ParserDescr
The covariance of the real-valued random variables X and Y
according to the volume measure.
theorem ProbabilityTheory.covariance_eq_sub E1 #
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {X Y : Ω → ℝ} {μ : MeasureTheory.Measure Ω}
[MeasureTheory.IsProbabilityMeasure μ],
MeasureTheory.MemLp X 2 μ →
MeasureTheory.MemLp Y 2 μ →
ProbabilityTheory.covariance X Y μ = ∫ (x : Ω), (X * Y) x ∂μ - (∫ (x : Ω), X x ∂μ) * ∫ (x : Ω), Y x ∂μ
theorem ProbabilityTheory.covariance_zero_left E0 #
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {Y : Ω → ℝ} {μ : MeasureTheory.Measure Ω},
ProbabilityTheory.covariance 0 Y μ = 0
theorem ProbabilityTheory.covariance_zero_right E0 #
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω},
ProbabilityTheory.covariance X 0 μ = 0
theorem ProbabilityTheory.covariance_zero_measure E0 #
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {X Y : Ω → ℝ}, ProbabilityTheory.covariance X Y 0 = 0
theorem ProbabilityTheory.covariance_comm E1 #
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} (X Y : Ω → ℝ) {μ : MeasureTheory.Measure Ω},
ProbabilityTheory.covariance X Y μ = ProbabilityTheory.covariance Y X μ
theorem ProbabilityTheory.covariance_const_left E0 #
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {Y : Ω → ℝ} {μ : MeasureTheory.Measure Ω}
[MeasureTheory.IsProbabilityMeasure μ] (c : ℝ), ProbabilityTheory.covariance (fun x ↦ c) Y μ = 0
theorem ProbabilityTheory.covariance_const_right E0 #
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω}
[MeasureTheory.IsProbabilityMeasure μ] (c : ℝ), ProbabilityTheory.covariance X (fun x ↦ c) μ = 0
theorem ProbabilityTheory.covariance_add_const_left E0 #
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {X Y : Ω → ℝ} {μ : MeasureTheory.Measure Ω}
[MeasureTheory.IsProbabilityMeasure μ],
MeasureTheory.Integrable X μ →
∀ (c : ℝ), ProbabilityTheory.covariance (fun ω ↦ X ω + c) Y μ = ProbabilityTheory.covariance X Y μ
theorem ProbabilityTheory.covariance_const_add_left E0 #
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {X Y : Ω → ℝ} {μ : MeasureTheory.Measure Ω}
[MeasureTheory.IsProbabilityMeasure μ],
MeasureTheory.Integrable X μ →
∀ (c : ℝ), ProbabilityTheory.covariance (fun ω ↦ c + X ω) Y μ = ProbabilityTheory.covariance X Y μ
theorem ProbabilityTheory.covariance_add_const_right E0 #
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {X Y : Ω → ℝ} {μ : MeasureTheory.Measure Ω}
[MeasureTheory.IsProbabilityMeasure μ],
MeasureTheory.Integrable Y μ →
∀ (c : ℝ), ProbabilityTheory.covariance X (fun ω ↦ Y ω + c) μ = ProbabilityTheory.covariance X Y μ
theorem ProbabilityTheory.covariance_const_add_right E0 #
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {X Y : Ω → ℝ} {μ : MeasureTheory.Measure Ω}
[MeasureTheory.IsProbabilityMeasure μ],
MeasureTheory.Integrable Y μ →
∀ (c : ℝ), ProbabilityTheory.covariance X (fun ω ↦ c + Y ω) μ = ProbabilityTheory.covariance X Y μ
theorem ProbabilityTheory.covariance_add_left E1 #
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {X Y Z : Ω → ℝ} {μ : MeasureTheory.Measure Ω}
[MeasureTheory.IsFiniteMeasure μ],
MeasureTheory.MemLp X 2 μ →
MeasureTheory.MemLp Y 2 μ →
MeasureTheory.MemLp Z 2 μ →
ProbabilityTheory.covariance (X + Y) Z μ =
ProbabilityTheory.covariance X Z μ + ProbabilityTheory.covariance Y Z μ
theorem ProbabilityTheory.covariance_add_right E1 #
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {X Y Z : Ω → ℝ} {μ : MeasureTheory.Measure Ω}
[MeasureTheory.IsFiniteMeasure μ],
MeasureTheory.MemLp X 2 μ →
MeasureTheory.MemLp Y 2 μ →
MeasureTheory.MemLp Z 2 μ →
ProbabilityTheory.covariance X (Y + Z) μ =
ProbabilityTheory.covariance X Y μ + ProbabilityTheory.covariance X Z μ
theorem ProbabilityTheory.covariance_smul_left E1 #
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {X Y : Ω → ℝ} {μ : MeasureTheory.Measure Ω} (c : ℝ),
ProbabilityTheory.covariance (c • X) Y μ = c * ProbabilityTheory.covariance X Y μ
theorem ProbabilityTheory.covariance_smul_right E1 #
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {X Y : Ω → ℝ} {μ : MeasureTheory.Measure Ω} (c : ℝ),
ProbabilityTheory.covariance X (c • Y) μ = c * ProbabilityTheory.covariance X Y μ
theorem ProbabilityTheory.covariance_const_mul_left E1 #
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {X Y : Ω → ℝ} {μ : MeasureTheory.Measure Ω} (c : ℝ),
ProbabilityTheory.covariance (fun ω ↦ c * X ω) Y μ = c * ProbabilityTheory.covariance X Y μ
theorem ProbabilityTheory.covariance_const_mul_right E1 #
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {X Y : Ω → ℝ} {μ : MeasureTheory.Measure Ω} (c : ℝ),
ProbabilityTheory.covariance X (fun ω ↦ c * Y ω) μ = c * ProbabilityTheory.covariance X Y μ
theorem ProbabilityTheory.covariance_mul_const_left E1 #
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {X Y : Ω → ℝ} {μ : MeasureTheory.Measure Ω} (c : ℝ),
ProbabilityTheory.covariance (fun ω ↦ X ω * c) Y μ = ProbabilityTheory.covariance X Y μ * c
theorem ProbabilityTheory.covariance_mul_const_right E1 #
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {X Y : Ω → ℝ} {μ : MeasureTheory.Measure Ω} (c : ℝ),
ProbabilityTheory.covariance X (fun ω ↦ Y ω * c) μ = ProbabilityTheory.covariance X Y μ * c
theorem ProbabilityTheory.covariance_fun_div_left E1 #
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {X Y : Ω → ℝ} {μ : MeasureTheory.Measure Ω} (c : ℝ),
ProbabilityTheory.covariance (fun ω ↦ X ω / c) Y μ = ProbabilityTheory.covariance X Y μ / c
theorem ProbabilityTheory.covariance_fun_div_right E1 #
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {X Y : Ω → ℝ} {μ : MeasureTheory.Measure Ω} (c : ℝ),
ProbabilityTheory.covariance X (fun ω ↦ Y ω / c) μ = ProbabilityTheory.covariance X Y μ / c
theorem ProbabilityTheory.covariance_neg_left E0 #
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {X Y : Ω → ℝ} {μ : MeasureTheory.Measure Ω},
ProbabilityTheory.covariance (-X) Y μ = -ProbabilityTheory.covariance X Y μ
theorem ProbabilityTheory.covariance_fun_neg_left E0 #
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {X Y : Ω → ℝ} {μ : MeasureTheory.Measure Ω},
ProbabilityTheory.covariance (fun ω ↦ -X ω) Y μ = -ProbabilityTheory.covariance X Y μ
theorem ProbabilityTheory.covariance_neg_right E0 #
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {X Y : Ω → ℝ} {μ : MeasureTheory.Measure Ω},
ProbabilityTheory.covariance X (-Y) μ = -ProbabilityTheory.covariance X Y μ
theorem ProbabilityTheory.covariance_fun_neg_right E0 #
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {X Y : Ω → ℝ} {μ : MeasureTheory.Measure Ω},
ProbabilityTheory.covariance X (fun ω ↦ -Y ω) μ = -ProbabilityTheory.covariance X Y μ
theorem ProbabilityTheory.covariance_sub_left E1 #
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {X Y Z : Ω → ℝ} {μ : MeasureTheory.Measure Ω}
[MeasureTheory.IsFiniteMeasure μ],
MeasureTheory.MemLp X 2 μ →
MeasureTheory.MemLp Y 2 μ →
MeasureTheory.MemLp Z 2 μ →
ProbabilityTheory.covariance (X - Y) Z μ =
ProbabilityTheory.covariance X Z μ - ProbabilityTheory.covariance Y Z μ
theorem ProbabilityTheory.covariance_fun_sub_left E1 #
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {X Y Z : Ω → ℝ} {μ : MeasureTheory.Measure Ω}
[MeasureTheory.IsFiniteMeasure μ],
MeasureTheory.MemLp X 2 μ →
MeasureTheory.MemLp Y 2 μ →
MeasureTheory.MemLp Z 2 μ →
ProbabilityTheory.covariance (fun ω ↦ X ω - Y ω) Z μ =
ProbabilityTheory.covariance X Z μ - ProbabilityTheory.covariance Y Z μ
theorem ProbabilityTheory.covariance_sub_right E1 #
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {X Y Z : Ω → ℝ} {μ : MeasureTheory.Measure Ω}
[MeasureTheory.IsFiniteMeasure μ],
MeasureTheory.MemLp X 2 μ →
MeasureTheory.MemLp Y 2 μ →
MeasureTheory.MemLp Z 2 μ →
ProbabilityTheory.covariance X (Y - Z) μ =
ProbabilityTheory.covariance X Y μ - ProbabilityTheory.covariance X Z μ
theorem ProbabilityTheory.covariance_fun_sub_right E1 #
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {X Y Z : Ω → ℝ} {μ : MeasureTheory.Measure Ω}
[MeasureTheory.IsFiniteMeasure μ],
MeasureTheory.MemLp X 2 μ →
MeasureTheory.MemLp Y 2 μ →
MeasureTheory.MemLp Z 2 μ →
ProbabilityTheory.covariance X (fun ω ↦ Y ω - Z ω) μ =
ProbabilityTheory.covariance X Y μ - ProbabilityTheory.covariance X Z μ
theorem ProbabilityTheory.covariance_sub_sub E1 #
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {X Y Z T : Ω → ℝ} {μ : MeasureTheory.Measure Ω}
[MeasureTheory.IsFiniteMeasure μ],
MeasureTheory.MemLp X 2 μ →
MeasureTheory.MemLp Y 2 μ →
MeasureTheory.MemLp Z 2 μ →
MeasureTheory.MemLp T 2 μ →
ProbabilityTheory.covariance (X - Y) (Z - T) μ =
ProbabilityTheory.covariance X Z μ - ProbabilityTheory.covariance X T μ -
ProbabilityTheory.covariance Y Z μ +
ProbabilityTheory.covariance Y T μ
theorem ProbabilityTheory.covariance_fun_sub_fun_sub E1 #
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {X Y Z T : Ω → ℝ} {μ : MeasureTheory.Measure Ω}
[MeasureTheory.IsFiniteMeasure μ],
MeasureTheory.MemLp X 2 μ →
MeasureTheory.MemLp Y 2 μ →
MeasureTheory.MemLp Z 2 μ →
MeasureTheory.MemLp T 2 μ →
ProbabilityTheory.covariance (fun ω ↦ X ω - Y ω) (fun ω ↦ Z ω - T ω) μ =
ProbabilityTheory.covariance X Z μ - ProbabilityTheory.covariance X T μ -
ProbabilityTheory.covariance Y Z μ +
ProbabilityTheory.covariance Y T μ
theorem ProbabilityTheory.covariance_sub_const_left E0 #
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {X Y : Ω → ℝ} {μ : MeasureTheory.Measure Ω}
[MeasureTheory.IsProbabilityMeasure μ],
MeasureTheory.Integrable X μ →
∀ (c : ℝ), ProbabilityTheory.covariance (fun ω ↦ X ω - c) Y μ = ProbabilityTheory.covariance X Y μ
theorem ProbabilityTheory.covariance_const_sub_left E0 #
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {X Y : Ω → ℝ} {μ : MeasureTheory.Measure Ω}
[MeasureTheory.IsProbabilityMeasure μ],
MeasureTheory.Integrable X μ →
∀ (c : ℝ), ProbabilityTheory.covariance (fun ω ↦ c - X ω) Y μ = -ProbabilityTheory.covariance X Y μ
theorem ProbabilityTheory.covariance_sub_const_right E0 #
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {X Y : Ω → ℝ} {μ : MeasureTheory.Measure Ω}
[MeasureTheory.IsProbabilityMeasure μ],
MeasureTheory.Integrable Y μ →
∀ (c : ℝ), ProbabilityTheory.covariance X (fun ω ↦ Y ω - c) μ = ProbabilityTheory.covariance X Y μ
theorem ProbabilityTheory.covariance_const_sub_right E0 #
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {X Y : Ω → ℝ} {μ : MeasureTheory.Measure Ω}
[MeasureTheory.IsProbabilityMeasure μ],
MeasureTheory.Integrable Y μ →
∀ (c : ℝ), ProbabilityTheory.covariance X (fun ω ↦ c - Y ω) μ = -ProbabilityTheory.covariance X Y μ
theorem ProbabilityTheory.covariance_sum_left' E1 #
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {Y : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {ι : Type u_2} {X : ι → Ω → ℝ}
{s : Finset ι} [MeasureTheory.IsFiniteMeasure μ],
(∀ i ∈ s, MeasureTheory.MemLp (X i) 2 μ) →
MeasureTheory.MemLp Y 2 μ →
ProbabilityTheory.covariance (∑ i ∈ s, X i) Y μ = ∑ i ∈ s, ProbabilityTheory.covariance (X i) Y μ
theorem ProbabilityTheory.covariance_sum_left E1 #
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {Y : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {ι : Type u_2} {X : ι → Ω → ℝ}
[MeasureTheory.IsFiniteMeasure μ] [inst : Fintype ι],
(∀ (i : ι), MeasureTheory.MemLp (X i) 2 μ) →
MeasureTheory.MemLp Y 2 μ →
ProbabilityTheory.covariance (∑ i, X i) Y μ = ∑ i, ProbabilityTheory.covariance (X i) Y μ
theorem ProbabilityTheory.covariance_fun_sum_left' E1 #
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {Y : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {ι : Type u_2} {X : ι → Ω → ℝ}
{s : Finset ι} [MeasureTheory.IsFiniteMeasure μ],
(∀ i ∈ s, MeasureTheory.MemLp (X i) 2 μ) →
MeasureTheory.MemLp Y 2 μ →
ProbabilityTheory.covariance (fun ω ↦ ∑ i ∈ s, X i ω) Y μ = ∑ i ∈ s, ProbabilityTheory.covariance (X i) Y μ
theorem ProbabilityTheory.covariance_fun_sum_left E1 #
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {Y : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {ι : Type u_2} {X : ι → Ω → ℝ}
[MeasureTheory.IsFiniteMeasure μ] [inst : Fintype ι],
(∀ (i : ι), MeasureTheory.MemLp (X i) 2 μ) →
MeasureTheory.MemLp Y 2 μ →
ProbabilityTheory.covariance (fun ω ↦ ∑ i, X i ω) Y μ = ∑ i, ProbabilityTheory.covariance (X i) Y μ
theorem ProbabilityTheory.covariance_sum_right' E1 #
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {Y : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {ι : Type u_2} {X : ι → Ω → ℝ}
{s : Finset ι} [MeasureTheory.IsFiniteMeasure μ],
(∀ i ∈ s, MeasureTheory.MemLp (X i) 2 μ) →
MeasureTheory.MemLp Y 2 μ →
ProbabilityTheory.covariance Y (∑ i ∈ s, X i) μ = ∑ i ∈ s, ProbabilityTheory.covariance Y (X i) μ
theorem ProbabilityTheory.covariance_sum_right E1 #
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {Y : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {ι : Type u_2} {X : ι → Ω → ℝ}
[MeasureTheory.IsFiniteMeasure μ] [inst : Fintype ι],
(∀ (i : ι), MeasureTheory.MemLp (X i) 2 μ) →
MeasureTheory.MemLp Y 2 μ →
ProbabilityTheory.covariance Y (∑ i, X i) μ = ∑ i, ProbabilityTheory.covariance Y (X i) μ
theorem ProbabilityTheory.covariance_fun_sum_right' E1 #
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {Y : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {ι : Type u_2} {X : ι → Ω → ℝ}
{s : Finset ι} [MeasureTheory.IsFiniteMeasure μ],
(∀ i ∈ s, MeasureTheory.MemLp (X i) 2 μ) →
MeasureTheory.MemLp Y 2 μ →
ProbabilityTheory.covariance Y (fun ω ↦ ∑ i ∈ s, X i ω) μ = ∑ i ∈ s, ProbabilityTheory.covariance Y (X i) μ
theorem ProbabilityTheory.covariance_fun_sum_right E1 #
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {Y : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {ι : Type u_2} {X : ι → Ω → ℝ}
[MeasureTheory.IsFiniteMeasure μ] [inst : Fintype ι],
(∀ (i : ι), MeasureTheory.MemLp (X i) 2 μ) →
MeasureTheory.MemLp Y 2 μ →
ProbabilityTheory.covariance Y (fun ω ↦ ∑ i, X i ω) μ = ∑ i, ProbabilityTheory.covariance Y (X i) μ
theorem ProbabilityTheory.covariance_sum_sum' E1 #
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {ι : Type u_2} {X : ι → Ω → ℝ} {s : Finset ι}
[MeasureTheory.IsFiniteMeasure μ] {ι' : Type u_3} {Y : ι' → Ω → ℝ} {t : Finset ι'},
(∀ i ∈ s, MeasureTheory.MemLp (X i) 2 μ) →
(∀ i ∈ t, MeasureTheory.MemLp (Y i) 2 μ) →
ProbabilityTheory.covariance (∑ i ∈ s, X i) (∑ j ∈ t, Y j) μ =
∑ i ∈ s, ∑ j ∈ t, ProbabilityTheory.covariance (X i) (Y j) μ
theorem ProbabilityTheory.covariance_sum_sum E1 #
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {ι : Type u_2} {X : ι → Ω → ℝ}
[MeasureTheory.IsFiniteMeasure μ] [inst : Fintype ι] {ι' : Type u_3} [inst_1 : Fintype ι'] {Y : ι' → Ω → ℝ},
(∀ (i : ι), MeasureTheory.MemLp (X i) 2 μ) →
(∀ (i : ι'), MeasureTheory.MemLp (Y i) 2 μ) →
ProbabilityTheory.covariance (∑ i, X i) (∑ j, Y j) μ = ∑ i, ∑ j, ProbabilityTheory.covariance (X i) (Y j) μ
theorem ProbabilityTheory.covariance_fun_sum_fun_sum' E1 #
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {ι : Type u_2} {X : ι → Ω → ℝ} {s : Finset ι}
[MeasureTheory.IsFiniteMeasure μ] {ι' : Type u_3} {Y : ι' → Ω → ℝ} {t : Finset ι'},
(∀ i ∈ s, MeasureTheory.MemLp (X i) 2 μ) →
(∀ i ∈ t, MeasureTheory.MemLp (Y i) 2 μ) →
ProbabilityTheory.covariance (fun ω ↦ ∑ i ∈ s, X i ω) (fun ω ↦ ∑ j ∈ t, Y j ω) μ =
∑ i ∈ s, ∑ j ∈ t, ProbabilityTheory.covariance (X i) (Y j) μ
theorem ProbabilityTheory.covariance_fun_sum_fun_sum E1 #
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {ι : Type u_2} {X : ι → Ω → ℝ}
[MeasureTheory.IsFiniteMeasure μ] [inst : Fintype ι] {ι' : Type u_3} [inst_1 : Fintype ι'] {Y : ι' → Ω → ℝ},
(∀ (i : ι), MeasureTheory.MemLp (X i) 2 μ) →
(∀ (i : ι'), MeasureTheory.MemLp (Y i) 2 μ) →
ProbabilityTheory.covariance (fun ω ↦ ∑ i, X i ω) (fun ω ↦ ∑ j, Y j ω) μ =
∑ i, ∑ j, ProbabilityTheory.covariance (X i) (Y j) μ
theorem ProbabilityTheory.covariance_map_equiv E1 #
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {Ω' : Type u_2} {mΩ' : MeasurableSpace Ω'} {μ : MeasureTheory.Measure Ω'}
(X Y : Ω → ℝ) (Z : Ω' ≃ᵐ Ω),
ProbabilityTheory.covariance X Y (MeasureTheory.Measure.map (⇑Z) μ) = ProbabilityTheory.covariance (X ∘ ⇑Z) (Y ∘ ⇑Z) μ
theorem ProbabilityTheory.covariance_map E1 #
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {X Y : Ω → ℝ} {Ω' : Type u_2} {mΩ' : MeasurableSpace Ω'}
{μ : MeasureTheory.Measure Ω'} {Z : Ω' → Ω},
MeasureTheory.AEStronglyMeasurable X (MeasureTheory.Measure.map Z μ) →
MeasureTheory.AEStronglyMeasurable Y (MeasureTheory.Measure.map Z μ) →
AEMeasurable Z μ →
ProbabilityTheory.covariance X Y (MeasureTheory.Measure.map Z μ) =
ProbabilityTheory.covariance (X ∘ Z) (Y ∘ Z) μ
theorem ProbabilityTheory.covariance_map_fun E1 #
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {X Y : Ω → ℝ} {Ω' : Type u_2} {mΩ' : MeasurableSpace Ω'}
{μ : MeasureTheory.Measure Ω'} {Z : Ω' → Ω},
MeasureTheory.AEStronglyMeasurable X (MeasureTheory.Measure.map Z μ) →
MeasureTheory.AEStronglyMeasurable Y (MeasureTheory.Measure.map Z μ) →
AEMeasurable Z μ →
ProbabilityTheory.covariance X Y (MeasureTheory.Measure.map Z μ) =
ProbabilityTheory.covariance (fun ω ↦ X (Z ω)) (fun ω ↦ Y (Z ω)) μ
theorem ProbabilityTheory.IndepFun.covariance_eq_zero E1 #
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {X Y : Ω → ℝ} {μ : MeasureTheory.Measure Ω},
ProbabilityTheory.IndepFun X Y μ →
MeasureTheory.MemLp X 2 μ → MeasureTheory.MemLp Y 2 μ → ProbabilityTheory.covariance X Y μ = 0
theorem ProbabilityTheory.covariance_fst_snd_prod E1 #
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {Ω' : Type u_2} {mΩ' : MeasurableSpace Ω'}
{ν : MeasureTheory.Measure Ω'} [MeasureTheory.IsProbabilityMeasure μ] [MeasureTheory.IsProbabilityMeasure ν]
{X : Ω → ℝ} {Y : Ω' → ℝ},
MeasureTheory.MemLp X 2 μ →
MeasureTheory.MemLp Y 2 ν → ProbabilityTheory.covariance (fun p ↦ X p.1) (fun p ↦ Y p.2) (μ.prod ν) = 0