Documentation

TauCeti.Probability.Distributions.Gaussian.Density

The density of a multivariate Gaussian measure #

A multivariate Gaussian law with positive-definite covariance S is Lebesgue measure on EuclideanSpace ℝ ι weighted by the classical density

(2π)^(-d/2) * (det S)^(-1/2) * exp (-⟪x - m, S⁻¹ (x - m)⟫ / 2),

where d is the dimension. Every other covariance parameter gives a law carried by a proper affine subspace, so it is singular with respect to Lebesgue measure and has no density against it.

The nondegenerate case comes from the isotropic product density (TauCeti.Probability.pi_gaussianReal_eq_withDensity) by an affine change of variables along the square root of the covariance, which contributes the Jacobian √(det S) and turns the isotropic quadratic form into the one of S⁻¹.

Main definitions #

Main results #

References #

noncomputable def TauCeti.Probability.multivariateGaussianPDFReal {ι : Type u_1} [Fintype ι] [DecidableEq ι] (m : EuclideanSpace ℝ ι) (S : Matrix ι ι ℝ) (x : EuclideanSpace ℝ ι) :

The density of the multivariate Gaussian law with mean m and covariance S, as a real number. It is the density of multivariateGaussian m S when S is positive definite (TauCeti.Probability.multivariateGaussian_eq_withDensity); at every other S that law has no density with respect to Lebesgue measure (TauCeti.Probability.mutuallySingular_multivariateGaussian_volume).

Instances For
    noncomputable def TauCeti.Probability.multivariateGaussianPDF {ι : Type u_1} [Fintype ι] [DecidableEq ι] (m : EuclideanSpace ℝ ι) (S : Matrix ι ι ℝ) (x : EuclideanSpace ℝ ι) :

    The ℝ≥0∞-valued companion to TauCeti.Probability.multivariateGaussianPDFReal.

    Instances For
      theorem TauCeti.Probability.multivariateGaussianPDFReal_def {ι : Type u_1} [Fintype ι] [DecidableEq ι] (m : EuclideanSpace ℝ ι) (S : Matrix ι ι ℝ) :
      multivariateGaussianPDFReal m S = fun (x : EuclideanSpace ℝ ι) => (2 * Real.pi) ^ (-↑(Fintype.card ι) / 2) * S.det ^ (-1 / 2) * Real.exp (-inner ℝ (x - m) ((Matrix.toEuclideanLin S⁻¹) (x - m)) / 2)

      The defining formula of the real-valued density.

      The ℝ≥0∞-valued density is the ENNReal.ofReal lift of the real-valued one.

      The density is positive wherever the determinant is, in particular at a positive-definite covariance, where Matrix.PosDef.det_pos supplies the hypothesis.

      The real-valued density is nonnegative at every covariance parameter. At a negative determinant the real power S.det ^ (-1/2) vanishes, so the density is 0 there.

      theorem TauCeti.Probability.multivariateGaussianPDF_pos {ι : Type u_1} [Fintype ι] [DecidableEq ι] {S : Matrix ι ι ℝ} (hdet : 0 < S.det) (m x : EuclideanSpace ℝ ι) :

      The ℝ≥0∞-valued density is positive wherever the determinant is.

      @[simp]

      The ℝ≥0∞-valued density is finite at every covariance parameter.

      The ℝ≥0∞-valued density is finite at every covariance parameter.

      @[simp]

      The ℝ≥0∞-valued density carries the real-valued one back through ENNReal.toReal.

      The real-valued density is measurable.

      The ℝ≥0∞-valued density is measurable.

      The standard Gaussian on EuclideanSpace ℝ ι has the isotropic Gaussian density.

      The standard Gaussian on a finite-dimensional real inner product space has the isotropic Gaussian density (2π)^(-d/2) * exp (-‖x‖² / 2), where d is the dimension.

      @[simp]

      The standard Gaussian measure on a finite-dimensional real inner product space has full support.

      @[simp]

      The support of a multivariate Gaussian measure with positive-semidefinite covariance is the affine range of its covariance.

      A multivariate Gaussian measure with positive-semidefinite covariance is almost surely in the affine range of its covariance.

      A nondegenerate multivariate Gaussian law is Lebesgue measure with the Gaussian density.

      A random vector with a nondegenerate multivariate Gaussian law has a density.

      The Radon–Nikodym derivative of a nondegenerate multivariate Gaussian law.

      Every degenerate multivariate Gaussian law is singular. A positive-semidefinite but singular covariance carries the law on the proper affine subspace m + range (CFC.sqrt S); any other covariance makes the law a point mass.

      A degenerate multivariate Gaussian law has vanishing Radon–Nikodym derivative.