Joint Normality
   HOME

TheInfoList



OR:

In
probability theory Probability theory is the branch of mathematics concerned with probability. Although there are several different probability interpretations, probability theory treats the concept in a rigorous mathematical manner by expressing it through a set o ...
and
statistics Statistics (from German language, German: ''wikt:Statistik#German, Statistik'', "description of a State (polity), state, a country") is the discipline that concerns the collection, organization, analysis, interpretation, and presentation of ...
, the multivariate normal distribution, multivariate Gaussian distribution, or joint normal distribution is a generalization of the one-dimensional (
univariate In mathematics, a univariate object is an expression, equation, function or polynomial involving only one variable. Objects involving more than one variable are multivariate. In some cases the distinction between the univariate and multivariate cas ...
)
normal distribution In statistics, a normal distribution or Gaussian distribution is a type of continuous probability distribution for a real-valued random variable. The general form of its probability density function is : f(x) = \frac e^ The parameter \mu ...
to higher
dimension In physics and mathematics, the dimension of a Space (mathematics), mathematical space (or object) is informally defined as the minimum number of coordinates needed to specify any Point (geometry), point within it. Thus, a Line (geometry), lin ...
s. One definition is that a
random vector In probability, and statistics, a multivariate random variable or random vector is a list of mathematical variables each of whose value is unknown, either because the value has not yet occurred or because there is imperfect knowledge of its value. ...
is said to be ''k''-variate normally distributed if every linear combination of its ''k'' components has a univariate normal distribution. Its importance derives mainly from the multivariate central limit theorem. The multivariate normal distribution is often used to describe, at least approximately, any set of (possibly)
correlated In statistics, correlation or dependence is any statistical relationship, whether causal or not, between two random variables or bivariate data. Although in the broadest sense, "correlation" may indicate any type of association, in statistics ...
real-valued
random variable A random variable (also called random quantity, aleatory variable, or stochastic variable) is a mathematical formalization of a quantity or object which depends on random events. It is a mapping or a function from possible outcomes (e.g., the po ...
s each of which clusters around a mean value.


Definitions


Notation and parameterization

The multivariate normal distribution of a ''k''-dimensional random vector \mathbf = (X_1,\ldots,X_k)^ can be written in the following notation: : \mathbf\ \sim\ \mathcal(\boldsymbol\mu,\, \boldsymbol\Sigma), or to make it explicitly known that ''X'' is ''k''-dimensional, : \mathbf\ \sim\ \mathcal_k(\boldsymbol\mu,\, \boldsymbol\Sigma), with ''k''-dimensional mean vector : \boldsymbol\mu = \operatorname mathbf= ( \operatorname _1 \operatorname _2 \ldots, \operatorname _k) ^ \textbf, and k \times k
covariance matrix In probability theory and statistics, a covariance matrix (also known as auto-covariance matrix, dispersion matrix, variance matrix, or variance–covariance matrix) is a square matrix giving the covariance between each pair of elements of ...
: \Sigma_ = \operatorname X_i - \mu_i)( X_j - \mu_j)= \operatorname _i, X_j such that 1 \le i \le k and 1 \le j \le k. The inverse of the covariance matrix is called the
precision Precision, precise or precisely may refer to: Science, and technology, and mathematics Mathematics and computing (general) * Accuracy and precision, measurement deviation from true value and its scatter * Significant figures, the number of digit ...
matrix, denoted by \boldsymbol=\boldsymbol\Sigma^.


Standard normal random vector

A real
random vector In probability, and statistics, a multivariate random variable or random vector is a list of mathematical variables each of whose value is unknown, either because the value has not yet occurred or because there is imperfect knowledge of its value. ...
\mathbf = (X_1,\ldots,X_k)^ is called a standard normal random vector if all of its components X_i are independent and each is a zero-mean unit-variance normally distributed random variable, i.e. if X_i \sim\ \mathcal(0,1) for all i=1\ldots k.


Centered normal random vector

A real random vector \mathbf = (X_1,\ldots,X_k)^ is called a centered normal random vector if there exists a deterministic k \times \ell matrix \boldsymbol such that \boldsymbol \mathbf has the same distribution as \mathbf where \mathbf is a standard normal random vector with \ell components.


Normal random vector

A real random vector \mathbf = (X_1,\ldots,X_k)^ is called a normal random vector if there exists a random \ell-vector \mathbf, which is a standard normal random vector, a k-vector \mathbf, and a k \times \ell matrix \boldsymbol, such that \mathbf=\boldsymbol \mathbf + \mathbf. Formally: Here the
covariance matrix In probability theory and statistics, a covariance matrix (also known as auto-covariance matrix, dispersion matrix, variance matrix, or variance–covariance matrix) is a square matrix giving the covariance between each pair of elements of ...
is \boldsymbol\Sigma = \boldsymbol \boldsymbol^. In the
degenerate Degeneracy, degenerate, or degeneration may refer to: Arts and entertainment * Degenerate (album), ''Degenerate'' (album), a 2010 album by the British band Trigger the Bloodshed * Degenerate art, a term adopted in the 1920s by the Nazi Party i ...
case where the covariance matrix is
singular Singular may refer to: * Singular, the grammatical number that denotes a unit quantity, as opposed to the plural and other forms * Singular homology * SINGULAR, an open source Computer Algebra System (CAS) * Singular or sounder, a group of boar, ...
, the corresponding distribution has no density; see the section below for details. This case arises frequently in
statistics Statistics (from German language, German: ''wikt:Statistik#German, Statistik'', "description of a State (polity), state, a country") is the discipline that concerns the collection, organization, analysis, interpretation, and presentation of ...
; for example, in the distribution of the vector of residuals in the
ordinary least squares In statistics, ordinary least squares (OLS) is a type of linear least squares method for choosing the unknown parameters in a linear regression model (with fixed level-one effects of a linear function of a set of explanatory variables) by the prin ...
regression. The X_i are in general ''not'' independent; they can be seen as the result of applying the matrix \boldsymbol to a collection of independent Gaussian variables \mathbf.


Equivalent definitions

The following definitions are equivalent to the definition given above. A random vector \mathbf = (X_1, \ldots, X_k)^T has a multivariate normal distribution if it satisfies one of the following equivalent conditions. *Every linear combination Y=a_1 X_1 + \cdots + a_k X_k of its components is normally distributed. That is, for any constant vector \mathbf \in \mathbb^k, the random variable Y=\mathbf^\mathbf has a univariate normal distribution, where a univariate normal distribution with zero variance is a point mass on its mean. *There is a ''k''-vector \mathbf and a symmetric, positive semidefinite k \times k matrix \boldsymbol\Sigma, such that the
characteristic function In mathematics, the term "characteristic function" can refer to any of several distinct concepts: * The indicator function of a subset, that is the function ::\mathbf_A\colon X \to \, :which for a given subset ''A'' of ''X'', has value 1 at points ...
of \mathbf is \varphi_\mathbf(\mathbf) = \exp\Big( i\mathbf^T\boldsymbol\mu - \tfrac \mathbf^T\boldsymbol\Sigma \mathbf \Big). The spherical normal distribution can be characterised as the unique distribution where components are independent in any orthogonal coordinate system.


Density function


Non-degenerate case

The multivariate normal distribution is said to be "non-degenerate" when the symmetric
covariance matrix In probability theory and statistics, a covariance matrix (also known as auto-covariance matrix, dispersion matrix, variance matrix, or variance–covariance matrix) is a square matrix giving the covariance between each pair of elements of ...
\boldsymbol\Sigma is
positive definite In mathematics, positive definiteness is a property of any object to which a bilinear form or a sesquilinear form may be naturally associated, which is positive-definite. See, in particular: * Positive-definite bilinear form * Positive-definite f ...
. In this case the distribution has
density Density (volumetric mass density or specific mass) is the substance's mass per unit of volume. The symbol most often used for density is ''ρ'' (the lower case Greek letter rho), although the Latin letter ''D'' can also be used. Mathematical ...
where is a real ''k''-dimensional column vector and , \boldsymbol\Sigma, \equiv \det\boldsymbol\Sigma is the
determinant In mathematics, the determinant is a scalar value that is a function of the entries of a square matrix. It characterizes some properties of the matrix and the linear map represented by the matrix. In particular, the determinant is nonzero if and ...
of \boldsymbol\Sigma, also known as the
generalized variance The generalized variance is a scalar value which generalizes variance for multivariate random variables. It was introduced by Samuel S. Wilks. The generalized variance is defined as the determinant of the covariance matrix In probability ...
. The equation above reduces to that of the univariate normal distribution if \boldsymbol\Sigma is a 1 \times 1 matrix (i.e. a single real number). The circularly symmetric version of the
complex normal distribution In probability theory, the family of complex normal distributions, denoted \mathcal or \mathcal_, characterizes complex random variables whose real and imaginary parts are jointly normal. The complex normal family has three parameters: ''location' ...
has a slightly different form. Each iso-density
locus Locus (plural loci) is Latin for "place". It may refer to: Entertainment * Locus (comics), a Marvel Comics mutant villainess, a member of the Mutant Liberation Front * ''Locus'' (magazine), science fiction and fantasy magazine ** ''Locus Award' ...
— the locus of points in ''k''-dimensional space each of which gives the same particular value of the density — is an
ellipse In mathematics, an ellipse is a plane curve surrounding two focus (geometry), focal points, such that for all points on the curve, the sum of the two distances to the focal points is a constant. It generalizes a circle, which is the special ty ...
or its higher-dimensional generalization; hence the multivariate normal is a special case of the
elliptical distribution In probability and statistics, an elliptical distribution is any member of a broad family of probability distributions that generalize the multivariate normal distribution. Intuitively, in the simplified two and three dimensional case, the joint ...
s. The quantity \sqrt is known as the Mahalanobis distance, which represents the distance of the test point from the mean . Note that in the case when k = 1, the distribution reduces to a univariate normal distribution and the Mahalanobis distance reduces to the absolute value of the
standard score In statistics, the standard score is the number of standard deviations by which the value of a raw score (i.e., an observed value or data point) is above or below the mean value of what is being observed or measured. Raw scores above the mean ...
. See also Interval below.


Bivariate case

In the 2-dimensional nonsingular case (k = \operatorname\left(\Sigma\right) = 2), the
probability density function In probability theory, a probability density function (PDF), or density of a continuous random variable, is a function whose value at any given sample (or point) in the sample space (the set of possible values taken by the random variable) can ...
of a vector \text is: f(x,y) = \frac \exp \left( -\frac\left \left(\frac\right)^2 - 2\rho\left(\frac\right)\left(\frac\right) + \left(\frac\right)^2 \right \right) where \rho is the
correlation In statistics, correlation or dependence is any statistical relationship, whether causal or not, between two random variables or bivariate data. Although in the broadest sense, "correlation" may indicate any type of association, in statistics ...
between X and Y and where \sigma_X>0 and \sigma_Y>0 . In this case, : \boldsymbol\mu = \begin \mu_X \\ \mu_Y \end, \quad \boldsymbol\Sigma = \begin \sigma_X^2 & \rho \sigma_X \sigma_Y \\ \rho \sigma_X \sigma_Y & \sigma_Y^2 \end. In the bivariate case, the first equivalent condition for multivariate reconstruction of normality can be made less restrictive as it is sufficient to verify that
countably many In mathematics, a set is countable if either it is finite or it can be made in one to one correspondence with the set of natural numbers. Equivalently, a set is ''countable'' if there exists an injective function from it into the natural number ...
distinct linear combinations of X and Y are normal in order to conclude that the vector of \text is bivariate normal. The bivariate iso-density loci plotted in the x,y-plane are
ellipse In mathematics, an ellipse is a plane curve surrounding two focus (geometry), focal points, such that for all points on the curve, the sum of the two distances to the focal points is a constant. It generalizes a circle, which is the special ty ...
s, whose principal axes are defined by the
eigenvectors In linear algebra, an eigenvector () or characteristic vector of a linear transformation is a nonzero vector that changes at most by a scalar factor when that linear transformation is applied to it. The corresponding eigenvalue, often denoted b ...
of the covariance matrix \boldsymbol\Sigma (the major and minor semidiameters of the ellipse equal the square-root of the ordered eigenvalues). As the absolute value of the correlation parameter \rho increases, these loci are squeezed toward the following line : : y(x) = \sgn (\rho)\frac (x - \mu _X) + \mu_Y. This is because this expression, with \sgn(\rho) (where sgn is the
Sign function In mathematics, the sign function or signum function (from '' signum'', Latin for "sign") is an odd mathematical function that extracts the sign of a real number. In mathematical expressions the sign function is often represented as . To avoi ...
) replaced by \rho, is the
best linear unbiased prediction In statistics, best linear unbiased prediction (BLUP) is used in linear mixed models for the estimation of random effects. BLUP was derived by Charles Roy Henderson in 1950 but the term "best linear unbiased predictor" (or "prediction") seems not ...
of Y given a value of X.


Degenerate case

If the covariance matrix \boldsymbol\Sigma is not full rank, then the multivariate normal distribution is degenerate and does not have a density. More precisely, it does not have a density with respect to ''k''-dimensional
Lebesgue measure In measure theory, a branch of mathematics, the Lebesgue measure, named after French mathematician Henri Lebesgue, is the standard way of assigning a measure to subsets of ''n''-dimensional Euclidean space. For ''n'' = 1, 2, or 3, it coincides wit ...
(which is the usual measure assumed in calculus-level probability courses). Only random vectors whose distributions are
absolutely continuous In calculus, absolute continuity is a smoothness property of functions that is stronger than continuity and uniform continuity. The notion of absolute continuity allows one to obtain generalizations of the relationship between the two central oper ...
with respect to a measure are said to have densities (with respect to that measure). To talk about densities but avoid dealing with measure-theoretic complications it can be simpler to restrict attention to a subset of \operatorname(\boldsymbol\Sigma) of the coordinates of \mathbf such that the covariance matrix for this subset is positive definite; then the other coordinates may be thought of as an
affine function In Euclidean geometry, an affine transformation or affinity (from the Latin, ''affinis'', "connected with") is a geometric transformation that preserves lines and parallelism, but not necessarily Euclidean distances and angles. More generally, ...
of these selected coordinates. To talk about densities meaningfully in singular cases, then, we must select a different base measure. Using the
disintegration theorem In mathematics, the disintegration theorem is a result in measure theory and probability theory. It rigorously defines the idea of a non-trivial "restriction" of a measure to a measure zero subset of the measure space in question. It is relate ...
we can define a restriction of Lebesgue measure to the \operatorname(\boldsymbol\Sigma)-dimensional affine subspace of \mathbb^k where the Gaussian distribution is supported, i.e. \. With respect to this measure the distribution has the density of the following motif: :f(\mathbf)= \frac\sqrt where \boldsymbol\Sigma^+ is the
generalized inverse In mathematics, and in particular, algebra, a generalized inverse (or, g-inverse) of an element ''x'' is an element ''y'' that has some properties of an inverse element but not necessarily all of them. The purpose of constructing a generalized in ...
, k is the rank of \boldsymbol\Sigma and \det\nolimits^* is the
pseudo-determinant In linear algebra and statistics, the pseudo-determinant is the product of all non-zero eigenvalues of a square matrix. It coincides with the regular determinant when the matrix is non-singular. Definition The pseudo-determinant of a square '' ...
.


Cumulative distribution function

The notion of
cumulative distribution function In probability theory and statistics, the cumulative distribution function (CDF) of a real-valued random variable X, or just distribution function of X, evaluated at x, is the probability that X will take a value less than or equal to x. Ev ...
(cdf) in dimension 1 can be extended in two ways to the multidimensional case, based on rectangular and ellipsoidal regions. The first way is to define the cdf F(\mathbf) of a random vector \mathbf as the probability that all components of \mathbf are less than or equal to the corresponding values in the vector \mathbf: : F(\mathbf) = \mathbb(\mathbf\leq \mathbf), \quad \text \mathbf \sim \mathcal(\boldsymbol\mu,\, \boldsymbol\Sigma). Though there is no closed form for F(\mathbf), there are a number of algorithms that
estimate it numerically
Another way is to define the cdf F(r) as the probability that a sample lies inside the ellipsoid determined by its Mahalanobis distance r from the Gaussian, a direct generalization of the standard deviation.Bensimhoun Michael, ''N-Dimensional Cumulative Function, And Other Useful Facts About Gaussians and Normal Densities'' (2006)
/ref> In order to compute the values of this function, closed analytic formulae exist, as follows.


Interval

The interval for the multivariate normal distribution yields a region consisting of those vectors x satisfying :(-)^T^(-) \leq \chi^2_k(p). Here is a k-dimensional vector, is the known k-dimensional mean vector, \boldsymbol\Sigma is the known
covariance matrix In probability theory and statistics, a covariance matrix (also known as auto-covariance matrix, dispersion matrix, variance matrix, or variance–covariance matrix) is a square matrix giving the covariance between each pair of elements of ...
and \chi^2_k(p) is the
quantile function In probability and statistics, the quantile function, associated with a probability distribution of a random variable, specifies the value of the random variable such that the probability of the variable being less than or equal to that value equ ...
for probability p of the
chi-squared distribution In probability theory and statistics, the chi-squared distribution (also chi-square or \chi^2-distribution) with k degrees of freedom is the distribution of a sum of the squares of k independent standard normal random variables. The chi-squa ...
with k degrees of freedom. When k = 2, the expression defines the interior of an ellipse and the chi-squared distribution simplifies to an
exponential distribution In probability theory and statistics, the exponential distribution is the probability distribution of the time between events in a Poisson point process, i.e., a process in which events occur continuously and independently at a constant average ...
with mean equal to two (rate equal to half).


Complementary cumulative distribution function (tail distribution)

The complementary cumulative distribution function (ccdf) or the tail distribution is defined as \overline F(\mathbf)=1-\mathbb P(\mathbf X\leq \mathbf x). When \mathbf \sim \mathcal(\boldsymbol\mu,\, \boldsymbol\Sigma), then the ccdf can be written as a probability the maximum of dependent Gaussian variables: : \overline F(\mathbf) =\mathbb P\left(\bigcup_i\\right)= \mathbb P(\max_i Y_i\geq 0), \quad \text \mathbf \sim \mathcal(\boldsymbol\mu-\mathbf,\, \boldsymbol\Sigma). While no simple closed formula exists for computing the ccdf, the maximum of dependent Gaussian variables can be estimated accurately via the
Monte Carlo method Monte Carlo methods, or Monte Carlo experiments, are a broad class of computational algorithms that rely on repeated random sampling to obtain numerical results. The underlying concept is to use randomness to solve problems that might be determi ...
.


Properties


Probability in different domains

The probability content of the multivariate normal in a quadratic domain defined by q(\boldsymbol) = \boldsymbol' \mathbf \boldsymbol + \boldsymbol' \boldsymbol + q_0>0 (where \mathbf is a matrix, \boldsymbol is a vector, and q_0 is a scalar), which is relevant for Bayesian classification/decision theory using Gaussian discriminant analysis, is given by the
generalized chi-squared distribution In probability theory and statistics, the generalized chi-squared distribution (or generalized chi-square distribution) is the distribution of a quadratic form of a multinormal variable (normal vector), or a linear combination of different no ...
. The probability content within any general domain defined by f(\boldsymbol)>0 (where f(\boldsymbol) is a general function) can be computed using the numerical method of ray-tracing
Matlab code
.


Higher moments

The ''k''th-order moments of x are given by : \mu_(\mathbf)\ \stackrel\ \mu _(\mathbf)\ \stackrel \operatorname E\left \prod_^N X_j^ \right where The ''k''th-order central moments are as follows where the sum is taken over all allocations of the set \left\ into ''λ'' (unordered) pairs. That is, for a ''k''th central moment, one sums the products of covariances (the expected value ''μ'' is taken to be 0 in the interests of parsimony): : \begin & \operatorname E _1 X_2 X_3 X_4 X_5 X_6\\ pt= & \operatorname E
_1 X_2 1 (one, unit, unity) is a number representing a single or the only entity. 1 is also a numerical digit and represents a single unit of counting or measurement. For example, a line segment of ''unit length'' is a line segment of length&nb ...
operatorname E
_3 X_4 3 (three) is a number, numeral and digit. It is the natural number following 2 and preceding 4, and is the smallest odd prime number and the only prime preceding a square number. It has religious or cultural significance in many societie ...
operatorname E
_5 X_6 5 (five) is a number, numeral and digit. It is the natural number, and cardinal number, following 4 and preceding 6, and is a prime number. It has attained significance throughout history in part because typical humans have five digits on eac ...
+ \operatorname E
_1 X_2 1 (one, unit, unity) is a number representing a single or the only entity. 1 is also a numerical digit and represents a single unit of counting or measurement. For example, a line segment of ''unit length'' is a line segment of length&nb ...
operatorname E
_3 X_5 3 (three) is a number, numeral and digit. It is the natural number following 2 and preceding 4, and is the smallest odd prime number and the only prime preceding a square number. It has religious or cultural significance in many societie ...
operatorname E
_4 X_6 4 (four) is a number, numeral and digit. It is the natural number following 3 and preceding 5. It is the smallest semiprime and composite number, and is considered unlucky in many East Asian cultures. In mathematics Four is the smallest c ...
+ \operatorname E
_1 X_2 1 (one, unit, unity) is a number representing a single or the only entity. 1 is also a numerical digit and represents a single unit of counting or measurement. For example, a line segment of ''unit length'' is a line segment of length&nb ...
operatorname E _3 X_6\operatorname E _4 X_5\\ pt& + \operatorname E
_1 X_3 1 (one, unit, unity) is a number representing a single or the only entity. 1 is also a numerical digit and represents a single unit (measurement), unit of counting or measurement. For example, a line segment of ''unit length'' is a line segment ...
operatorname E _2 X_4operatorname E
_5 X_6 5 (five) is a number, numeral and digit. It is the natural number, and cardinal number, following 4 and preceding 6, and is a prime number. It has attained significance throughout history in part because typical humans have five digits on eac ...
+ \operatorname E
_1 X_3 1 (one, unit, unity) is a number representing a single or the only entity. 1 is also a numerical digit and represents a single unit (measurement), unit of counting or measurement. For example, a line segment of ''unit length'' is a line segment ...
operatorname E _2 X_5operatorname E
_4 X_6 4 (four) is a number, numeral and digit. It is the natural number following 3 and preceding 5. It is the smallest semiprime and composite number, and is considered unlucky in many East Asian cultures. In mathematics Four is the smallest c ...
+ \operatorname E
_1 X_3 1 (one, unit, unity) is a number representing a single or the only entity. 1 is also a numerical digit and represents a single unit (measurement), unit of counting or measurement. For example, a line segment of ''unit length'' is a line segment ...
operatorname E _2 X_6\operatorname E _4 X_5\\ pt& + \operatorname E
_1 X_4 1 (one, unit, unity) is a number representing a single or the only entity. 1 is also a numerical digit and represents a single unit (measurement), unit of counting or measurement. For example, a line segment of ''unit length'' is a line segment ...
operatorname E _2 X_3operatorname E
_5 X_6 5 (five) is a number, numeral and digit. It is the natural number, and cardinal number, following 4 and preceding 6, and is a prime number. It has attained significance throughout history in part because typical humans have five digits on eac ...
+ \operatorname E
_1 X_4 1 (one, unit, unity) is a number representing a single or the only entity. 1 is also a numerical digit and represents a single unit (measurement), unit of counting or measurement. For example, a line segment of ''unit length'' is a line segment ...
operatorname E _2 X_5operatorname E _3 X_6 \operatorname E
_1 X_4 1 (one, unit, unity) is a number representing a single or the only entity. 1 is also a numerical digit and represents a single unit (measurement), unit of counting or measurement. For example, a line segment of ''unit length'' is a line segment ...
operatorname E _2 X_6\operatorname E
_3 X_5 3 (three) is a number, numeral and digit. It is the natural number following 2 and preceding 4, and is the smallest odd prime number and the only prime preceding a square number. It has religious or cultural significance in many societie ...
\\ pt& + \operatorname E
_1 X_5 1 (one, unit, unity) is a number representing a single or the only entity. 1 is also a numerical digit and represents a single unit (measurement), unit of counting or measurement. For example, a line segment of ''unit length'' is a line segment ...
operatorname E _2 X_3operatorname E
_4 X_6 4 (four) is a number, numeral and digit. It is the natural number following 3 and preceding 5. It is the smallest semiprime and composite number, and is considered unlucky in many East Asian cultures. In mathematics Four is the smallest c ...
+ \operatorname E
_1 X_5 1 (one, unit, unity) is a number representing a single or the only entity. 1 is also a numerical digit and represents a single unit (measurement), unit of counting or measurement. For example, a line segment of ''unit length'' is a line segment ...
operatorname E _2 X_4operatorname E _3 X_6+ \operatorname E
_1 X_5 1 (one, unit, unity) is a number representing a single or the only entity. 1 is also a numerical digit and represents a single unit (measurement), unit of counting or measurement. For example, a line segment of ''unit length'' is a line segment ...
operatorname E _2 X_6\operatorname E
_3 X_4 3 (three) is a number, numeral and digit. It is the natural number following 2 and preceding 4, and is the smallest odd prime number and the only prime preceding a square number. It has religious or cultural significance in many societie ...
\\ pt& + \operatorname E
_1 X_6 1 (one, unit, unity) is a number representing a single or the only entity. 1 is also a numerical digit and represents a single unit of counting or measurement. For example, a line segment of ''unit length'' is a line segment of length 1 ...
operatorname E _2 X_3operatorname E _4 X_5+ \operatorname E
_1 X_6 1 (one, unit, unity) is a number representing a single or the only entity. 1 is also a numerical digit and represents a single unit of counting or measurement. For example, a line segment of ''unit length'' is a line segment of length 1 ...
operatorname E _2 X_4operatorname E
_3 X_5 3 (three) is a number, numeral and digit. It is the natural number following 2 and preceding 4, and is the smallest odd prime number and the only prime preceding a square number. It has religious or cultural significance in many societie ...
+ \operatorname E
_1 X_6 1 (one, unit, unity) is a number representing a single or the only entity. 1 is also a numerical digit and represents a single unit of counting or measurement. For example, a line segment of ''unit length'' is a line segment of length 1 ...
\operatorname E _2 X_5operatorname E
_3 X_4 3 (three) is a number, numeral and digit. It is the natural number following 2 and preceding 4, and is the smallest odd prime number and the only prime preceding a square number. It has religious or cultural significance in many societie ...
\end This yields \tfrac 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 terms, and for eighth-order moments there are terms. The covariances are then determined by replacing the terms of the list 1, \ldots, 2\lambda/math> by the corresponding terms of the list consisting of ''r''1 ones, then ''r''2 twos, etc.. To illustrate this, examine the following 4th-order central moment case: : \begin \operatorname E \left X_i^4 \right & = 3\sigma_^2 \\ pt\operatorname E \left X_i^3 X_j \right & = 3\sigma_ \sigma_ \\ pt\operatorname E \left X_i^2 X_j^2 \right & = \sigma_\sigma_+2 \sigma _^2 \\ pt\operatorname E \left X_i^2 X_j X_k \right & = \sigma_\sigma _+2\sigma _\sigma_ \\ pt\operatorname E \left X_i X_j X_k X_n \right & = \sigma_\sigma _ + \sigma _ \sigma_ + \sigma_ \sigma _. \end where \sigma_ is the covariance of ''Xi'' and ''Xj''. With the above method one first finds the general case for a ''k''th moment with ''k'' different ''X'' variables, E\left X_i X_j X_k X_n\right/math>, and then one simplifies this accordingly. For example, for \operatorname E X_i^2 X_k X_n /math>, one lets and one uses the fact that \sigma_ = \sigma_i^2.


Functions of a normal vector

A
quadratic form In mathematics, a quadratic form is a polynomial with terms all of degree two ("form" is another name for a homogeneous polynomial). For example, :4x^2 + 2xy - 3y^2 is a quadratic form in the variables and . The coefficients usually belong to a ...
of a normal vector \boldsymbol, q(\boldsymbol) = \boldsymbol' \mathbf \boldsymbol + \boldsymbol' \boldsymbol + q_0 (where \mathbf is a matrix, \boldsymbol is a vector, and q_0 is a scalar), is a generalized chi-squared variable. If f(\boldsymbol) is a general scalar-valued function of a normal vector, its
probability density function In probability theory, a probability density function (PDF), or density of a continuous random variable, is a function whose value at any given sample (or point) in the sample space (the set of possible values taken by the random variable) can ...
,
cumulative distribution function In probability theory and statistics, the cumulative distribution function (CDF) of a real-valued random variable X, or just distribution function of X, evaluated at x, is the probability that X will take a value less than or equal to x. Ev ...
, and inverse cumulative distribution function can be computed with the numerical method of ray-tracing
Matlab code
.


Likelihood function

If the mean and covariance matrix are known, the log likelihood of an observed vector \boldsymbol is simply the log of the
probability density function In probability theory, a probability density function (PDF), or density of a continuous random variable, is a function whose value at any given sample (or point) in the sample space (the set of possible values taken by the random variable) can ...
: :\ln L (\boldsymbol)= -\frac \left \boldsymbol\Sigma, \,) + (\boldsymbol-\boldsymbol\mu)'\boldsymbol\Sigma^(\boldsymbol-\boldsymbol\mu) + k\ln(2\pi) \right/math>, The circularly symmetric version of the noncentral complex case, where \boldsymbol is a vector of complex numbers, would be :\ln L (\boldsymbol) = -\ln (, \boldsymbol\Sigma, \,) -(\boldsymbol-\boldsymbol\mu)^\dagger\boldsymbol\Sigma^(\boldsymbol-\boldsymbol\mu) -k\ln(\pi) i.e. with the
conjugate transpose In mathematics, the conjugate transpose, also known as the Hermitian transpose, of an m \times n complex matrix \boldsymbol is an n \times m matrix obtained by transposing \boldsymbol and applying complex conjugate on each entry (the complex con ...
(indicated by \dagger) replacing the normal
transpose In linear algebra, the transpose of a matrix is an operator which flips a matrix over its diagonal; that is, it switches the row and column indices of the matrix by producing another matrix, often denoted by (among other notations). The tr ...
(indicated by '). This is slightly different than in the real case, because the circularly symmetric version of the
complex normal distribution In probability theory, the family of complex normal distributions, denoted \mathcal or \mathcal_, characterizes complex random variables whose real and imaginary parts are jointly normal. The complex normal family has three parameters: ''location' ...
has a slightly different form for the
normalization constant The concept of a normalizing constant arises in probability theory and a variety of other areas of mathematics. The normalizing constant is used to reduce any probability function to a probability density function with total probability of one. ...
. A similar notation is used for
multiple linear regression In statistics, linear regression is a linear approach for modelling the relationship between a scalar response and one or more explanatory variables (also known as dependent and independent variables). The case of one explanatory variable is call ...
. Since the log likelihood of a normal vector is a
quadratic form In mathematics, a quadratic form is a polynomial with terms all of degree two ("form" is another name for a homogeneous polynomial). For example, :4x^2 + 2xy - 3y^2 is a quadratic form in the variables and . The coefficients usually belong to a ...
of the normal vector, it is distributed as a generalized chi-squared variable.


Differential entropy

The
differential entropy Differential entropy (also referred to as continuous entropy) is a concept in information theory that began as an attempt by Claude Shannon to extend the idea of (Shannon) entropy, a measure of average surprisal of a random variable, to continu ...
of the multivariate normal distribution is : \begin h\left(f\right) & = -\int_^\infty \int_^\infty \cdots\int_^\infty f(\mathbf) \ln f(\mathbf)\,d\mathbf,\\ & = \frac12 \ln\left(\left, \left(2\pi e\right)\boldsymbol\Sigma \\right) = \frac12 \ln\left(\left(2\pi e\right)^k \left, \boldsymbol\Sigma \\right) = \frac \ln\left(2\pi e\right) + \frac \ln\left(\left, \boldsymbol\Sigma \\right) = \frac + \frac \ln\left(2\pi \right) + \frac \ln\left(\left, \boldsymbol\Sigma \\right)\\ \end where the bars denote the
matrix determinant In mathematics, the determinant is a scalar value that is a function of the entries of a square matrix. It characterizes some properties of the matrix and the linear map represented by the matrix. In particular, the determinant is nonzero if an ...
and is the dimensionality of the vector space.


Kullback–Leibler divergence

The
Kullback–Leibler divergence In mathematical statistics, the Kullback–Leibler divergence (also called relative entropy and I-divergence), denoted D_\text(P \parallel Q), is a type of statistical distance: a measure of how one probability distribution ''P'' is different fro ...
from \mathcal_1(\boldsymbol\mu_1, \boldsymbol\Sigma_1) to \mathcal_0(\boldsymbol\mu_0, \boldsymbol\Sigma_0), for non-singular matrices Σ1 and Σ0, is: : D_\text(\mathcal_0 \parallel \mathcal_1) = \left\, where k is the dimension of the vector space. The
logarithm In mathematics, the logarithm is the inverse function to exponentiation. That means the logarithm of a number  to the base  is the exponent to which must be raised, to produce . For example, since , the ''logarithm base'' 10 o ...
must be taken to base ''e (mathematical constant), 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 equation therefore gives a result measured in nat (unit), nats. Dividing the entire expression above by log''e'' 2 yields the divergence in bits. When \boldsymbol\mu_1 = \boldsymbol\mu_0, : D_\text(\mathcal_0 \parallel \mathcal_1) = \left\.


Mutual information

The mutual information of a distribution is a special case of the
Kullback–Leibler divergence In mathematical statistics, the Kullback–Leibler divergence (also called relative entropy and I-divergence), denoted D_\text(P \parallel Q), is a type of statistical distance: a measure of how one probability distribution ''P'' is different fro ...
in which P is the full multivariate distribution and Q is the product of the 1-dimensional marginal distributions. In the notation of the #Kullback–Leibler divergence, Kullback–Leibler divergence section of this article, \boldsymbol\Sigma_1 is a diagonal matrix with the diagonal entries of \boldsymbol\Sigma_0, and \boldsymbol\mu_1 = \boldsymbol\mu_0. The resulting formula for mutual information is: : I(\boldsymbol) = - \ln , \boldsymbol \rho_0 , , where \boldsymbol \rho_0 is the Covariance matrix#Correlation matrix, correlation matrix constructed from \boldsymbol \Sigma_0. In the bivariate case the expression for the mutual information is: : I(x;y) = - \ln (1 - \rho^2).


Joint normality


Normally distributed and independent

If X and Y are normally distributed and statistical independence, independent, this implies they are "jointly normally distributed", i.e., the pair (X,Y) must have multivariate normal distribution. However, a pair of jointly normally distributed variables need not be independent (would only be so if uncorrelated, \rho = 0 ).


Two normally distributed random variables need not be jointly bivariate normal

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 X has a normal distribution with expected value 0 and variance 1, and Y=X if , X, > c and Y=-X if , X, < c, where c > 0. There are similar counterexamples for more than two random variables. In general, they sum to a mixture model.


Correlations and independence

In general, random variables may be uncorrelated but statistically dependent. But if a random vector has a multivariate normal distribution then any two or more of its components that are uncorrelated are statistical independence, independent. This implies that any two or more of its components that are pairwise independence, pairwise independent are independent. But, as pointed out just above, it is ''not'' true that two random variables that are (''separately'', marginally) normally distributed and uncorrelated are independent.


Conditional distributions

If ''N''-dimensional x is partitioned as follows : \mathbf = \begin \mathbf_1 \\ \mathbf_2 \end \text\begin q \times 1 \\ (N-q) \times 1 \end and accordingly ''μ'' and Σ are partitioned as follows : \boldsymbol\mu = \begin \boldsymbol\mu_1 \\ \boldsymbol\mu_2 \end \text\begin q \times 1 \\ (N-q) \times 1 \end : \boldsymbol\Sigma = \begin \boldsymbol\Sigma_ & \boldsymbol\Sigma_ \\ \boldsymbol\Sigma_ & \boldsymbol\Sigma_ \end \text\begin q \times q & q \times (N-q) \\ (N-q) \times q & (N-q) \times (N-q) \end then the distribution of x1 conditional on x2 = a is multivariate normal where : \bar = \boldsymbol\mu_1 + \boldsymbol\Sigma_ \boldsymbol\Sigma_^ \left( \mathbf - \boldsymbol\mu_2 \right) and covariance matrix : \overline = \boldsymbol\Sigma_ - \boldsymbol\Sigma_ \boldsymbol\Sigma_^ \boldsymbol\Sigma_. Here \boldsymbol\Sigma_^ is the
generalized inverse In mathematics, and in particular, algebra, a generalized inverse (or, g-inverse) of an element ''x'' is an element ''y'' that has some properties of an inverse element but not necessarily all of them. The purpose of constructing a generalized in ...
of \boldsymbol\Sigma_. The matrix \overline is the Schur complement of Σ22 in Σ. That is, the equation above is equivalent to inverting the overall covariance matrix, dropping the rows and columns corresponding to the variables being conditioned upon, and inverting back to get the conditional covariance matrix. Note that knowing that alters the variance, though the new variance does not depend on the specific value of a; perhaps more surprisingly, the mean is shifted by \boldsymbol\Sigma_ \boldsymbol\Sigma_^ \left(\mathbf - \boldsymbol\mu_2 \right); compare this with the situation of not knowing the value of a, in which case x1 would have distribution \mathcal_q \left(\boldsymbol\mu_1, \boldsymbol\Sigma_ \right). An interesting fact derived in order to prove this result, is that the random vectors \mathbf_2 and \mathbf_1=\mathbf_1-\boldsymbol\Sigma_\boldsymbol\Sigma_^\mathbf_2 are independent. The matrix Σ12Σ22−1 is known as the matrix of regression analysis, regression coefficients.


Bivariate case

In the bivariate case where x is partitioned into X_1 and X_2, the conditional distribution of X_1 given X_2 is : X_1\mid X_2=a \ \sim\ \mathcal\left(\mu_1+\frac\rho( a - \mu_2),\, (1-\rho^2)\sigma_1^2\right). where \rho is the Pearson product-moment correlation coefficient, correlation coefficient between X_1 and X_2.


Bivariate conditional expectation


=In the general case

= : \begin X_1 \\ X_2 \end \sim \mathcal \left( \begin \mu_1 \\ \mu_2 \end , \begin \sigma^2_1 & \rho \sigma_1 \sigma_2 \\ \rho \sigma_1 \sigma_2 & \sigma^2_2 \end \right) The conditional expectation of X1 given X2 is: : \operatorname(X_1 \mid X_2=x_2) = \mu_1 + \rho \frac(x_2 - \mu_2) Proof: the result is obtained by taking the expectation of the conditional distribution X_1\mid X_2 above.


=In the centered case with unit variances

= : \begin X_1 \\ X_2 \end \sim \mathcal \left( \begin 0 \\ 0 \end , \begin 1 & \rho \\ \rho & 1 \end \right) The conditional expectation of ''X''1 given ''X''2 is : \operatorname(X_1 \mid X_2=x_2)= \rho x_2 and the conditional variance is : \operatorname(X_1 \mid X_2 = x_2) = 1-\rho^2; thus the conditional variance does not depend on ''x''2. The conditional expectation of ''X''1 given that ''X''2 is smaller/bigger than ''z'' is: : \operatorname(X_1 \mid X_2 < z) = -\rho , : \operatorname(X_1 \mid X_2 > z) = \rho , where the final ratio here is called the inverse Mills ratio. Proof: the last two results are obtained using the result \operatorname(X_1 \mid X_2=x_2)= \rho x_2 , so that : \operatorname(X_1 \mid X_2 < z) = \rho E(X_2 \mid X_2 < z) and then using the properties of the expectation of a truncated normal distribution.


Marginal distributions

To obtain the marginal distribution over a subset of multivariate normal random variables, one only needs to drop the irrelevant variables (the variables that one wants to marginalize out) from the mean vector and the covariance matrix. The proof for this follows from the definitions of multivariate normal distributions and linear algebra. ''Example'' Let be multivariate normal random variables with mean vector and covariance matrix Σ (standard parametrization for multivariate normal distributions). Then the joint distribution of is multivariate normal with mean vector and covariance matrix \boldsymbol\Sigma' = \begin \boldsymbol\Sigma_ & \boldsymbol\Sigma_ \\ \boldsymbol\Sigma_ & \boldsymbol\Sigma_ \end .


Affine transformation

If is an affine transformation of \mathbf\ \sim \mathcal(\boldsymbol\mu, \boldsymbol\Sigma), where c is an M \times 1 vector of constants and B is a constant M \times N matrix, then Y has a multivariate normal distribution with expected value and variance BΣBT i.e., \mathbf \sim \mathcal \left(\mathbf + \mathbf \boldsymbol\mu, \mathbf \boldsymbol\Sigma \mathbf^\right). In particular, 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 (''X''1, ''X''2, ''X''4)T, use : \mathbf = \begin 1 & 0 & 0 & 0 & 0 & \ldots & 0 \\ 0 & 1 & 0 & 0 & 0 & \ldots & 0 \\ 0 & 0 & 0 & 1 & 0 & \ldots & 0 \end which extracts the desired elements directly. Another corollary is that the distribution of , where b is a constant vector with the same number of elements as X and the dot indicates the dot product, is univariate Gaussian with Z\sim\mathcal\left(\mathbf\cdot\boldsymbol\mu, \mathbf^\boldsymbol\Sigma \mathbf\right). This result follows by using : \mathbf=\begin b_1 & b_2 & \ldots & b_n \end = \mathbf^. Observe how the positive-definiteness of Σ implies that the variance of the dot product must be positive. An affine transformation of X such as 2X is not the same as the Sum of normally distributed random variables, sum of two independent realisations of X.


Geometric interpretation

The equidensity contours of a non-singular multivariate normal distribution are ellipsoids (i.e. linear transformations of hyperspheres) centered at the mean. Hence the multivariate normal distribution is an example of the class of
elliptical distribution In probability and statistics, an elliptical distribution is any member of a broad family of probability distributions that generalize the multivariate normal distribution. Intuitively, in the simplified two and three dimensional case, the joint ...
s. The directions of the principal axes of the ellipsoids are given by the eigenvectors of the covariance matrix \boldsymbol\Sigma. The squared relative lengths of the principal axes are given by the corresponding eigenvalues. If is an eigendecomposition where the columns of U are unit eigenvectors and Λ is a diagonal matrix of the eigenvalues, then we have ::\mathbf\ \sim \mathcal(\boldsymbol\mu, \boldsymbol\Sigma) \iff \mathbf\ \sim \boldsymbol\mu+\mathbf\boldsymbol\Lambda^\mathcal(0, \mathbf) \iff \mathbf\ \sim \boldsymbol\mu+\mathbf\mathcal(0, \boldsymbol\Lambda). 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 Singular may refer to: * Singular, the grammatical number that denotes a unit quantity, as opposed to the plural and other forms * Singular homology * SINGULAR, an open source Computer Algebra System (CAS) * Singular or sounder, a group of boar, ...
. 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; this is the degenerate distribution, degenerate case. "The radius around the true mean in a bivariate normal random variable, re-written in polar coordinates (radius and angle), follows a Hoyt distribution." In one dimension the probability of finding a sample of the normal distribution in the interval \mu\pm \sigma is approximately 68.27%, but in higher dimensions the probability of finding a sample in the region of the standard deviation ellipse is lower.


Statistical inference


Parameter estimation

The derivation of the maximum likelihood, maximum-likelihood estimator of the covariance matrix of a multivariate normal distribution is straightforward. In short, the probability density function (pdf) of a multivariate normal is :f(\mathbf)= \frac \exp\left(- (\mathbf-\boldsymbol\mu)^ \boldsymbol\Sigma^ (-\boldsymbol\mu)\right) and the ML estimator of the covariance matrix from a sample of ''n'' observations is :\widehat = \sum_^n (_i-\overline)(_i-\overline)^T which is simply the sample covariance matrix. This is a biased estimator whose expectation is :E\left[\widehat\right] = \frac \boldsymbol\Sigma. An unbiased sample covariance is :\widehat = \frac1\sum_^n (\mathbf_i-\overline)(\mathbf_i-\overline)^ = \frac1 \left[X'\left(I - \frac \cdot J\right) X\right] (matrix form; I is the K\times K identity matrix, J is a K \times K matrix of ones; the term in parentheses is thus the K \times K centering matrix) The Fisher information matrix for estimating the parameters of a multivariate normal distribution has a closed form expression. This can be used, for example, to compute the Cramér–Rao bound for parameter estimation in this setting. See Fisher information#Multivariate normal distribution, Fisher information for more details.


Bayesian inference

In Bayesian statistics, the conjugate prior of the mean vector is another multivariate normal distribution, and the conjugate prior of the covariance matrix is an inverse-Wishart distribution \mathcal^ . Suppose then that ''n'' observations have been made :\mathbf = \ \sim \mathcal(\boldsymbol\mu,\boldsymbol\Sigma) and that a conjugate prior has been assigned, where :p(\boldsymbol\mu,\boldsymbol\Sigma)=p(\boldsymbol\mu\mid\boldsymbol\Sigma)\ p(\boldsymbol\Sigma), where :p(\boldsymbol\mu\mid\boldsymbol\Sigma) \sim\mathcal(\boldsymbol\mu_0,m^\boldsymbol\Sigma) , and :p(\boldsymbol\Sigma) \sim \mathcal^(\boldsymbol\Psi,n_0). Then, : \begin p(\boldsymbol\mu\mid\boldsymbol\Sigma,\mathbf) & \sim & \mathcal\left(\frac,\frac\boldsymbol\Sigma\right),\\ p(\boldsymbol\Sigma\mid\mathbf) & \sim & \mathcal^\left(\boldsymbol\Psi+n\mathbf+\frac(\bar-\boldsymbol\mu_0)(\bar-\boldsymbol\mu_0)', n+n_0\right), \end where : \begin \bar & = \frac\sum_^ \mathbf_i ,\\ \mathbf & = \frac\sum_^ (\mathbf_i - \bar)(\mathbf_i - \bar)' . \end


Multivariate normality tests

Multivariate normality tests check a given set of data for similarity to the multivariate
normal distribution In statistics, a normal distribution or Gaussian distribution is a type of continuous probability distribution for a real-valued random variable. The general form of its probability density function is : f(x) = \frac e^ The parameter \mu ...
. The null hypothesis is that the data set is similar to the normal distribution, therefore a sufficiently small p-value, ''p''-value indicates non-normal data. Multivariate normality tests include the Cox–Small test and Smith and Jain's adaptation of the Friedman–Rafsky test created by Larry rafsky, Larry Rafsky and Jerome H. Friedman, Jerome Friedman. Mardia's test is based on multivariate extensions of skewness and kurtosis measures. For a sample of ''k''-dimensional vectors we compute : \begin & \widehat = \sum_^n \left(\mathbf_j - \bar\right)\left(\mathbf_j - \bar\right)^T \\ & A = \sum_^n \sum_^n \left[ (\mathbf_i - \bar)^T\;\widehat^ (\mathbf_j - \bar) \right]^3 \\ & B = \sqrt\left\ \end Under the null hypothesis of multivariate normality, the statistic ''A'' will have approximately a
chi-squared distribution In probability theory and statistics, the chi-squared distribution (also chi-square or \chi^2-distribution) with k degrees of freedom is the distribution of a sum of the squares of k independent standard normal random variables. The chi-squa ...
with degrees of freedom, and ''B'' will be approximately standard normal ''N''(0,1). Mardia's kurtosis statistic is skewed and converges very slowly to the limiting normal distribution. For medium size samples (50 \le n < 400), the parameters of the asymptotic distribution of the kurtosis statistic are modified For small sample tests (n<50) empirical critical values are used. Tables of critical values for both statistics are given by Rencher for ''k'' = 2, 3, 4. Mardia's tests are affine invariant but not consistent. For example, the multivariate skewness test is not consistent against symmetric non-normal alternatives. The BHEP test computes the norm of the difference between the empirical characteristic function (probability theory), characteristic function and the theoretical characteristic function of the normal distribution. Calculation of the norm is performed in the Lp space, L2(''μ'') space of square-integrable functions with respect to the Gaussian weighting function \mu_\beta(\mathbf) = (2\pi\beta^2)^ e^. The test statistic is : \begin T_\beta &= \int_ \left, \sum_^n e^ - e^ \^2 \; \boldsymbol\mu_\beta(\mathbf) \, d\mathbf \\ &= \sum_^n e^ - \frac\sum_^n e^ + \frac \end The limiting distribution of this test statistic is a weighted sum of chi-squared random variables, however in practice it is more convenient to compute the sample quantiles using the Monte-Carlo simulations. A detailed survey of these and other test procedures is available.


Classification into multivariate normal classes


Gaussian Discriminant Analysis

Suppose that observations (which are vectors) are presumed to come from one of several multivariate normal distributions, with known means and covariances. Then any given observation can be assigned to the distribution from which it has the highest probability of arising. This classification procedure is called Gaussian discriminant analysis. The classification performance, i.e. probabilities of the different classification outcomes, and the overall classification error, can be computed by the numerical method of ray-tracing
Matlab code
.


Computational methods


Drawing values from the distribution

A widely used method for drawing (sampling) a random vector x from the ''N''-dimensional multivariate normal distribution with mean vector μ and
covariance matrix In probability theory and statistics, a covariance matrix (also known as auto-covariance matrix, dispersion matrix, variance matrix, or variance–covariance matrix) is a square matrix giving the covariance between each pair of elements of ...
Σ works as follows: # Find any real matrix A such that . When Σ is positive-definite, the Cholesky decomposition is typically used, and the Cholesky decomposition#Avoiding taking square roots, extended form of this decomposition can always be used (as the covariance matrix may be only positive semi-definite) in both cases a suitable matrix A is obtained. An alternative is to use the matrix A = UΛ½ obtained from a Eigendecomposition of a matrix#Real symmetric matrices, spectral decomposition Σ = UΛU−1 of Σ. The former approach is more computationally straightforward but the matrices A change for different orderings of the elements of the random vector, while the latter approach gives matrices that are related by simple re-orderings. In theory both approaches give equally good ways of determining a suitable matrix A, but there are differences in computation time. # Let be a vector whose components are ''N'' statistical independence, independent normal distribution, standard normal variates (which can be generated, for example, by using the Box–Muller transform). # Let x be . This has the desired distribution due to the affine transformation property.


See also

* Chi distribution, the probability density function, pdf of the Norm (mathematics)#p-norm, 2-norm (Euclidean norm or vector length) of a multivariate normally distributed vector (uncorrelated and zero centered). ** Rayleigh distribution, the pdf of the vector length of a bivariate normally distributed vector (uncorrelated and zero centered) ** Rice distribution, the pdf of the vector length of a bivariate normally distributed vector (uncorrelated and non-centered) ** Hoyt distribution, the pdf of the vector length of a bivariate normally distributed vector (correlated and centered) * Complex normal distribution, an application of bivariate normal distribution * Gaussian copula, Copula, for the definition of the Gaussian or normal copula model. * Multivariate t-distribution, which is another widely used spherically symmetric multivariate distribution. * Multivariate stable distribution extension of the multivariate normal distribution, when the index (exponent in the characteristic function) is between zero and two. * Mahalanobis distance * Wishart distribution * Matrix normal distribution


References


Literature

* * {{DEFAULTSORT:Multivariate Normal Distribution Continuous distributions Multivariate continuous distributions Normal distribution Exponential family distributions Stable distributions