01 / 21

Multivariate
Distributions

Explore the joint behavior of multiple random variables, understand covariance structure, and master the multivariate normal distribution.

Statistics

What Is a Multivariate Distribution?

A multivariate distribution describes the simultaneous probabilistic behavior of a random vector \(\mathbf{X} = (X_1, X_2, \ldots, X_p)^\top\). Instead of studying each variable in isolation, we capture how they vary together.

Joint PDF
\( f(x_1, \ldots, x_p) \geq 0 \) and integrates to 1 over \(\mathbb{R}^p\).
Marginals
Integrate out other variables: \( f_{X_1}(x_1) = \int f(x_1, x_2)\, dx_2 \).

The Mean Vector and Covariance Matrix

For \(\mathbf{X} \in \mathbb{R}^p\), the two fundamental summaries are:

\(\boldsymbol{\mu}\): Mean Vector
\(\boldsymbol{\mu} = E[\mathbf{X}] = (E[X_1], \ldots, E[X_p])^\top\)
\(\boldsymbol{\Sigma}\): Covariance Matrix
\(\boldsymbol{\Sigma} = E[(\mathbf{X} - \boldsymbol{\mu})(\mathbf{X} - \boldsymbol{\mu})^\top]\)

Visualizing Covariance in 2D

Positive Cov \(X_1\) \(X_2\) \(\sigma_{12} > 0\) Zero Cov \(X_1\) \(X_2\) \(\sigma_{12} = 0\) Negative Cov \(X_1\) \(X_2\) \(\sigma_{12} < 0\)

The Multivariate Normal Distribution

The most fundamental multivariate distribution. A random vector \(\mathbf{X} \sim \mathcal{N}_p(\boldsymbol{\mu}, \boldsymbol{\Sigma})\) has the PDF:

\(\boldsymbol{\mu}\)
Center of the distribution in \(\mathbb{R}^p\)
\(\boldsymbol{\Sigma}\)
Shape, spread, and orientation of the density contours
\(|\boldsymbol{\Sigma}|\)
Determinant: scales the normalizing constant

Key Properties of the MVN

1
Marginals are normal: Any subset of \(\mathbf{X}\) is also multivariate normal with the corresponding sub-vector of \(\boldsymbol{\mu}\) and sub-matrix of \(\boldsymbol{\Sigma}\).
2
Linear transforms stay normal: If \(\mathbf{Y} = A\mathbf{X} + \mathbf{b}\), then \(\mathbf{Y} \sim \mathcal{N}(A\boldsymbol{\mu} + \mathbf{b},\; A\boldsymbol{\Sigma}A^\top)\).
3
Uncorrelated \(\Leftrightarrow\) Independent: For jointly normal vectors, \(\text{Cov}(X_i, X_j) = 0\) implies full independence.
4
Conditionals are normal: \(X_1 \mid X_2 = x_2\) is normal with a specific conditional mean and variance (see next slide).

Conditional Distribution Theorem

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

Covariance vs Correlation

Covariance \(\boldsymbol{\Sigma}\) Correlation \(\mathbf{R}\)
Formula \(\Sigma_{ij} = E[(X_i - \mu_i)(X_j - \mu_j)]\) \(\rho_{ij} = \Sigma_{ij} / (\sigma_i \sigma_j)\)
Range \((-\infty, \infty)\) \([-1, 1]\)
Scale Depends on units of \(X_i, X_j\) Dimensionless
Matrix form \(\boldsymbol{\Sigma}\) \(\mathbf{R} = D^{-1}\boldsymbol{\Sigma}D^{-1}\)
Diagonal Variances \(\sigma_i^2\) All ones

How to Apply: Step-by-Step

1
Specify the model: Identify your random vector \(\mathbf{X}\), its dimension \(p\), and the assumed distribution family (e.g., MVN).
2
Estimate parameters: Compute the sample mean \(\bar{\mathbf{x}}\) and sample covariance \(S = \frac{1}{n-1}\sum_{i=1}^{n}(\mathbf{x}_i - \bar{\mathbf{x}})(\mathbf{x}_i - \bar{\mathbf{x}})^\top\).
3
Check PSD: Verify that \(S\) is positive semi-definite (all eigenvalues \(\geq 0\)). If not, something is wrong with the data or model.
4
Derive quantities of interest: Marginals, conditionals, linear combinations, or Mahalanobis distances \(d^2 = (\mathbf{x} - \boldsymbol{\mu})^\top \boldsymbol{\Sigma}^{-1}(\mathbf{x} - \boldsymbol{\mu})\).
5
Interpret: Eigendecompose \(\boldsymbol{\Sigma}\) for PCA, or partition for conditional inference.

Example 1: Bivariate Normal

