01 / 21

Multivariate Normal
Distribution

Master the joint distribution of multiple correlated Gaussian variables: density functions, covariance structure, and the geometry of probability contours.

Graduate Statistics

What Is a Multivariate Normal?

A random vector \(\mathbf{X} = (X_1, X_2, \dots, X_p)^\top\) follows a multivariate normal distribution if every linear combination \(a_1 X_1 + a_2 X_2 + \cdots + a_p X_p\) is univariate normal (or degenerate).

This is the natural extension of the familiar bell curve to \(p\) dimensions. In two dimensions, the density surface looks like a 3D hill, and its contours of equal probability form ellipses.

Bivariate Normal Contours

\(x_1\) \(x_2\) \(\boldsymbol{\mu}\) \(1\text{-}\sigma\) contour \(2\text{-}\sigma\) contour

Why Does It Matter?

Central Limit Theorem
Sums of independent random vectors converge to a multivariate normal, making it the default model for high-dimensional data.
Tractable Inference
Marginals, conditionals, and linear transformations all stay normal: closed-form solutions everywhere.
Foundation
Regression, PCA, factor analysis, Kalman filters, and Gaussian processes all rest on multivariate normality.

The Probability Density Function

For \(\mathbf{X}\sim\mathcal{N}_p(\boldsymbol{\mu},\boldsymbol{\Sigma})\) with \(\boldsymbol{\Sigma}\) positive definite:

1
Normalising constant: \((2\pi)^{p/2}|\boldsymbol{\Sigma}|^{1/2}\) ensures the density integrates to 1.
2
Mahalanobis distance: \((\mathbf{x}-\boldsymbol{\mu})^\top\boldsymbol{\Sigma}^{-1}(\mathbf{x}-\boldsymbol{\mu})\) measures how far \(\mathbf{x}\) is from the mean, accounting for correlation.
3
Contour sets: Points with equal Mahalanobis distance form ellipsoids in \(\mathbb{R}^p\).

\(\boldsymbol{\mu}\) and \(\boldsymbol{\Sigma}\) Unpacked

Mean Vector \(\boldsymbol{\mu}\)
$$\boldsymbol{\mu}=\begin{pmatrix}\mu_1\\\mu_2\\\vdots\\\mu_p\end{pmatrix}$$ The centre of the distribution: \(E[\mathbf{X}]=\boldsymbol{\mu}\).
Covariance Matrix \(\boldsymbol{\Sigma}\)
$$\boldsymbol{\Sigma}=\begin{pmatrix}\sigma_1^2 & \sigma_{12} & \cdots\\ \sigma_{21} & \sigma_2^2 & \cdots\\ \vdots & \vdots & \ddots\end{pmatrix}$$ Symmetric, positive semi-definite. Diagonal = variances; off-diagonal = covariances.

Key Properties

1
Linear transformation: If \(\mathbf{X}\sim\mathcal{N}_p(\boldsymbol{\mu},\boldsymbol{\Sigma})\) and \(\mathbf{Y}=A\mathbf{X}+\mathbf{b}\), then \(\mathbf{Y}\sim\mathcal{N}_q(A\boldsymbol{\mu}+\mathbf{b},\, A\boldsymbol{\Sigma}A^\top)\).
2
Marginal distributions: Every sub-vector of \(\mathbf{X}\) is also multivariate normal with the corresponding sub-mean and sub-covariance.
3
Conditional distributions: Conditioning on a subset of variables gives another multivariate normal (with updated mean and reduced covariance).
4
Uncorrelated = Independent: For jointly normal variables, \(\sigma_{ij}=0 \Longleftrightarrow X_i \perp\!\!\!\perp X_j\).

Marginal vs Conditional

Partition \(\mathbf{X}=\begin{pmatrix}\mathbf{X}_1\\\mathbf{X}_2\end{pmatrix}\) with matching partitions of \(\boldsymbol{\mu}\) and \(\boldsymbol{\Sigma}\):

Marginal Conditional
Distribution \(\mathbf{X}_1 \sim \mathcal{N}(\boldsymbol{\mu}_1,\boldsymbol{\Sigma}_{11})\) \(\mathbf{X}_1\mid\mathbf{X}_2=\mathbf{x}_2\)
Mean \(\boldsymbol{\mu}_1\) \(\boldsymbol{\mu}_1+\boldsymbol{\Sigma}_{12}\boldsymbol{\Sigma}_{22}^{-1}(\mathbf{x}_2-\boldsymbol{\mu}_2)\)
Covariance \(\boldsymbol{\Sigma}_{11}\) \(\boldsymbol{\Sigma}_{11}-\boldsymbol{\Sigma}_{12}\boldsymbol{\Sigma}_{22}^{-1}\boldsymbol{\Sigma}_{21}\)
Key idea Just drop variables Mean shifts; variance shrinks

How to Apply the MVN

1
Identify \(\boldsymbol{\mu}\) and \(\boldsymbol{\Sigma}\): Write down the mean vector and the full covariance matrix (check symmetry and PSD).
2
Determine the operation: Are you computing a marginal, a conditional, or applying a linear transformation?
3
Partition or transform: Extract sub-matrices, or compute \(A\boldsymbol{\mu}+\mathbf{b}\) and \(A\boldsymbol{\Sigma}A^\top\).
4
Write the result: The answer is always another (multivariate) normal distribution: state its mean and covariance.
5
Compute probabilities: Use \(\chi^2_p\) for Mahalanobis-based regions or reduce to univariate \(\mathcal{N}(0,1)\).

