![]() |
|||||||||||||
|
Multivariate normal distribution |
| Probability density function |
|
| Cumulative distribution function |
|
| Parameters | location (real vector)Σ covariance matrix (positive-definite real matrix) |
|---|---|
| Support | ![]() |
| Probability density function (pdf) | ![]() ![]() |
| Cumulative distribution function (cdf) | |
| Mean | μ |
| Median | μ |
| Mode | μ |
| Variance | Σ (covariance matrix) |
| Skewness | 0 |
| Excess kurtosis | 0 |
| Entropy | ![]() |
| Moment-generating function (mgf) | ![]() |
| Characteristic function | ![]() |
In probability theory and statistics, a multivariate normal distribution, sometimes also called a multivariate Gaussian distribution, is a generalization of the one-dimensional normal distribution (also called a Gaussian distribution) to higher dimensions. It is also closely related to matrix normal distribution.
A random vector
follows a multivariate normal distribution if it satisfies the following equivalent conditions:
is normally distributed
, whose components are independent standard normal random variables, a vector
and an
matrix
such that
.
such that the characteristic function of X is
If
is non-singular, then the distribution may be described by the following PDF:

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 1x1 matrix).
The vector μ in these conditions is the expected value of X and the matrix
is the covariance matrix of the components Xi.
It is important to realize that the covariance matrix must be allowed to be singular (thus not described by above formula for which
is defined). 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.
That the distribution of a random vector X is a multivariate normal distribution can be written in the following notation:

or to make it explicitly known that X is N-dimensional,

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 example, see MVNDST under [1] (includes FORTRAN code) or [2] (includes MATLAB code).
The fact that two random variables X and Y both have a normal distribution does not imply that the pair (X, Y) has a joint normal distribution. A simple example is one in which Y = X if |X| > 1 and Y = −X if |X| < 1. This is also true for more than two random variables.
Also see normally distributed and uncorrelated does not imply independent.
If X and Y are normally distributed and independent, this implies they are "jointly normally distributed", i.e., the pair (X, Y) must have bivariate normal distribution. However, a pair of jointly normally distributed variables need not be independent.
In the 2-dimensional nonsingular case, the probability density function (with mean (0,0)) is

where ρ is the correlation between X and Y. In this case,
.If
is an affine transformation of
where
is an
vector of constants and
an
matrix, then
has a multivariate normal distribution with expected value
and variance
i.e.,
. In particular, any subset of the
has a marginal distribution that is also multivariate normal. To see this, consider the following example: to extract the subset
, use

which extracts the desired elements directly.
Another corollary would be that the distribution of
, where b is a vector the same length as X and the dot indicates a vector product, would be univariate Gaussian with
. This result follows by using

and considering only the first component of the product (the first row of B is the vector b). Observe how the positive-definiteness of Σ implies that the variance of the dot product must be positive.
The equidensity contours of a non-singular multivariate normal distribution are ellipsoids (i.e. linear transformations of hyperspheres) centered at the mean1. The directions of the principal axes of the ellipsoids are given by the eigenvectors of the covariance matrix Σ. The squared relative lengths of the principal axes are given by the corresponding eigenvalues.
If Σ = UΛUT = UΛ1 / 2(UΛ1 / 2)T is an eigendecomposition where the columns of U are unit eigenvectors and Λ is a diagonal matrix of the eigenvalues, then we have