Let \(\mathbf{X} = (X_1, X_2)^\top \sim \mathcal{N}_2\!\left(\begin{pmatrix} 0 \\ 0 \end{pmatrix}, \begin{pmatrix} 4 & 2 \\ 2 & 3 \end{pmatrix}\right)\). Find the marginal distribution of \(X_1\) and \(\text{Corr}(X_1, X_2)\).

\(x_1\) \(x_2\) \((0, 0)\) \(1\sigma, 2\sigma, 3\sigma\) contours \(\Sigma = \begin{pmatrix} 4 & 2 \\ 2 & 3 \end{pmatrix}\) \(\rho \approx 0.577\)

Example 2: Linear Transform

Using the same \(\mathbf{X}\), let \(Y = X_1 + X_2\). Find the distribution of \(Y\).

Example 3: Conditional Distribution

Still with our bivariate normal. Find \(X_1 \mid X_2 = 1\).

The Mahalanobis Distance

The Mahalanobis distance generalizes the concept of "how many standard deviations away" to multiple dimensions, accounting for covariance:

Geometry
Constant \(d_M\) surfaces are ellipsoids aligned with \(\boldsymbol{\Sigma}\)'s eigenvectors.
Chi-squared link
If \(\mathbf{X} \sim \mathcal{N}_p(\boldsymbol{\mu}, \boldsymbol{\Sigma})\), then \(d_M^2 \sim \chi^2_p\).

Eigendecomposition of \(\boldsymbol{\Sigma}\)

Since \(\boldsymbol{\Sigma}\) is symmetric PSD, it has the spectral decomposition \(\boldsymbol{\Sigma} = P\Lambda P^\top\), where \(P\) is orthogonal and \(\Lambda = \text{diag}(\lambda_1, \ldots, \lambda_p)\).

\(\mathbf{e}_1\) (\(\lambda_1\)) \(\mathbf{e}_2\) (\(\lambda_2\)) \(\mu\) \(\lambda_1\): variance along \(\mathbf{e}_1\) \(\lambda_2\): variance along \(\mathbf{e}_2\) Eigenvectors = principal axes

Common Mistakes

Uncorrelated = Independent
Zero covariance implies independence only for jointly normal variables. In general, uncorrelated variables can still be dependent.
Ignoring Cross-Terms
Computing \(\text{Var}(X_1 + X_2)\) as \(\sigma_1^2 + \sigma_2^2\) without the \(2\sigma_{12}\) covariance term. This is only valid when \(\sigma_{12} = 0\).
Non-PSD Matrices
Constructing a "covariance matrix" with arbitrary entries that isn't positive semi-definite. Always check: all eigenvalues \(\geq 0\) and symmetry.

Summary of Key Formulas

Concept Formula Key Insight
Covariance Matrix \(\Sigma = E[(\mathbf{X} - \mu)(\mathbf{X} - \mu)^\top]\) Symmetric, PSD
Correlation \(\rho_{ij} = \Sigma_{ij}/(\sigma_i \sigma_j)\) Dimensionless, \(\in [-1,1]\)
Linear Transform \(A\mathbf{X} \sim \mathcal{N}(A\mu, A\Sigma A^\top)\) Normality preserved
Conditional Mean \(\mu_{1|2} = \mu_1 + \Sigma_{12}\Sigma_{22}^{-1}(x_2 - \mu_2)\) Linear in \(x_2\)
Mahalanobis \(d_M^2 = (\mathbf{x}-\mu)^\top\Sigma^{-1}(\mathbf{x}-\mu)\) \(\sim \chi^2_p\) under MVN

Question 1 of 5

If \(\mathbf{X} \sim \mathcal{N}_2(\boldsymbol{\mu}, \boldsymbol{\Sigma})\) and \(\text{Cov}(X_1, X_2) = 0\), which of the following is true?

Question 2 of 5

Given \(\boldsymbol{\Sigma} = \begin{pmatrix} 9 & 3 \\ 3 & 4 \end{pmatrix}\), what is \(\text{Corr}(X_1, X_2)\)?

Question 3 of 5

If \(\mathbf{X} \sim \mathcal{N}_p(\boldsymbol{\mu}, \boldsymbol{\Sigma})\) and \(Y = \mathbf{a}^\top \mathbf{X}\), what is the distribution of \(Y\)?

Question 4 of 5

What does the conditional variance \(\Sigma_{11} - \Sigma_{12}\Sigma_{22}^{-1}\Sigma_{21}\) depend on?

Question 5 of 5

If \(\mathbf{X} \sim \mathcal{N}_3(\boldsymbol{\mu}, \boldsymbol{\Sigma})\), what is the distribution of \((\mathbf{X} - \boldsymbol{\mu})^\top \boldsymbol{\Sigma}^{-1}(\mathbf{X} - \boldsymbol{\mu})\)?