Wishart distribution

From testwiki
Jump to navigation Jump to search

Template:Short description Template:Probability distribution

In statistics, the Wishart distribution is a generalization of the gamma distribution to multiple dimensions. It is named in honor of John Wishart, who first formulated the distribution in 1928.[1] Other names include Wishart ensemble (in random matrix theory, probability distributions over matrices are usually called "ensembles"), or Wishartโ€“Laguerre ensemble (since its eigenvalue distribution involve Laguerre polynomials), or LOE, LUE, LSE (in analogy with GOE, GUE, GSE).[2]

It is a family of probability distributions defined over symmetric, positive-definite random matrices (i.e. matrix-valued random variables). These distributions are of great importance in the estimation of covariance matrices in multivariate statistics. In Bayesian statistics, the Wishart distribution is the conjugate prior of the inverse covariance-matrix of a multivariate-normal random-vector.[3]

Definition

Suppose Template:Mvar is a Template:Math matrix, each column of which is independently drawn from a [[multivariate normal distribution|Template:Mvar-variate normal distribution]] with zero mean:

G=(gi1,,gin)โˆผ๐’ฉp(0,V).

Then the Wishart distribution is the probability distribution of the Template:Math random matrix [4]

S=GGT=โˆ‘i=1ngigiT

known as the scatter matrix. One indicates that Template:Mvar has that probability distribution by writing

SโˆผWp(V,n).

The positive integer Template:Mvar is the number of degrees of freedom. Sometimes this is written Template:Math. For Template:Math the matrix Template:Mvar is invertible with probability Template:Math if Template:Mvar is invertible.

If Template:Math then this distribution is a chi-squared distribution with Template:Mvar degrees of freedom.

Occurrence

The Wishart distribution arises as the distribution of the sample covariance matrix for a sample from a multivariate normal distribution. It occurs frequently in likelihood-ratio tests in multivariate statistical analysis. It also arises in the spectral theory of random matricesTemplate:Citation needed and in multidimensional Bayesian analysis.[5] It is also encountered in wireless communications, while analyzing the performance of Rayleigh fading MIMO wireless channels .[6]

Probability density function

Spectral density of Wishart-Laguerre ensemble with dimensions (8, 15). A reconstruction of Figure 1 of [7].

The Wishart distribution can be characterized by its probability density function as follows:

Let Template:Math be a Template:Math symmetric matrix of random variables that is positive semi-definite. Let Template:Math be a (fixed) symmetric positive definite matrix of size Template:Math.

Then, if Template:Math, Template:Math has a Wishart distribution with Template:Mvar degrees of freedom if it has the probability density function

f๐—(๐—)=12np/2|๐•|n/2ฮ“p(n2)|๐—|(nโˆ’pโˆ’1)/2eโˆ’12tr(๐•โˆ’1๐—)

where |๐—| is the determinant of ๐— and Template:Math is the multivariate gamma function defined as

ฮ“p(n2)=ฯ€p(pโˆ’1)/4โˆj=1pฮ“(n2โˆ’jโˆ’12).

The density above is not the joint density of all the p2 elements of the random matrix Template:Math (such Template:Nowrap density does not exist because of the symmetry constrains Xij=Xji), it is rather the joint density of p(p+1)/2 elements Xij for iโ‰คj (,[1] page 38). Also, the density formula above applies only to positive definite matrices ๐ฑ; for other matrices the density is equal to zero.

Spectral density

The joint-eigenvalue density for the eigenvalues ฮป1,,ฮปpโ‰ฅ0 of a random matrix ๐—โˆผWp(๐ˆ,n) is,[8][9]

cn,peโˆ’12โˆ‘iฮปiโˆฮปi(nโˆ’pโˆ’1)/2โˆi<j|ฮปiโˆ’ฮปj|

where cn,p is a constant.

In fact the above definition can be extended to any real Template:Math. If Template:Math, then the Wishart no longer has a density—instead it represents a singular distribution that takes values in a lower-dimension subspace of the space of Template:Math matrices.[10]

Use in Bayesian statistics

In Bayesian statistics, in the context of the multivariate normal distribution, the Wishart distribution is the conjugate prior to the precision matrix Template:Math, where Template:Math is the covariance matrix.[11]Template:Rp[12]

Choice of parameters

The least informative, proper Wishart prior is obtained by setting Template:Math.Template:Citation needed

A common choice for V leverages the fact that the mean of X ~Wp(V, n) is nV. Then V is chosen so that nV equals an initial guess for X. For instance, when estimating a precision matrix ฮฃโˆ’1 ~ Wp(V, n) a reasonable choice for V would be nโˆ’1ฮฃ0โˆ’1, where ฮฃ0 is some prior estimate for the covariance matrix ฮฃ.

