Centered covariance operator
DefinitionKLS408915f_FunctionalInequalities_Probability_Covariance_BasicFor a complete real Hilbert space with the stated measurable and Borel structures, Covariance.operator μ is the continuous linear operator obtained by Riesz representation of Mathlib's centered covariance bilinear form for a measure . Its defining identity operator_inner is ; when the second moment is available, this is the centered covariance integral, while measures without the required integrability inherit Mathlib's totalized value.
Superseded upload. This snapshot was replaced by the readable modular upload KLSModular_FunctionalInequalities_Probability_Covariance_Basic: open the replacement. The replacement preserves the source snapshot and mathematical statement, with source-module imports and identifiers without a commit suffix. This historical node remains available for existing imports.
import Mathlib.Analysis.InnerProductSpace.Dual
import Mathlib.Probability.Moments.CovarianceBilin
noncomputable section
open MeasureTheory ProbabilityTheory
namespace FunctionalInequalities
namespace Covariance
variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E]
[CompleteSpace E] [MeasurableSpace E] [BorelSpace E]
/-- The centered covariance operator, obtained by Riesz representation of
`ProbabilityTheory.covarianceBilin μ` using `InnerProductSpace.continuousLinearMapOfBilin`.
For a probability measure with `MemLp id 2 μ`, write `m = ∫ x, x ∂μ`. Then
`⟪operator μ u, v⟫ = ∫ x, ⟪u, x - m⟫ * ⟪v, x - m⟫ ∂μ`.
The definition accepts every measure; if `¬ MemLp id 2 μ`, it inherits Mathlib's zero value.
In the pinned Mathlib version, `ProbabilityTheory.covarianceOperator μ` uses the uncentered
second moment. This definition is definitionally equal to
`ProbabilityTheory.covarianceOperator (μ.map (fun x => x - ∫ y, y ∂μ))`. -/
def operator (μ : Measure E) : E →L[ℝ] E :=
InnerProductSpace.continuousLinearMapOfBilin (covarianceBilin μ)
/-- The defining Riesz identity, from `InnerProductSpace.continuousLinearMapOfBilin_apply`.
For a finite measure with `MemLp id 2 μ`, combine it with
`ProbabilityTheory.covarianceBilin_apply` to obtain the centered integral formula. -/
@[simp]
theorem operator_inner (μ : Measure E) (x y : E) :
inner ℝ (operator μ x) y = covarianceBilin μ x y := by
exact InnerProductSpace.continuousLinearMapOfBilin_apply (covarianceBilin μ) x y
end Covariance
end FunctionalInequalities