Documentation

TauCeti.Probability.Distributions.Gaussian.Multivariate

The covariance matrix of a multivariate Gaussian #

This file identifies the generic covariance matrix from TauCeti.Probability.Moments.Covariance with the covariance parameter of Mathlib's multivariate Gaussian, and records the centred multivariate Gaussian as the image of the standard Gaussian under the square root of its matrix parameter. It also records measurability of Gaussian laws with covariance scaled by a precision parameter, covariance under matrix-valued linear maps and characterizes independence of complementary coordinate blocks.

Main results #

References #

@[simp]

The covariance matrix of a positive-semidefinite multivariate Gaussian is its covariance parameter.

@[simp]

Each coordinate of a multivariate Gaussian has as mean the corresponding coordinate of the mean parameter. No hypothesis on the covariance parameter is needed.

The Bochner mean of a random variable with a multivariate Gaussian law is its Gaussian mean.

A centred multivariate Gaussian law is the image of the standard Gaussian under the square root of its matrix parameter. No hypothesis on that parameter is needed.

@[simp]

A multivariate Gaussian with zero covariance is the point mass at its mean.

The Gaussian family τ ↦ N(m, τ⁻¹ • S) is measurable in the precision τ.

theorem TauCeti.Probability.measurable_multivariateGaussian_prodMk_left_apply {ι : Type u_1} [Fintype ι] [DecidableEq ι] {X : Type u_2} {Y : Type u_3} [MeasurableSpace X] [MeasurableSpace Y] {m : Y → EuclideanSpace ℝ ι} {S : Y → Matrix ι ι ℝ} {g : Y → X} (hm : Measurable m) (hS : Measurable S) (hg : Measurable g) {A : Set (X × EuclideanSpace ℝ ι)} (hA : MeasurableSet A) :
Measurable fun (y : Y) => (ProbabilityTheory.multivariateGaussian (m y) (S y)) (Prod.mk (g y) ⁻¹' A)

For measurable mean and covariance-parameter families m and S on a measurable space Y and a measurable map g : Y → X, the law multivariateGaussian (m y) (S y), evaluated on the section at g y of a measurable set A ⊆ X × EuclideanSpace ℝ ι, is measurable in y. The parameter S y need not be positive semidefinite: where it is not, the law is the point mass at m y.

The covariance of scalar inner-product projections after two matrix-valued linear maps of a multivariate Gaussian.

The two complementary coordinate blocks of a multivariate Gaussian with positive-semidefinite covariance are independent exactly when their cross-covariance block vanishes.