Properties

Log-expectation

The following formula plays a role in variational Bayes derivations for Bayes networks involving the Wishart distribution. From equation (2.63),[13]

E[ln|๐—|]=ฯˆp(n2)+pln(2)+ln|๐•|

where ฯˆp is the multivariate digamma function (the derivative of the log of the multivariate gamma function).

Log-variance

The following variance computation could be of help in Bayesian statistics:

Var[ln|๐—|]=โˆ‘i=1pฯˆ1(n+1โˆ’i2)

where ฯˆ1 is the trigamma function. This comes up when computing the Fisher information of the Wishart random variable.

Entropy

The information entropy of the distribution has the following formula:[11]Template:Rp

H[๐—]=โˆ’ln(B(๐•,n))โˆ’nโˆ’pโˆ’12E[ln|๐—|]+np2

where Template:Math is the normalizing constant of the distribution:

B(๐•,n)=1|๐•|n/22np/2ฮ“p(n2).

This can be expanded as follows:

H[๐—]=n2ln|๐•|+np2ln2+lnฮ“p(n2)โˆ’nโˆ’pโˆ’12E[ln|๐—|]+np2=n2ln|๐•|+np2ln2+lnฮ“p(n2)โˆ’nโˆ’pโˆ’12(ฯˆp(n2)+pln2+ln|๐•|)+np2=n2ln|๐•|+np2ln2+lnฮ“p(n2)โˆ’nโˆ’pโˆ’12ฯˆp(n2)โˆ’nโˆ’pโˆ’12(pln2+ln|๐•|)+np2=p+12ln|๐•|+12p(p+1)ln2+lnฮ“p(n2)โˆ’nโˆ’pโˆ’12ฯˆp(n2)+np2

Cross-entropy

The cross-entropy of two Wishart distributions p0 with parameters n0,V0 and p1 with parameters n1,V1 is

H(p0,p1)=Ep0[โˆ’logp1]=Ep0[โˆ’log|๐—|(n1โˆ’p1โˆ’1)/2eโˆ’tr(๐•1โˆ’1๐—)/22n1p1/2|๐•1|n1/2ฮ“p1(n12)]=n1p12log2+n12log|๐•1|+logฮ“p1(n12)โˆ’n1โˆ’p1โˆ’12Ep0[log|๐—|]+12Ep0[tr(๐•1โˆ’1๐—)]=n1p12log2+n12log|๐•1|+logฮ“p1(n12)โˆ’n1โˆ’p1โˆ’12(ฯˆp0(n02)+p0log2+log|๐•0|)+12tr(๐•1โˆ’1n0๐•0)=โˆ’n12log|๐•1โˆ’1๐•0|+p1+12log|๐•0|+n02tr(๐•1โˆ’1๐•0)+logฮ“p1(n12)โˆ’n1โˆ’p1โˆ’12ฯˆp0(n02)+n1(p1โˆ’p0)+p0(p1+1)2log2

Note that when p0=p1 and n0=n1 we recover the entropy.

KL-divergence

The Kullbackโ€“Leibler divergence of p1 from p0 is

DKL(p0โ€–p1)=H(p0,p1)โˆ’H(p0)=โˆ’n12log|๐•1โˆ’1๐•0|+n02(tr(๐•1โˆ’1๐•0)โˆ’p)+logฮ“p(n12)ฮ“p(n02)+n0โˆ’n12ฯˆp(n02)

Characteristic function

The characteristic function of the Wishart distribution is

ฮ˜โ†ฆE[exp(itr(๐—๐œฃ))]=|1โˆ’2i๐œฃ๐•|โˆ’n/2

where Template:Math denotes expectation. (Here Template:Math is any matrix with the same dimensions as Template:Math, Template:Math indicates the identity matrix, and Template:Mvar is a square root of Template:Math).[9] Properly interpreting this formula requires a little care, because noninteger complex powers are multivalued; when Template:Mvar is noninteger, the correct branch must be determined via analytic continuation.[14]

Theorem

If a Template:Math random matrix Template:Math has a Wishart distribution with Template:Mvar degrees of freedom and variance matrix Template:Math โ€” write ๐—โˆผ๐’ฒp(๐•,m) โ€” and Template:Math is a Template:Math matrix of rank Template:Mvar, then [15]

๐‚๐—๐‚Tโˆผ๐’ฒq(๐‚๐•๐‚T,m).

Corollary 1

If Template:Math is a nonzero Template:Math constant vector, then:[15]

ฯƒzโˆ’2๐ณT๐—๐ณโˆผฯ‡m2.

