Documentation

Mathlib.Probability.Distributions.Gaussian.Multivariate

Multivariate Gaussian distributions #

In this file we define the standard Gaussian distribution over a Euclidean space and multivariate Gaussian distributions over EuclideanSpace ℝ ι.

Main definitions #

TODO #

Tags #

multivariate Gaussian distribution

Standard Gaussian measure over a Euclidean space #

Standard Gaussian distribution on a finite-dimensional real inner product space E. This is the random vector whose coordinates in an orthonormal basis are independent standard Gaussian.

The definition uses stdOrthonormalBasis ℝ E but does not actually depend on the basis, see stdGaussian_eq_map_pi_orthonormalBasis.

Equations
  • One or more equations did not get rendered due to their size.
Instances For

    The definition of stdGaussian does not depend on the basis.

    Multivariate Gaussian measures over ℝⁿ #

    Multivariate Gaussian measure on EuclideanSpace ℝ ι with mean μ and covariance matrix S. This only makes sense when S is positive semidefinite, as then CFC.sqrt S * CFC.sqrt S = S. Otherwise CFC.sqrt S = 0, and multivariateGaussian μ S = Measure.dirac μ (see multivariateGaussian_of_not_posSemidef).

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      theorem ProbabilityTheory.covariance_eval_multivariateGaussian {ι : Type u_1} [Fintype ι] [DecidableEq ι] {μ : EuclideanSpace ι} {S : Matrix ι ι } (hS : S.PosSemidef) (i j : ι) :
      covariance (fun (x : EuclideanSpace ι) => x.ofLp i) (fun (x : EuclideanSpace ι) => x.ofLp j) (multivariateGaussian μ S) = S i j
      theorem ProbabilityTheory.variance_eval_multivariateGaussian {ι : Type u_1} [Fintype ι] [DecidableEq ι] {μ : EuclideanSpace ι} {S : Matrix ι ι } (hS : S.PosSemidef) (i : ι) :
      variance (fun (x : EuclideanSpace ι) => x.ofLp i) (multivariateGaussian μ S) = S i i
      theorem ProbabilityTheory.measurePreserving_restrict₂_multivariateGaussian {ι : Type u_2} [DecidableEq ι] {I J : Finset ι} {μ : EuclideanSpace I} {S : Matrix I I } (hS : S.PosSemidef) (hJI : J I) :
      MeasureTheory.MeasurePreserving (⇑(EuclideanSpace.restrict₂ hJI)) (multivariateGaussian μ S) (multivariateGaussian ((EuclideanSpace.restrict₂ hJI) μ) (S.submatrix (fun (i : J) => i, ) fun (i : J) => i, ))

      If one restricts a multivariate Gaussian measure indexed by a finite set I to coordinates indexed by J ⊆ I, one obtains the multivariate Gaussian measure whose covariance matrix is given by the corresponding submatrix.