Gaussian Distributions and Algebra
Summary
The Gaussian (normal) distribution is the computational workhorse of PN because it is closed under all the linear operations computers do well: affine maps, marginalisation, conditioning, and (up to scale) products. Consequently Gaussian inference reduces probability theory to linear algebra — matrix multiplication and inversion. The key result is the Gaussian conditioning formula: a Gaussian prior plus a linear-Gaussian likelihood yields a Gaussian posterior in closed form.
Overview
PN quantifies uncertainty with probability measures, but for continuous-valued quantities it almost always uses Gaussian measures. The reason is practical, not merely the central limit theorem or maximum entropy: Gaussians are the family of distributions preserved under all linear operations, mirroring why linear approximations dominate numerics (rich analytic theory; computers excel at addition and multiplication). Because marginalisation (the sum rule) and conditioning (the product rule) both map to matrix operations, “Gaussian distributions map probability theory to linear algebra.” This chapter supplies the algebraic identities that every later PN derivation (Gaussian Process Regression, Bayesian Filtering and Smoothing, Bayesian Quadrature, Probabilistic Linear Solvers - Algorithmic Scaffold) invokes.
Main Content
Gaussian probability density
The Gaussian / normal distribution over has density
where is the mean and is the covariance, a symmetric positive definite (SPD) matrix with . The inverse is the precision matrix; its diagonal gives conditional (not marginal) variances: . The differential entropy is .
Closure properties
Affine maps preserve Gaussianity
If and for , , then
Every affine transformation of a Gaussian is Gaussian. (Eq. 3.4.)
Product of two Gaussian densities
The pointwise product of two Gaussian densities in is an unnormalised Gaussian; the normaliser is itself a Gaussian density evaluated at the means:
(Eq. 3.5. This concerns products of densities; the product of two Gaussian random variables is not Gaussian.)
Gaussian inference (conditioning) — master formula
Let have a Gaussian prior and let observations be linear-Gaussian in :
Then the posterior on and the marginal (evidence) on are both Gaussian:
(Eqs. 3.6–3.11.) The two equivalent forms trade a inverse for an inverse — choose whichever is smaller. The evidence covariance already appears inside the posterior, so computing the evidence adds negligible overhead.
Marginals and conditionals of a joint Gaussian
For a partitioned Gaussian with
the marginal simply reads off the corresponding sub-blocks (via the selector map in the affine rule):
and the conditional is
That marginalisation reads off sub-vectors/sub-matrices — needing only quantities of the marginal’s own dimension — is precisely what makes an infinite-dimensional Gaussian (a Gaussian process) usable: one only ever handles finite sub-blocks.
Why Gaussians are the PN workhorse
Sum rule ↔ marginalisation ↔ selecting sub-blocks; product rule ↔ conditioning ↔ matrix multiplication and inversion. Every Gaussian inference is thus a sequence of linear-algebra steps, and the dominant cost is the matrix inverse (size ). This is exactly why classical linear-algebra structure resurfaces throughout PN (see Probabilistic Linear Solvers - Algorithmic Scaffold).
Examples
Conditioning induces correlation ("explaining away")
Take independent parents (prior diagonal) and observe a linear combination . Applying the conditioning formula, the posterior covariance acquires off-diagonal terms: the two a-priori-independent variables become correlated once their sum is observed. This is Pearl’s explaining away — a direct consequence of Eq. 3.6/3.13.
1-D update
Prior , observation with (so ). The master formula gives posterior variance and mean — the familiar precision-weighted average, recovered as a special case.
Connections
- Instantiated in function space as Gaussian Process Regression (the conditioning formula becomes the GP posterior mean/covariance).
- The recursive, linear-time version for time series is Bayesian Filtering and Smoothing (Kalman predict/update = repeated affine map + conditioning).
- Hyperparameters of these Gaussians (mean/covariance scale) are inferred in Hierarchical Inference in Gaussian Models.
- The affine-closure property is what lets SDEs and derivative/integral observations stay Gaussian.
See Also
- Computation as Probabilistic Inference — why PN needs a tractable inference engine.
- Gaussian Process Regression — the infinite-dimensional generalisation.
- Bayesian Filtering and Smoothing — Gaussian conditioning applied recursively in time.
- Hierarchical Inference in Gaussian Models — inference over the Gaussian’s own parameters.