Advanced Mathematics

The Multivariate Normal

The bell curve in many dimensions, set by a mean vector and a covariance matrix, with elliptical contours.

Needs a step first: 27

Its density is proportional to exp⁡ ⁣(−12(x−μ)TΣ−1(x−μ))\exp\!\big(-\tfrac12(x-\mu)^{\mathsf T}\Sigma^{-1}(x-\mu)\big). The contours are ellipses (ellipsoids in higher dimensions) whose axes point along the eigenvectors of Σ\Sigma, with lengths proportional to the square roots of the eigenvalues. Linear combinations, marginals and conditionals of a multivariate normal are all normal again, and for jointly normal variables zero covariance does mean independence. That closure makes it the workhorse of Kalman filters, Gaussian processes and diffusion models.

Where it shows up: A diffusion model adds multivariate normal noise to an image and learns to undo it, and a Gaussian process puts a multivariate normal over whole functions.

How to hold it: In your head

Picture its contours as ellipses whose axes are the eigenvectors of Σ\Sigma, and know that linear combinations, marginals and conditionals all stay normal.

What knowing it looks like

  • Sketch the contours of a two-dimensional normal from its covariance matrix, using its eigenvectors.
  • Find the distribution of a linear combination: aTX∼N(aTμ, aTΣa)a^{\mathsf T}X\sim N(a^{\mathsf T}\mu,\,a^{\mathsf T}\Sigma a).
  • Make correlated normal samples from independent ones by multiplying by a matrix.

Test yourself

X=(X1,X2)X=(X_1,X_2) is normal with mean 00 and covariance Σ=(2112)\Sigma=\begin{pmatrix}2&1\\1&2\end{pmatrix}. (a) Along which directions do the axes of its contour ellipses point, and in what ratio are their lengths? (b) Find the distributions of X1+X2X_1+X_2 and X1−X2X_1-X_2. (c) Are X1+X2X_1+X_2 and X1−X2X_1-X_2 independent?
Show the worked answer
(a) Σ\Sigma has eigenvalue 33 along (1,1)(1,1) and 11 along (1,−1)(1,-1), so the long axis lies along y=xy=x and the axes are in the ratio 3:1\sqrt3:1. (b) Var⁡(X1+X2)=2+2+2⋅1=6\operatorname{Var}(X_1+X_2)=2+2+2\cdot1=6 and Var⁡(X1−X2)=2+2−2⋅1=2\operatorname{Var}(X_1-X_2)=2+2-2\cdot1=2, so X1+X2∼N(0,6)X_1+X_2\sim N(0,6) and X1−X2∼N(0,2)X_1-X_2\sim N(0,2). (c) Cov⁡(X1+X2, X1−X2)=Var⁡X1−Var⁡X2=0\operatorname{Cov}(X_1+X_2,\,X_1-X_2)=\operatorname{Var}X_1-\operatorname{Var}X_2=0, and the two are jointly normal, so they are independent. For variables that are not jointly normal this last step would not follow.

Needs a step first: 27

Learn it with an AI

Copy this prompt into any AI assistant. It will take you through step by step at your level and finish with the test above.

Be my maths tutor. I'm learning "The Multivariate Normal" (Undergraduate II tier): The bell curve in many dimensions, set by a mean vector and a covariance matrix, with elliptical contours.
I already know: Joint Distributions and Covariance, The Spectral Theorem.
Teach it Socratically: first ask what I already know; then explain the core idea with one concrete example and why it's true; then give me three problems, one at a time, easy to hard. Wait for my answer, check every step, and point out mistakes without giving the answer away.
Finish by testing me with this: $X=(X_1,X_2)$ is normal with mean $0$ and covariance $\Sigma=\begin{pmatrix}2&1\\1&2\end{pmatrix}$. (a) Along which directions do the axes of its contour ellipses point, and in what ratio are their lengths? (b) Find the distributions of $X_1+X_2$ and $X_1-X_2$. (c) Are $X_1+X_2$ and $X_1-X_2$ independent?
Use LaTeX for formulas. When you say where it's used later (machine learning, quantum mechanics), be specific.

On the way to

Recommended