Covariance in Banach spaces #
We define the covariance of a finite measure in a Banach space E,
as a continuous bilinear form on Dual ℝ E.
Main definitions #
Let μ be a finite measure on a normed space E with the Borel σ-algebra. We then define
- Dual.toLp: the function- MemLp.toLpas a continuous linear map from- Dual 𝕜 E(for- RCLike 𝕜) into the space- Lp 𝕜 p μfor- p ≥ 1. This needs a hypothesis- MemLp id p μ(we set it to the junk value 0 if that's not the case).
- covarianceBilinDual: covariance of a measure- μwith- ∫ x, ‖x‖^2 ∂μ < ∞on a Banach space, as a continuous bilinear form- Dual ℝ E →L[ℝ] Dual ℝ E →L[ℝ] ℝ. If the second moment of- μis not finite, we set- covarianceBilinDual μ = 0.
Main statements #
- covarianceBilinDual_apply: the covariance of- μon- L₁, L₂ : Dual ℝ Eis equal to- ∫ x, (L₁ x - μ[L₁]) * (L₂ x - μ[L₂]) ∂μ.
- covarianceBilinDual_same_eq_variance:- covarianceBilinDual μ L L = Var[L; μ].
Implementation notes #
The hypothesis that μ has a second moment is written as MemLp id 2 μ in the code.
Linear map from the dual to Lp equal to MemLp.toLp if MemLp id p μ and to 0 otherwise.
Equations
- StrongDual.toLpₗ μ p = if h_Lp : MeasureTheory.MemLp id p μ then { toFun := fun (L : StrongDual 𝕜 E) => MeasureTheory.MemLp.toLp ⇑L ⋯, map_add' := ⋯, map_smul' := ⋯ } else 0
Instances For
Continuous linear map from the dual to Lp equal to MemLp.toLp if MemLp id p μ
and to 0 otherwise.
Equations
- StrongDual.toLp μ p = { toLinearMap := StrongDual.toLpₗ μ p, cont := ⋯ }
Instances For
Continuous bilinear form with value ∫ x, L₁ x * L₂ x ∂μ on (L₁, L₂).
This is equal to the covariance only if μ is centered.
Equations
Instances For
Alias of ProbabilityTheory.uncenteredCovarianceBilinDual.
Continuous bilinear form with value ∫ x, L₁ x * L₂ x ∂μ on (L₁, L₂).
This is equal to the covariance only if μ is centered.
Equations
Instances For
Alias of ProbabilityTheory.uncenteredCovarianceBilinDual_apply.
Alias of ProbabilityTheory.uncenteredCovarianceBilinDual_of_not_memLp.
Alias of ProbabilityTheory.uncenteredCovarianceBilinDual_zero.
Alias of ProbabilityTheory.norm_uncenteredCovarianceBilinDual_le.
Continuous bilinear form with value ∫ x, (L₁ x - μ[L₁]) * (L₂ x - μ[L₂]) ∂μ on (L₁, L₂)
if MemLp id 2 μ. If not, we set it to zero.
Equations
- ProbabilityTheory.covarianceBilinDual μ = ProbabilityTheory.uncenteredCovarianceBilinDual (MeasureTheory.Measure.map (fun (x : E) => x - ∫ (x : E), x ∂μ) μ)
Instances For
Alias of ProbabilityTheory.covarianceBilinDual_self_eq_variance.