Example 1: Linear Transformation

Let \(\mathbf{X}=\begin{pmatrix}X_1\\X_2\end{pmatrix}\sim\mathcal{N}_2\!\left(\begin{pmatrix}1\\3\end{pmatrix},\begin{pmatrix}4&1\\1&2\end{pmatrix}\right)\). Find the distribution of \(Y=X_1+2X_2\).

Example 2: Conditional Distribution

Using the same \(\mathbf{X}\sim\mathcal{N}_2\!\left(\begin{pmatrix}1\\3\end{pmatrix},\begin{pmatrix}4&1\\1&2\end{pmatrix}\right)\), find \(X_1\mid X_2=5\).

Example 3: Mahalanobis Distance

Same distribution. Compute the Mahalanobis distance of \(\mathbf{x}=(3,\;5)^\top\) from \(\boldsymbol{\mu}\).

Geometry of the Covariance Matrix

\(\rho=0\) Uncorrelated \(\rho=0.8\) Positive \(\rho=-0.8\) Negative Effect of Correlation on Contour Shape

Independence vs Uncorrelated

Independent Uncorrelated
Definition Joint = Product of marginals \(\text{Cov}(X_i,X_j)=0\)
Implies the other? Always implies uncorrelated Does NOT imply independent (in general)
Under MVN? Equivalent Equivalent
Counterexample N/A \(X\sim\mathcal{N}(0,1)\), \(Y=X^2\): \(\text{Cov}(X,Y)=0\) but dependent

Common Mistakes

✕ Assuming normality of marginals implies joint normality
Each \(X_i\) can be \(\mathcal{N}\) without the joint vector being MVN. You must verify that all linear combinations are normal.
✕ Confusing \(\boldsymbol{\Sigma}\) with the correlation matrix
The covariance matrix has variances on the diagonal; the correlation matrix \(\mathbf{R}\) is standardised so the diagonal is all 1s.
✕ Forgetting the \(A^\top\) in \(A\boldsymbol{\Sigma}A^\top\)
The transformation rule requires the transpose on the right. Writing \(A\boldsymbol{\Sigma}A\) gives the wrong dimensions and wrong answer.

Summary of Key Results

Operation Result Mean Result Covariance
Affine \(A\mathbf{X}+\mathbf{b}\) \(A\boldsymbol{\mu}+\mathbf{b}\) \(A\boldsymbol{\Sigma}A^\top\)
Marginal of \(\mathbf{X}_1\) \(\boldsymbol{\mu}_1\) \(\boldsymbol{\Sigma}_{11}\)
Conditional \(\mathbf{X}_1\mid\mathbf{X}_2\) \(\boldsymbol{\mu}_1+\boldsymbol{\Sigma}_{12}\boldsymbol{\Sigma}_{22}^{-1}(\mathbf{x}_2-\boldsymbol{\mu}_2)\) \(\boldsymbol{\Sigma}_{11}-\boldsymbol{\Sigma}_{12}\boldsymbol{\Sigma}_{22}^{-1}\boldsymbol{\Sigma}_{21}\)
Sum \(X_1+X_2\) \(\mu_1+\mu_2\) \(\sigma_1^2+2\sigma_{12}+\sigma_2^2\)
Mahalanobis \(d^2\) \((\mathbf{x}-\boldsymbol{\mu})^\top\boldsymbol{\Sigma}^{-1}(\mathbf{x}-\boldsymbol{\mu})\sim\chi^2_p\)

Question 1 of 5

If \(\mathbf{X}\sim\mathcal{N}_3(\boldsymbol{\mu},\boldsymbol{\Sigma})\), what distribution does the linear combination \(\mathbf{a}^\top\mathbf{X}\) follow?

Question 2 of 5

For \(\mathbf{X}\sim\mathcal{N}_p(\boldsymbol{\mu},\boldsymbol{\Sigma})\), the squared Mahalanobis distance \((\mathbf{X}-\boldsymbol{\mu})^\top\boldsymbol{\Sigma}^{-1}(\mathbf{X}-\boldsymbol{\mu})\) follows which distribution?

Question 3 of 5

Let \(\begin{pmatrix}X_1\\X_2\end{pmatrix}\sim\mathcal{N}_2\!\left(\begin{pmatrix}0\\0\end{pmatrix},\begin{pmatrix}1&0\\0&1\end{pmatrix}\right)\). Which statement is true?

Question 4 of 5

If \(\mathbf{Y}=A\mathbf{X}+\mathbf{b}\) where \(A\) is \(q\times p\) and \(\mathbf{X}\sim\mathcal{N}_p(\boldsymbol{\mu},\boldsymbol{\Sigma})\), what is the covariance of \(\mathbf{Y}\)?

Question 5 of 5

Suppose each marginal \(X_i\) of a random vector \(\mathbf{X}\) is normally distributed. Does this guarantee \(\mathbf{X}\) is multivariate normal?