On this page
The multivariate normal is the normal curve for several variables at once, such as a student's maths and physics marks in one mock test. One number for the spread is no longer enough: the covariance matrix records how the variables move together.
What is the multivariate normal distribution?
A random vector X with k components has a multivariate normal distribution N(μ, Σ) when its density is f(x) = (2π)^(−k/2) det(Σ)^(−1/2) exp(−½(x−μ)ᵀΣ⁻¹(x−μ)), as given on the multivariate normal distribution page on Wikipedia. Here μ is the mean vector and Σ is the covariance matrix, which must be positive-definite for this density to exist.
For two variables, Σ has σ_X² and σ_Y² on the diagonal and ρσ_Xσ_Y off the diagonal, where ρ is the correlation between X and Y (same source). The off-diagonal entry is the covariance, the quantity that appears when you find the variance of a sum of random variables.
The expression (x−μ)ᵀΣ⁻¹(x−μ) is the squared Mahalanobis distance; it plays the role that z² plays for one variable.
How does the covariance matrix shape the contours?
The density is constant wherever the Mahalanobis distance is constant, so each contour is an ellipse (an ellipsoid in higher dimensions). The principal axes of these ellipses point along the eigenvectors of Σ, and the semi-axes are proportional to the square roots of the eigenvalues (Wikipedia: bivariate case and geometric interpretation). New to eigenvectors? Start with what the eigenvalues of a 2x2 matrix mean.
In two dimensions, the squared Mahalanobis distance follows an exponential distribution with mean 2 (Wikipedia: interval). So the probability of landing inside the ellipse at distance r is 1 − e^(−r²/2). That gives about 39.3% inside the 1-sigma ellipse, 86.5% inside the 2-sigma ellipse and 98.9% inside the 3-sigma ellipse, lower than the 68%, 95% and 99.7% you remember from one dimension.
Worked example: two mock-test scores with correlation 0.8
Suppose X is a maths score and Y a physics score in a mock test, with means 60 and 55, both standard deviations 10, and correlation 0.8. These numbers are made up for practice; the formulas are the bivariate ones on Wikipedia.
Covariance matrix: Σ has 100 on the diagonal and 0.8 × 10 × 10 = 80 off it.
Determinant: 100 × 100 − 80 × 80 = 3600, so √det Σ = 60 and the peak density is 1/(2π × 60), about 0.00265.
Eigenvalues: solve (100 − λ)² = 80², giving λ = 180 and λ = 20.
Eigenvectors: (1, 1)/√2 for 180 and (1, −1)/√2 for 20. The ellipses lean at 45°.
Semi-axes of the 1-sigma ellipse: √180 ≈ 13.4 marks along (1, 1) and √20 ≈ 4.5 marks across it.
The long axis is students doing well or badly in both subjects together; the short axis is the smaller spread in the difference between the marks.
What is the conditional distribution of a bivariate normal?
Fix one variable and the other is still normal. For a bivariate normal, X₁ given X₂ = a is normal with mean μ₁ + ρ(σ₁/σ₂)(a − μ₂) and variance (1 − ρ²)σ₁² (Wikipedia: conditional distributions). The variance does not depend on a, and the conditional mean traces a straight line: the regression line.
In our example, a student who scores 75 in maths has a predicted physics score of 55 + 0.8 × 15 = 67, with conditional variance 100 × (1 − 0.64) = 36, so a standard deviation of 6 marks instead of 10. Knowing the maths mark cuts the standard deviation of the guess by 40%.
The regression slope, 0.8, is flatter than the 45° major axis: the line passes through each ellipse's vertical tangent points. That gap is regression to the mean: a student 15 marks above average in maths is predicted to be only 12 above average in physics.
Does zero covariance mean independence?
Only when the variables are jointly normal. If a random vector has a multivariate normal distribution, any of its components that are uncorrelated are independent (Wikipedia: correlations and independence). You can see it in the density: with ρ = 0 the cross term vanishes and f(x, y) splits into f(x) × f(y).
Two variables that are each normal need not be jointly normal. Take X standard normal and Y = WX, where W is +1 or −1 with probability 1/2 each, independent of X. Then X and Y are both standard normal and uncorrelated, yet |Y| = |X|, so they are clearly dependent; X + Y equals 0 with probability 1/2, so the pair is not bivariate normal (Wikipedia: misconceptions about the normal distribution). A real correlation, likewise, says nothing about which variable drives the other (correlation vs causation, with examples).
To test yourself, redo the example with ρ = −0.8. If covariance, eigenvectors or conditional distributions still feel shaky, the Fermi Concept Library covers each idea in mathematics, and the Fermi Problem Library has a step-by-step solver that explains the reasoning rather than printing an answer.