In this case, ฯ‡m2 is the chi-squared distribution and ฯƒz2=๐ณT๐•๐ณ (note that ฯƒz2 is a constant; it is positive because Template:Math is positive definite).

Corollary 2

Consider the case where Template:Math (that is, the Template:Mvar-th element is one and all others zero). Then corollary 1 above shows that

ฯƒjjโˆ’1wjjโˆผฯ‡m2

gives the marginal distribution of each of the elements on the matrix's diagonal.

George Seber points out that the Wishart distribution is not called the โ€œmultivariate chi-squared distributionโ€ because the marginal distribution of the off-diagonal elements is not chi-squared. Seber prefers to reserve the term multivariate for the case when all univariate marginals belong to the same family.[16]

Estimator of the multivariate normal distribution

The Wishart distribution is the sampling distribution of the maximum-likelihood estimator (MLE) of the covariance matrix of a multivariate normal distribution.[17] A derivation of the MLE uses the spectral theorem.

Bartlett decomposition

The Bartlett decomposition of a matrix Template:Math from a Template:Mvar-variate Wishart distribution with scale matrix Template:Math and Template:Mvar degrees of freedom is the factorization:

๐—=<mi fromhbox="1">๐‹</mi><mi fromhbox="1">๐€</mi><mi fromhbox="1">๐€</mi>T<mi fromhbox="1">๐‹</mi>T,

where Template:Math is the Cholesky factor of Template:Math, and:

๐€=(c100โ‹ฏ0n21c20โ‹ฏ0n31n32c3โ‹ฏ0โ‹ฎโ‹ฎโ‹ฎโ‹ฑโ‹ฎnp1np2np3โ‹ฏcp)

where ci2โˆผฯ‡nโˆ’i+12 and Template:Math independently.[18] This provides a useful method for obtaining random samples from a Wishart distribution.[19]

Marginal distribution of matrix elements

Let Template:Math be a Template:Math variance matrix characterized by correlation coefficient Template:Math and Template:Math its lower Cholesky factor:

๐•=(ฯƒ12ฯฯƒ1ฯƒ2ฯฯƒ1ฯƒ2ฯƒ22),๐‹=(ฯƒ10ฯฯƒ21โˆ’ฯ2ฯƒ2)

Multiplying through the Bartlett decomposition above, we find that a random sample from the Template:Math Wishart distribution is

๐—=(ฯƒ12c12ฯƒ1ฯƒ2(ฯc12+1โˆ’ฯ2c1n21)ฯƒ1ฯƒ2(ฯc12+1โˆ’ฯ2c1n21)ฯƒ22((1โˆ’ฯ2)c22+(1โˆ’ฯ2n21+ฯc1)2))

The diagonal elements, most evidently in the first element, follow the Template:Math distribution with Template:Mvar degrees of freedom (scaled by Template:Math) as expected. The off-diagonal element is less familiar but can be identified as a normal variance-mean mixture where the mixing density is a Template:Math distribution. The corresponding marginal probability density for the off-diagonal element is therefore the variance-gamma distribution

f(x12)=|x12|nโˆ’12ฮ“(n2)2nโˆ’1ฯ€(1โˆ’ฯ2)(ฯƒ1ฯƒ2)n+1โ‹…Knโˆ’12(|x12|ฯƒ1ฯƒ2(1โˆ’ฯ2))exp(ฯx12ฯƒ1ฯƒ2(1โˆ’ฯ2))

where Template:Math is the modified Bessel function of the second kind.[20] Similar results may be found for higher dimensions. In general, if X follows a Wishart distribution with parameters, ฮฃ,n, then for iโ‰ j, the off-diagonal elements

XijโˆผVG(n,ฮฃij,(ฮฃiiฮฃjjโˆ’ฮฃij2)1/2,0). [21]

It is also possible to write down the moment-generating function even in the noncentral case (essentially the nth power of Craig (1936)[22] equation 10) although the probability density becomes an infinite sum of Bessel functions.

The range of the shape parameter

It can be shown [23] that the Wishart distribution can be defined if and only if the shape parameter Template:Math belongs to the set

ฮ›p:={0,โ€ฆ,pโˆ’1}โˆช(pโˆ’1,โˆž).

This set is named after Gindikin, who introduced it[24] in the 1970s in the context of gamma distributions on homogeneous cones. However, for the new parameters in the discrete spectrum of the Gindikin ensemble, namely,

ฮ›pโˆ—:={0,โ€ฆ,pโˆ’1},

the corresponding Wishart distribution has no Lebesgue density.

Relationships to other distributions

See also

Template:Colbegin

Template:Colend

References

Template:Reflist

Template:ProbDistributions