Multivariate normal distribution
From Biocrawler, the free encyclopedia.
In probability theory and statistics, a multivariate normal distribution, also sometimes called a multivariate Gaussian distribution (in honor of Carl Friedrich Gauss, who was not the first to write about the normal distribution) is a specific probability distribution.
| Contents |
General case
A random vector
follows a multivariate normal distribution, also sometimes called a multivariate Gaussian distribution, if it satisfies the following equivalent conditions:
- every linear combination
is normally distributed
- there is a random vector
, whose components are independent standard normal random variables, a vector
and an
matrix A such that X = AZ + μ.
- there is a vector μ and a symmetric, positive semi-definite matrix Γ such that the characteristic function of X is
The following is not quite equivalent to the conditions above, since it fails to allow for a singular matrix as the variance:
- there is a vector
and a symmetric, positive definite covariance matrix Σ (
matrix) such that X has density
where
is the determinant of Σ.
Note how the equation above reduces to that of the univariate normal distribution if Σ is a scalar (i.e., a real number).
The vector μ in these conditions is the expected value of X and the matrix Σ = AAT is the covariance matrix of the components Xi.
It is important to realize that the covariance matrix must be allowed to be singular. That case arises frequently in statistics; for example, in the distribution of the vector of residuals in ordinary linear regression problems. Note also that the Xi are in general not independent; they can be seen as the result of applying the linear transformation A to a collection of independent Gaussian variables Z.
The multivariate normal can be written in the following notation:
or to make it explicitly known X is N-dimensional
Cumulative distribution function
The cumulative distribution function (cdf) F(x) is defined as the probability that all values in a random vector X are less than or equal to the corresponding values in vector x. Though there is no closed form for F(x), there are a number of algorithms that estimate it numerically. For one such example, see [1] (http://alex.strashny.org/2005/04/multivariate_normal_cumulative_distribution_function_cdf_in_matlab.html) (includes MATLAB code).
A counterexample
The fact that two random variables X and Y are normally distributed does not imply that the pair (X, Y) has a bivariate normal distribution. A simple example is one in which Y = X if |X| > 1 and Y = −X if |X| < 1.
If X and Y are normally distributed and independent, then they are "jointly normally distributed", i.e., the pair (X, Y) does have a bivariate normal distribution. There are of course also many bivariate normally distributions in which the components are correlated.
Bivariate case
In the 2-dimensional nonsingular case, the probability density function is
where ρ is the correlation between X and Y.
Linear transformation
If Y = BX is a linear transformation of X where B is an
matrix then Y has a multivariate normal distribution with expected value Bμand variance BΣBT (i.e.,
.
Corollary: any subset of the Xi has a marginal distribution that is also multivariate normal. To see this consider the following example: to extract the subset (X1,X2,X4)T, use
which extracts the desired elements directly.
Correlations and independence
In general, random variables may be uncorrelated but highly dependent. But if a random vector has a multivariate normal distribution then any two or more of its components that are uncorrelated are independent. This implies that any two or more of its components that are pairwise independent are independent.
But it is not true that two random variables that are (separately, marginally) normally distributed and uncorrelated are independent. Two random variables that are normally distributed may fail to be jointly normally distributed, i.e., the vector whose components they are may fail to have a multivariate normal distribution. For an example of two normally distributed random variables that are uncorrelated but not independent, see normally distributed and uncorrelated does not imply independent.
Conditional distributions
Then if μ and Σ are partitioned as follows
with sizes
with sizes
then the distribution of x1 conditional on x2 = a is multivariate normal
where
and covariance matrix
This matrix is the Schur complement of
in
.
Note that knowing the value of x2 to be a alters the variance; perhaps more surprisingly, the mean is shifted by
; compare this with the situation of not knowing the value of a, in which case x1 would have distribution
.
The matrix
is known as the matrix of regression coefficients.
Fisher information matrix
The Fisher information matrix (FIM) for a normal distribution takes a special formulation.
The (m,n) element of the FIM for
is
where
- tr is the trace function
Estimation of parameters
The derivation of the maximum-likelihood estimator of the covariance matrix of a multivariate normal distribution is perhaps surprisingly subtle and elegant. See estimation of covariance matrices.
In short, the pdf is
and the ML estimator of the covariance matrix is
which is simply the sample covariance matrix.
Generating values drawn from the distribution
To generate values from a multivariate normal distribution given μ and A such that X = AZ + μ as detailed above, simply generate a suitable vector of independent standard normal values Z using for example the Box-Muller transform, and apply the foregoing equation.
Given only the covariance matrix Q, one can generate a suitable A using Cholesky decomposition.

