N(x;μ,Σ)=(2π)⁻ⁿᐟ² det(Σ)⁻¹ᐟ² exp[−½(x−μ)ᵀΣ⁻¹(x−μ)], Σ=Σᵀ≻0.
B=Σ⁻¹≻0; N(x;μ,B⁻¹)=(2π)⁻ⁿᐟ² det(B)¹ᐟ² exp[−½(x−μ)ᵀB(x−μ)].
The ordinary n dimensional density on pages 62 to 63 requires a symmetric positive definite Σ. A semidefinite covariance can define a degenerate Gaussian measure. It may be concentrated on a lower dimensional affine space. The full space density with det(Σ) and Σ⁻¹ then does not apply. B denotes the precision matrix here.
Original parameter accounting. The mean contributes n additional parameters. A positive diagonal covariance is also full rank.| Structure | Free covariance parameters | Geometric constraint |
|---|
| Isotropic s²I | 1 | Equal variance in every direction |
|---|
| Diagonal diag(v) | n | Principal axes fixed to coordinate axes |
|---|
| General symmetric positive definite matrix | n(n+1)/2 | An arbitrary orthogonal set of principal axes |
|---|
An original example uses Σ=[[4,1],[1,1]]. Its determinant is 3 and its inverse is [[1,−1],[−1,4]]/3. For μ=0 and x=(2,1)ᵀ, the quadratic form is 4/3. The density is exp(−2/3)/(2π√3). Distance from the mean is measured in covariance geometry rather than ordinary Euclidean length alone.
Within a jointly Gaussian model, diagonal covariance makes the density a product of univariate densities. The coordinates are then independent. This is the special exception to the earlier covariance warning. Precision is another parameterization. Numerical evaluation may also use factorizations for linear solves and log determinants rather than constructing an explicit inverse. Here the Cholesky factorization is Σ=LLᵀ. L is lower triangular with positive diagonal entries.
Σ=LLᵀ, Lᵢⱼ=0 (j>i), Lᵢᵢ>0 ⇒ (x−μ)ᵀΣ⁻¹(x−μ)=‖L⁻¹(x−μ)‖₂²; log detΣ=2Σᵢlog Lᵢᵢ.
This is an original operation count analysis. Dense covariance in n dimensions needs O(n³) arithmetic operations for Cholesky setup. With the factor and log determinant fixed, each subsequent log density uses a triangular solve and quadratic norm in O(n²). A diagonal covariance gives O(n) setup and evaluation. These are algorithmic orders, not measured timings or book experiment results.
Source references: sections 3.9.3, printed pages 62 to 63. The source equation labels are 3.23 to 3.24.