Multivariate
Distributions
Explore the joint behavior of multiple random variables, understand covariance structure, and master the multivariate normal distribution.
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.
The Mean Vector and Covariance Matrix
For \(\mathbf{X} \in \mathbb{R}^p\), the two fundamental summaries are:
Visualizing Covariance in 2D
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:
Key Properties of the MVN
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
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)\).
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:
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)\).
Common Mistakes
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})\)?