Multivariate Gaussian Distribution
The multivariate Gaussian is the load-bearing distribution of quantitative physics: whenever several measured quantities are uncertain and their uncertainties are entangled, this is the law that describes them. Where the scalar normal needs a mean and a variance , its -dimensional successor needs a mean vector and a covariance matrix . The diagonal of holds the individual variances; the off-diagonal entries record how pairs of variables co-vary, and it is exactly those off-diagonal numbers — the correlations — that the univariate picture cannot represent and that real experiments cannot avoid. Everything the distribution does is organized by a single scalar built from those two objects: the quadratic form . Its level sets are ellipsoids centred at , tilted and stretched along the eigenvectors of , with semi-axes scaling as the square roots of the eigenvalues. These are the "error ellipses" a physicist quotes for two correlated fit parameters, and the value of that quadratic form is the Mahalanobis distance — the honest, metric-aware count of how many standard deviations from the mean a point lies, once correlation is taken into account. What makes the family indispensable, though, is its algebraic closure. Marginalize out variables, condition on observed ones, or push the vector through any linear map, and the result is again Gaussian, with means and covariances given by tidy matrix formulas. Conditioning in particular reproduces linear regression plus a reduced Schur-complement covariance — it is the Bayesian update for jointly normal data, and iterating it is the Kalman filter. Add the multivariate central limit theorem, which makes this distribution the universal attractor of sums of independent vectors, and its maximum-entropy pedigree, and you see why Gaussian noise is the default model across physics, statistics, and machine learning.
- The multivariate Gaussian generalizes the scalar normal to correlated variables and is fixed entirely by a mean vector and a symmetric positive-definite covariance matrix .
- Its density carries a quadratic form in the exponent, whose level sets are concentric ellipsoids — the error ellipses of correlated measurements — with the value of the form being the squared Mahalanobis distance, .
- Every marginal and every conditional of a Gaussian is Gaussian, and every affine image is Gaussian with covariance — the whole of linear error propagation in one line.
- Diagonalizing rotates to principal axes on which the components become independent, with the eigenvalues as the variances along those axes; whitening turns any Gaussian into a standard isotropic one.
- The characteristic function has a quadratic exponent, so all cumulants above second order vanish and every higher moment is a sum over pairings — Isserlis' (Wick's) theorem.
- Key idea: A multivariate Gaussian is completely determined by its first two moments and ; everything — marginals, conditionals, linear images, all higher moments — follows by linear algebra on these two objects.
Where this lives today
The multivariate Gaussian is quietly running much of quantitative science. In cosmology, the Planck satellite's constraints on the matter density and the fluctuation amplitude are published as tilted 2D error ellipses — literal level sets of a posterior Gaussian — and combining probes means intersecting ellipses. In navigation and control, the Kalman filter (equation (5) iterated) fuses noisy GPS, inertial, and radar data in real time aboard aircraft, spacecraft, and self-driving cars; it flew on Apollo and runs in every smartphone's location stack. In machine learning, Gaussian-process regression treats an unknown function as one enormous jointly Gaussian vector and conditions on observed points to predict the rest with calibrated error bars. In gravitational-wave astronomy, LIGO reports correlated posteriors on masses and spins as multivariate Gaussians whose Fisher-information matrix is the inverse covariance. And in lattice field theory, Wick's theorem (equation (7)) reduces every free-field correlator to a sum over pairings — the combinatorial engine behind Feynman diagrams.
The physical picture
Picture a fuzzy ellipsoidal cloud of points hovering around a centre . Its shape is dictated entirely by : a round ball when all variances are equal and nothing is correlated, a cigar tilted along a diagonal when two variables tend to rise and fall together. The eigenvectors of are the principal axes of the cloud and the eigenvalues are the variances measured along them, so the geometry of the cloud and the spectral decomposition of the covariance are the same fact told two ways. The first figure makes this concrete with a real matrix, its eigenvalues, its correlation, and a test point placed at a definite Mahalanobis distance.
The inverse covariance — the precision or information matrix — supplies the natural metric on this cloud. Distances measured with it, the Mahalanobis distances, count standard deviations while discounting directions of large spread and accounting for correlation, so a point one error-ellipse out is exactly one Mahalanobis unit away in every direction. Because is positive-definite it admits a whitening map that turns any Gaussian into the standard isotropic one, so almost every computation reduces to that clean case and an affine change back. The second figure shows the most useful consequence of the geometry: conditioning on an observed variable is just slicing the ellipse, and the slice is again a narrower Gaussian.
The core equations
The density is the whole distribution in one line: a normalizing prefactor times the exponential of minus one-half the quadratic form, whose value is the squared Mahalanobis distance.
where: — point in , a vector of jointly random variables; — mean vector, ; — covariance matrix, symmetric positive-definite, ; — determinant, the squared volume factor of the error ellipsoid; — dimension. Reading it: the density is constant on ellipsoids of constant quadratic form and falls off as a Gaussian in the Mahalanobis distance from . That quadratic form is the correct notion of distance in a correlated cloud, and under the model it is a random variable with a known law — which turns "how far out is this point?" into a calibrated probability.
where: — precision (information) matrix, the metric; — Mahalanobis distance; — chi-squared law with degrees of freedom. Reading it: a level- confidence region is the ellipsoid — the ellipse geometry and the table are one object. The characteristic function is the Fourier transform of the density; for a Gaussian it is again a Gaussian in with a quadratic exponent — the single fact behind closure under linear maps, the central limit theorem, and Wick's theorem.
where: — Fourier-conjugate vector in ; — imaginary unit. Reading it: is quadratic, so the first cumulant is , the second is , and all cumulants of order vanish — the algebraic definition of "Gaussian". Marginalizing is the easiest operation of all: to get the law of a sub-block, delete the other rows and columns of and and read off what remains — no integration needed once you trust closure.
where: — a partition of the components into two blocks; — the diagonal block for the retained variables. Reading it: marginalization ignores what you did not measure and keeps the corresponding sub-matrix untouched. Conditioning — updating once is observed — is what makes the Gaussian the workhorse of inference: the mean shifts along a regression line and the covariance shrinks to a Schur complement.
where: — regression-coefficient matrix, the Kalman "gain"; — Schur complement, the reduced covariance. Reading it: the posterior covariance never grows — observing data can only sharpen, never blur, a Gaussian estimate. Affine maps stay Gaussian, and the covariance transforms by sandwiching between and its transpose. This one identity is the entire theory of linear error propagation, correlations included.
where: — an matrix (a Jacobian, to first order, for nonlinear maps); — constant shift; — propagated covariance. Reading it: "add errors in quadrature" is the special case of a row-vector with diagonal ; the off-diagonal terms are the correction quadrature misses. Because the log-characteristic function is quadratic, every higher moment is a sum over pairings of the indices — Isserlis' theorem, known in physics as Wick's theorem, with the zero-mean fourth moment as the canonical case.
where: — covariance entries; the three terms are the three pairings of four indices. Reading it: all odd moments vanish, and every even moment is a sum of products of covariances over pairings — the combinatorial backbone of Feynman diagrams. Finally, the differential entropy depends on only through its determinant — the log-volume of the error ellipsoid — so correlations shrink and hence , and the Gaussian is the maximum-entropy law at fixed mean and covariance.
The goal is to prove that the density (1) integrates to one over , and to expose why the prefactor takes exactly its form — the from one-dimensional Gaussian integrals, the from the eigenvalue product. The calculation is a change of variables that rotates to the principal axes, where the quadratic form falls into independent squares and the integral factorizes; that same rotation is the whitening map underlying almost every Gaussian computation.
Step 1. Centre the integral with . Translation has unit Jacobian, so and the mean drops out, leaving . Why: the normalization cannot depend on where the cloud sits, only on its shape, so removing costs nothing.
Step 2. Diagonalize the (symmetric positive-definite) covariance as with orthogonal and , all . Then . Why: the spectral theorem guarantees a rotation to axes on which is diagonal — the principal axes of the error ellipsoid — and positive-definiteness guarantees the eigenvalues are genuine positive variances.
Step 3. Rotate with . An orthogonal change of variables has , so the volume element is preserved, and the quadratic form becomes . Why: rotating onto the eigenbasis is exactly what decouples the correlated variables into independent ones, which is the entire content of "whitening".
Step 4. Factorize. The determinant is , and the integral splits into a product of one-dimensional Gaussians, each . Why: once the exponent is a sum, the exponential is a product, and a product of integrals is trivial to evaluate term by term.
Step 5. Collect the pieces: . Why: the prefactor was reverse-engineered to be the reciprocal of the eigenvalue integrals, so the cancellation is exact and the density is normalized. *As a consistency check: each one-dimensional integral gives , and the eigenvalue product confirms ; for the worked matrix, .*
Go deeper · Derivation B · 1 minConditioning as Gaussian regression and the Schur complement
The goal is to derive equation (5) — that conditioning on an observed yields a Gaussian whose mean rides a regression line and whose covariance is the Schur complement of . The strategy: write the joint exponent with the block inverse of , treat as fixed, and complete the square in — the matrix on the quadratic term is the inverse conditional covariance, the linear term fixes the mean. This is exactly the calculation that becomes the Kalman-filter measurement update and Gaussian-process regression.
Step 1. Write the precision in blocks, , where the block-inverse formula gives and . Why: the conditional law is governed by the precision, not the covariance, because the exponent of the joint density is written with , and the block already contains the Schur complement.
Step 2. Freeze and look at the joint exponent purely as a function of . It is a quadratic in , so the conditional density is automatically Gaussian — closure is guaranteed before any algebra. Why: a Gaussian conditioned on part of itself cannot become anything but Gaussian, because restricting a quadratic form to an affine slice leaves a quadratic form.
Step 3. Complete the square. Expanding and grouping the -dependence gives , from which the coefficient of the quadratic term identifies the conditional covariance as . Why: for any Gaussian the matrix multiplying the quadratic term is precisely the inverse covariance, so reading it off is the whole game.
Step 4. Read off the mean by locating the stationary point of the exponent, , using . Why: substituting the block-inverse relation collapses the abstract gain into the familiar regression matrix , exposing conditioning as least-squares regression. *As a numerical check: for the worked scalar blocks , the Schur complement is and the regression gain is , exactly the figures shown in the second figure.*
Go deeper · Derivation C · 1 minThe characteristic function, closure under linear maps, and Wick's theorem
The goal is to evaluate , obtaining the quadratic-exponent form (3), and to harvest its three consequences in one place: closure under any affine map, moments by differentiation, and Isserlis' pairing theorem. The computation is a single Gaussian integral done by completing the square with a complex shift, and everything else follows because the logarithm of the answer is quadratic — the structural signature that all cumulants above second order vanish.
Step 1. Combine the exponents of and the density, shift to , and complete the square: . Why: the linear term is absorbed by a shift of the integration variable into the complex plane, exactly as in the scalar Gaussian, leaving a pure quadratic that integrates to its normalization.
Step 2. The shifted Gaussian integrates to one against the density's normalizing factor, so , and setting gives as a sanity check. Why: contour-shifting the Gaussian is legitimate because the integrand is entire and decays, so the complex shift changes nothing but the constant pulled outside.
Step 3. For an affine map, , which is again of Gaussian form with mean and covariance . Why: because of an affine image is just evaluated at a transformed argument times a phase, the quadratic-exponent form is preserved, proving equation (6) without touching the density.
Step 4. Differentiate at the origin: and , while for zero mean the fact that is exactly quadratic forces all connected higher cumulants to zero, so higher moments are sums over pairings — Wick's theorem, e.g. . Why: a moment is a derivative of , and differentiating an exponential-of-quadratic generates precisely the sum over pairings of the covariance factors, which is the combinatorics of free-field contractions. *As consistency checks: ; the log-characteristic function is quadratic, the defining hallmark of Gaussianity; and the fourth-moment pairing gives for the worked matrix.*
Limiting cases
The general specializes in several instructive ways, each recovering a distribution a physicist already knows.
| Case | Result | Meaning |
|---|---|---|
| Scalar | With a matrix the formula collapses to the ordinary normal distribution. | |
| Standard isotropic | Components are i.i.d. ; level sets are spheres. Any Gaussian is an affine image of this one. | |
| Diagonal | Uncorrelated jointly Gaussian components are independent — the density factorizes. | |
| Degenerate (singular) | No density on ; the mass lives on the affine subspace — a constraint holds with probability one. |
Worked examples
1 · Error ellipse, eigenstructure, and Mahalanobis distance (fully worked)
A two-parameter fit returns and covariance . Find the correlation coefficient, the principal axes of the error ellipse, and decide whether the point lies inside the 68% or 95% confidence region.
Step 1. Correlation. By definition . A positive tilts the ellipse up to the right; its magnitude below one confirms is non-degenerate.
Step 2. Eigenstructure. Solve , i.e. , giving , so and . As a check, and . The semi-axes of the one-sigma ellipse are and , and the major axis tilts at (the eigenvector direction ).
Step 3. Mahalanobis distance of . The inverse is , and with we get .
Step 4. Verdict. For the thresholds are and . Since , the point lies outside the 68% ellipse but inside the 95% ellipse — at the contour. Correlation matters: naively rescaling each coordinate by its own (ignoring ) gives , over-stating the distance by double-counting the shared part.
2 · Conditioning as a measurement update
With the same and , a noiseless measurement pins . Update the estimate of .
Step 1. The gain (regression coefficient) is , so the conditional mean is . The estimate of moves up because and are positively correlated and came in above its mean.
Step 2. The conditional variance is the Schur complement , down from the prior variance . Observing a correlated quantity has sharpened our knowledge of by a factor .
Step 3. So . Iterate this over a stream of noisy measurements and it is the Kalman filter; make the index a continuous input and it is Gaussian-process regression. The structural point: the posterior variance is independent of the measured value — only the mean moves — a hallmark of linear-Gaussian inference.
3 · Correlated error propagation and a Wick moment
Two zero-mean detector readings have covariance . Find the variance of the sum and the difference , and evaluate .
Step 1. Sum. With , equation (6) gives . The naive "add in quadrature" answer is too small: positive correlation makes the readings fluctuate together, amplifying the sum.
Step 2. Difference. With , . The same correlation that inflated the sum cancels in the difference — which is exactly why differential (common-mode-rejecting) measurements are so powerful when the noise is correlated.
Step 3. Wick. For zero-mean jointly Gaussian variables, equation (7) with gives . The "" is the correlation contribution; for independent readings it would vanish and leave just .
Physics of the portrait
The multivariate Gaussian has no single inventor — it accreted across a century, from Gauss's law of errors, through Bravais's correlated ellipses, to Galton's discovery that regression and correlation are geometric features of one joint law. The most human chapter belongs to Francis Galton, who saw the ellipse before he could derive it.
Origins · 1 minFrancis Galton and how this was discovered
Francis Galton — polymath, geographer, and cousin of Charles Darwin — came to the bivariate normal through data, not mathematics. Tabulating the heights of parents and their grown children in the 1870s and 1880s, he connected cells of equal joint frequency and was startled to find they traced concentric, tilted ellipses: the level sets of a two-dimensional Gaussian. The locus of mean child-height for each parent-height fell on a straight line of slope less than one — tall parents had tall but, on average, less-extreme children — and he named this pull toward the mean regression. Unable to prove the ellipses exact, he handed the picture to the Cambridge mathematician J. Hamilton Dickson, who in 1886 recovered them from the bivariate normal density, confirming that the "regression line" was precisely the conditional-mean formula . In 1888 Galton distilled the tilt into a single index of co-relation — the correlation coefficient — and modern multivariate statistics was born. Karl Pearson made rigorous; Auguste Bravais had already written the correlated -dimensional density and its error ellipsoid in 1846; Leon Isserlis proved the moment-pairing theorem in 1918 that physicists rediscovered as Wick's theorem; and Prasanta Chandra Mahalanobis defined his correlation-aware distance in 1936. Galton's gift was to see the geometry — ellipse, regression line, correlation — in a cloud of ordinary measurements, and to insist those pictures were laws.
Going further
Texts. Stone & Goldbart, Mathematics for Physics, probability and statistics chapter · Arfken & Weber, Mathematical Methods for Physicists, probability chapter · Riley, Hobson & Bence, Mathematical Methods for Physics and Engineering, statistics chapters · C. M. Bishop, Pattern Recognition and Machine Learning, §2.3 (Gaussians) · A. Papoulis & S. U. Pillai, Probability, Random Variables and Stochastic Processes · C. E. Rasmussen & C. K. I. Williams, Gaussian Processes for Machine Learning, Ch. 2. The key numerical anchors used throughout this article are: (here ); characteristic function ; chi-squared thresholds , , and ; worked figures , , , conditional , , Wick moment , and differential entropy . All results are standard textbook identities; no nonstandard constants are introduced.
Prerequisites. Gaussian (Normal) Distribution · Joint, Marginal and Conditional Distributions · Expectation, Variance and Moments · Moment-Generating and Characteristic Functions · Cumulative Distribution Functions and Change of Variables. Leads to. Central Limit Theorem · Conditional Probability and Bayes' Theorem · Laws of Large Numbers and Convergence of Random Variables.
Ask the tutor: Hand me any and and I will draw its error ellipse, condition it on a measurement, or propagate it through your favourite linear map, step by step.
Why is the multivariate Gaussian so much more useful than just stacking independent normals?
Because real quantities are correlated, and the off-diagonal entries of are the only place that information can live. Stacking independent normals forces a diagonal covariance, which cannot represent that two fit parameters trade off or that two detectors share common-mode noise. The multivariate Gaussian keeps the full and stays closed under marginalizing, conditioning, and linear maps even when is dense — which is what lets you propagate correlated errors, fuse correlated measurements, and read off regression lines by matrix algebra rather than by integration.
What exactly is the Mahalanobis distance, and why not just use ordinary distance?
It is the distance measured with the precision matrix as its metric. Ordinary Euclidean distance treats all directions alike, so it calls a point "far" even along a direction of huge natural spread. The Mahalanobis distance rescales each direction by its standard deviation and removes the shared, correlated part, so one unit always means "one error-ellipse out". That makes it the right tool for outlier detection and confidence regions: its square follows a law, converting geometry directly into a probability.
Why does conditioning always shrink the covariance?
Because information can only help. The conditional covariance is the Schur complement , and the subtracted term is positive-semi-definite, so the posterior covariance is never larger than the prior . Observing a variable correlated with tightens the estimate; if the two are uncorrelated () the subtracted term vanishes and you learn nothing. Note the shrinkage is by a fixed matrix, independent of the value observed — a peculiarly linear-Gaussian feature.
Can I have a Gaussian with a singular covariance matrix?
Yes, but it has no density on . A singular (positive-semi-definite but not definite) describes a degenerate Gaussian whose mass is confined to the affine subspace — three variables constrained by live on a plane in . The density formula breaks because and do not exist; you handle it with the Moore–Penrose pseudo-inverse, or by dropping the redundant directions. The characteristic function , by contrast, stays perfectly well defined even when is singular.
What is Wick's theorem really saying, and why do physicists love it?
It says that for zero-mean jointly Gaussian variables, every higher moment is a sum of products of covariances over all ways of pairing the factors — nothing new appears beyond . Odd moments vanish (an odd number of factors cannot be fully paired), and is the three-term sum of pairings. Physicists love it because a free quantum field has exactly this structure: every correlator reduces to a sum over pairings of two-point functions (propagators), drawn as the lines of Feynman diagrams. Perturbation theory around a Gaussian then becomes bookkeeping of contractions.
How is the Kalman filter just the conditioning rule?
A Kalman filter alternates two Gaussian operations. The predict step pushes the current estimate through the linear dynamics — an affine map, so by equation (6) it stays Gaussian with covariance plus process noise. The update step folds in a noisy measurement by conditioning the joint state-plus-measurement Gaussian on the observed value — exactly equation (5), with as the Kalman gain and the Schur complement as the shrunken posterior. Iterating predict-then-condition over a data stream is the entire algorithm — no extra machinery, only closure under affine maps and conditioning.