Moreover, U can be chosen to be a rotation matrix, as inverting an axis does not have any effect on N(0,Λ), but inverting a column changes the sign of U's determinant. The distribution N(μ,Σ) is in effect N(0,I) scaled by Λ1 / 2, rotated by U and translated by μ.
Conversely, any choice of μ, full rank matrix U, and positive diagonal entries Λi yields a non-singular multivariate normal distribution. If any Λi is zero and U is square, the resulting covariance matrix UΛUT is singular. Geometrically this means that every contour ellipsoid is infinitely thin and has zero volume in n-dimensional space, as at least one of the principal axes has length of zero.
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.
The kth-order moments of X are defined by
![\mu _{1,\dots,N}(X)\ \stackrel{\mathrm{def}}{=}\ \mu _{r_{1},\dots,r_{N}}(X)\ \stackrel{\mathrm{def}}{=}\ E\left[
\prod\limits_{j=1}^{N}X_j^{r_{j}}\right]](http://upload.wikimedia.org/math/8/e/8/8e895d7ed390749881b8992984ae3fa8.png)
where 
The central k-order central moments are given as follows
(a) If k is odd,
.
(b) If k is even with k = 2λ, then

where the sum is taken over all allocations of the set
into λ (unordered) pairs. That is, if you have a kth( = 2λ = 6) central moment, you will be summing the products of λ = 3 covariances (the -μ notation has been dropped in the interests of parsimony):
![\begin{align}
& {} E[X_1 X_2 X_3 X_4 X_5 X_6] \\
&{} = E[X_1 X_2 ]E[X_3 X_4 ]E[X_5 X_6 ] + E[X_1 X_2 ]E[X_3 X_5 ]E[X_4 X_6] + E[X_1 X_2 ]E[X_3 X_4 ]E[X_4 X_5] \\
&{} + E[X_1 X_2 ]E[X_2 X_4 ]E[X_5 X_6 ] + E[X_1 X_3 ]E[X_2 X_5 ]E[X_4 X_6 ] + E[X_1 X_3]E[X_2 X_6]E[X_4 X_5] \\
&+ E[X_1 X_4]E[X_2 X_3]E[X_5 X_6]+E[X_1 X_4]E[X_2 X_5]E[X_3 X_6]+E[X_1 X_4]E[X_2 X_6]E[X_3 X_5] \\
& + E[X_1 X_5]E[X_2 X_3]E[X_4 X_6]+E[X_1 X_5]E[X_2 X_4]E[X_3 X_6]+E[X_1 X_5]E[X_2 X_6]E[X_3 X_4] \\
& + E[X_1 X_6]E[X_2 X_3]E[X_4 X_5 ] + E[X_1 X_6]E[X_2 X_4 ]E[X_3 X_5] + E[X_1 X_6]E[X_2 X_5]E[X_3 X_4].
\end{align}](http://upload.wikimedia.org/math/3/a/0/3a04b9ee296d5b1105b177c35efb83a0.png)
This yields (2λ − 1)! / (2λ − 1(λ − 1)!) terms in the sum (15 in the above case), each being the product of λ (in this case 3) covariances. For fourth order moments (four variables) there are three terms. For sixth-order moments there are 3 × 5 = 15 terms, and for eighth-order moments there are 3 × 5 × 7 = 105 terms.
The covariances are then determined by replacing the terms of the list
by the corresponding terms of the list consisting of r1 ones, then r2 twos, etc... To illustrate this, examine the following 4th-order central moment case:
![E\left[ X_i^4\right] = 3\sigma _{ii}^2](http://upload.wikimedia.org/math/7/e/e/7ee572fbf3fbe2077e2f886d7710d1d4.png)
![E\left[ X_i^3 X_j\right] = 3\sigma _{ii} \sigma _{ij}](http://upload.wikimedia.org/math/b/d/7/bd7a84adc118f6fef0d3e44fd515f707.png)
![E\left[ X_i^2 X_j^2\right] = \sigma _{ii}\sigma_{jj}+2\left( \sigma _{ij}\right) ^2](http://upload.wikimedia.org/math/4/b/3/4b34e16082722ca5e14bc525aa275597.png)
![E\left[ X_i^2X_jX_k\right] = \sigma _{ii}\sigma _{jk}+2\sigma _{ij}\sigma _{ik}](http://upload.wikimedia.org/math/e/a/5/ea55493c283fd864bcbe46c5da9c4ee5.png)
![E\left[ X_i X_j X_k X_n\right] = \sigma _{ij}\sigma _{kn}+\sigma _{ik}\sigma _{jn}+\sigma _{in}\sigma _{jk}.](http://upload.wikimedia.org/math/6/7/6/67659b5bf0652636330890c6b45712d7.png)
where σij is the covariance of Xi and Xj. The idea with the above method is you first find the general case for a kth moment where you have k different X variables -
and then you can simplify this accordingly. Say, you have
then you simply let Xi = Xj and realise that
.
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 is 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.
The Fisher information matrix (FIM) for a normal distribution takes a special formulation. The (m,n) element of the FIM for
is

where



The Kullback-Leibler divergence from N0N(μ0,Σ0) to N1N(μ1,Σ1) is:

The logarithm must be taken to base e since the two terms following the logarithm are themselves base-e logarithms of expressions that are either factors of the density function or otherwise arise naturally. The divergence above is measured in nats. Dividing the entire expression above by loge 2 yields the divergence in bits.
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 probability density function (pdf) of an N-dimensional multivariate normal is

and the ML estimator of the covariance matrix is

which is simply the sample covariance matrix for sample size n. This is a biased estimator whose expectation is
![E[\widehat\Sigma] = {n-1 \over n}\Sigma.](http://upload.wikimedia.org/math/6/f/5/6f5b2fd1317b7743d57df74a3e9350dc.png)
An unbiased sample covariance is

The differential entropy of the multivariate normal distribution is 2



where
is the determinant of the covariance matrix Σ.
Multivariate normality tests check a given set of data for similarity to the multivariate normal distribution. The null hypothesis is that the data set is similar to the normal distribution, therefore a sufficiently small p-value indicates non-normal data. Multivariate normality tests include the Cox-Small test 3 and Smith and Jain's adaptation 4 of the Friedman-Rafsky test.
A widely used method for drawing a random vector X from the N-dimensional multivariate normal distribution with mean vector μ and covariance matrix Σ (required to be symmetric and positive-definite) works as follows:
. Any other matrix A for which this equation holds is also feasible.
be a vector whose components are N independent standard normal variates (which can be generated, for example, by using the Box-Muller transform).