Matrix normal distribution explained

In statistics, the matrix normal distribution or matrix Gaussian distribution is a probability distribution that is a generalization of the multivariate normal distribution to matrix-valued random variables.

Definition

The probability density function for the random matrix X (n × p) that follows the matrix normal distribution

l{MN}n,p(M,U,V)

has the form:

p(X\midM,U,V)=

\exp\left(
-1
2
tr\left[V-1(X-M)TU-1(X-M)\right]\right)
(2\pi)np/2|V|n/2|U|p/2

where

tr

denotes trace and M is n × p, U is n × n and V is p × p, and the density is understood as the probability density function with respect to the standard Lebesgue measure in

Rn x

, i.e.: the measure corresponding to integration with respect to

dx11dx21...dxn1dx12...dxn2...dxnp

.

The matrix normal is related to the multivariate normal distribution in the following way:

X\siml{MN}n x (M,U,V),

if and only if

vec(X)\siml{N}np(vec(M),VU)

where

denotes the Kronecker product and

vec(M)

denotes the vectorization of

M

.

Proof

The equivalence between the above matrix normal and multivariate normal density functions can be shown using several properties of the trace and Kronecker product, as follows. We start with the argument of the exponent of the matrix normal PDF:

\begin{align} &    -12tr\left[
V

-1(X-M)TU-1(X-M)\right]\\ &=-

12vec\left(X
-

M\right)T vec\left(U-1(X-M)V-1\right)\\ &=-

12vec\left(X
-

M\right)T \left(V-1U-1\right)vec\left(X-M\right)\\ &=-

12\left[vec(X)
-

vec(M)\right]T \left(VU\right)-1\left[vec(X)-vec(M)\right]\end{align}

which is the argument of the exponent of the multivariate normal PDF with respect to Lebesgue measure in

Rn

. The proof is completed by using the determinant property:

|VU|=|V|n|U|p.

Properties

If

X\siml{MN}n x (M,U,V)

, then we have the following properties:[1] [2]

Expected values

The mean, or expected value is:

E[X]=M

and we have the following second-order expectations:

E[(X-M)(X-M)T] =U\operatorname{tr}(V)

E[(X-M)T(X-M)] =V\operatorname{tr}(U)

where

\operatorname{tr}

denotes trace.

More generally, for appropriately dimensioned matrices A,B,C:

\begin{align} E[XAXT] &=U\operatorname{tr}(ATV)+MAMT\\ E[XTBX] &=V\operatorname{tr}(UBT)+MTBM\\ E[XCX] &=VCTU+MCM \end{align}

Transformation

Transpose transform:

XT\siml{MN}p x (MT,V,U)

Linear transform: let D (r-by-n), be of full rank r ≤ n and C (p-by-s), be of full rank s ≤ p, then:

DXC\siml{MN}r x (DMC,DUDT,CTVC)

Example

Let's imagine a sample of n independent p-dimensional random variables identically distributed according to a multivariate normal distribution:

Yi\siml{N}p({\boldsymbol\mu},{\boldsymbol\Sigma})withi\in\{1,\ldots,n\}

.When defining the n × p matrix

X

for which the ith row is

Yi

, we obtain:

X\siml{MN}n(M,U,V)

where each row of

M

is equal to

{\boldsymbol\mu}

, that is

M=1n x {\boldsymbol\mu}T

,

U

is the n × n identity matrix, that is the rows are independent, and

V={\boldsymbol\Sigma}

.

Maximum likelihood parameter estimation

Given k matrices, each of size n × p, denoted

X1,X2,\ldots,Xk

, which we assume have been sampled i.i.d. from a matrix normal distribution, the maximum likelihood estimate of the parameters can be obtained by maximizing:
k
\prod
i=1

l{MN}n x (Xi\midM,U,V).

The solution for the mean has a closed form, namely

M=

1
k
kX
\sum
i
but the covariance parameters do not. However, these parameters can be iteratively maximized by zero-ing their gradients at:

U=

1
kp
-1
\sum
i-M)V
T
(X
i-M)
and

V=

1
kn
TU
\sum
i-M)

-1(Xi-M),

See for example [3] and references therein. The covariance parameters are non-identifiable in the sense that for any scale factor, s>0, we have:

l{MN}n x (X\midM,U,V)=l{MN}n x (X\midM,sU,\tfrac{1}{s}V).

Drawing values from the distribution

Sampling from the matrix normal distribution is a special case of the sampling procedure for the multivariate normal distribution. Let

X

be an n by p matrix of np independent samples from the standard normal distribution, so that

X\siml{MN}n x (0,I,I).

Then let

Y=M+AXB,

so that

Y\siml{MN}n x (M,AAT,BTB),

where A and B can be chosen by Cholesky decomposition or a similar matrix square root operation.

Relation to other distributions

Dawid (1981) provides a discussion of the relation of the matrix-valued normal distribution to other distributions, including the Wishart distribution, inverse-Wishart distribution and matrix t-distribution, but uses different notation from that employed here.

See also

References

Notes and References

  1. Book: A K Gupta. D K Nagar. Matrix Variate Distributions. 23 May 2014. 22 October 1999. CRC Press. 978-1-58488-046-2. Chapter 2: MATRIX VARIATE NORMAL DISTRIBUTION.
  2. Ding. Shanshan. R. Dennis Cook. DIMENSION FOLDING PCA AND PFC FOR MATRIX- VALUED PREDICTORS. Statistica Sinica. 2014. 24. 1. 463–492.
  3. Glanz. Hunter . Carvalho. Luis . An Expectation-Maximization Algorithm for the Matrix Normal Distribution . 2013 . stat.ME . 1309.6609.