Multivariate distribution · also called multivariate Student's t
Multivariate t distribution
Several correlated quantities that, like the multivariate normal, have elliptical contours, but with heavier tails controlled by the degrees of freedom : joint asset returns, where extreme days in several markets come together; robust regression and clustering, where outliers should not dominate; the posterior of a normal mean when the variance is unknown. It is a multivariate normal whose covariance is scaled by an independent random factor, and it tends to the multivariate normal as . The plot shows two dimensions with scales and correlation in the shape matrix.
Joint density of (X₁, X₂)
E[X₁] = 0 · E[X₂] = 0 · Var X₁ = 2 · Var X₂ = 2 · Cov = 1.2 · corr = 0.6
Formulas
| Parameters |
|
|---|---|
| Support | |
| CDF | |
| Mean | |
| Variance | |
| Mode |
is not the covariance matrix: the covariance is . Each coordinate is a scaled Student's : . Uncorrelated coordinates () are still dependent, since they share the scaling factor; only the normal limit makes them independent.
Worked example
Daily returns of two assets, in standardized units, follow a bivariate with , unit scales and . What is the probability that the first return exceeds 3?
Integrating the joint density over (the marginal is ) gives about one day in 66. A normal model would say , more than ten times rarer. answer checked by code
How it relates to others
- Special case→ Student's t: Each coordinate of a multivariate is a scaled Student's with the same degrees of freedom: . checked by code
- Limit→ Multivariate normal: As , the multivariate with location and shape tends to Normal(). checked by code
- Mixture← Inverse gamma: If is Inverse gamma() and is Normal(), then is multivariate . checked by code
All the relationships, as a diagram →
In Python
from scipy import stats
import numpy as np
X = stats.multivariate_t(loc=[0, 0], shape=[[1, 0.6], [0.6, 1]], df=4)
X.pdf([0.5, -0.5]) # density here: 0.08799
X.loc, X.shape
X.rvs(size=5, random_state=0)
rng = np.random.default_rng(0)
rng.multivariate_normal(mean=[0, 0], cov=[[1, 0.6], [0.6, 1]], size=5) / np.sqrt(rng.chisquare(df=4, size=5) / 4)[:, None]SciPy calls Σ the shape. NumPy has no multivariate t sampler: divide multivariate normal draws by √(V/ν) with V chi-squared.
Choosing between this and its neighbours? Which distribution for measurements and errors?