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 involves 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=(g1,…,gn)∼𝒩p(0,V).

It means gi=(gi,1,…,gi,p)T ∼iid 𝒩p(0,V) ∀i∈{1,…,n}

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.

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.[8]

Spectral density

The joint-eigenvalue density for the eigenvalues λ1,…,λp≥0 of a random matrix 𝐗∼Wp(𝐈,n) is,[9][10]

cn,pe−12∑iλi∏λi(n−p−1)/2∏i<j|λi−λj|

where cn,p is a constant. The spectral density can be marginalized to yield the density of a single eigenvalue, by evaluating a Selberg integral.

The spectral density can be integrated to give the probability that all eigenvalues of a Wishart random matrix lie within an interval.[11]

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.[12]Template:Rp[13] The use of Normal-Wishart conjugate priors (for mean and precision) is particularly common for vector autoregression models.[14]

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),[15]

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:[12]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⁡|𝐕|+np2ln⁡2+ln⁡Γp(n2)−n−p−12E⁡[ln⁡|𝐗|]+np2=n2ln⁡|𝐕|+np2ln⁡2+ln⁡Γp(n2)−n−p−12(ψp(n2)+pln⁡2+ln⁡|𝐕|)+np2=n2ln⁡|𝐕|+np2ln⁡2+ln⁡Γp(n2)−n−p−12ψp(n2)−n−p−12(pln⁡2+ln⁡|𝐕|)+np2=p+12ln⁡|𝐕|+12p(p+1)ln⁡2+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[−log⁡p1]=Ep0[−log⁡|𝐗|(n1−p1−1)/2e−tr⁡(𝐕1−1𝐗)/22n1p1/2|𝐕1|n1/2Γp1(n12)]=n1p12log⁡2+n12log⁡|𝐕1|+log⁡Γp1(n12)−n1−p1−12Ep0[log⁡|𝐗|]+12Ep0[tr⁡(𝐕1−1𝐗)]=n1p12log⁡2+n12log⁡|𝐕1|+log⁡Γp1(n12)−n1−p1−12(ψp0(n02)+p0log⁡2+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)2log⁡2

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).[10] 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.[16]

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 [17]

𝐂𝐗𝐂T∼𝒲q(𝐂𝐕𝐂T,m).

Corollary 1

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

σ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.[18]

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.[19] 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:

𝐗=𝐋𝐀𝐀T𝐋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.[20] This provides a useful method for obtaining random samples from a Wishart distribution.[21]

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.[22] 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).[23]

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

The range of the shape parameter

It can be shown [25] 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 Simon Gindikin, who introduced it[26] 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.

Wishart–Laguerre ensembles and β-extensions

In random matrix theory, the Wishart family is often studied through its Laguerre ensembles. For the real case (orthogonal symmetry, Template:Math=1), the joint density of the eigenvalues λ1,…,λp≥0 of 𝐗∼Wp(𝐈,n) is

cn,pexp⁡(−12∑i=1pλi)∏i=1pλin−p−12∏1≤i<j≤p|λi−λj|,

which is the Laguerre orthogonal ensemble (LOE). The complex and quaternion analogues are the Laguerre unitary (LUE, β=2) and Laguerre symplectic (LSE, β=4) ensembles, respectively.[27]

β-Laguerre ensemble (general β>0)

A further generalization, the β-Laguerre ensemble, allows the Dyson index β>0 to vary continuously. Its joint eigenvalue density has the Coulomb gas form

p(λ1,…,λp)∝(∏i=1pλiαe−β2λi)(∏i<j|λi−λj|β),α>−1,

which reduces to LOE/LUE/LSE for β=1,2,4. For the classical Gaussian Wishart case (scale 𝐈), one has the identification

α=β2(n−p+1)−1.

A concrete probabilistic construction for any β>0 is provided by the Dumitriu–Edelman bidiagonal model. One samples a random bidiagonal matrix 𝐁 with independent chi variables and sets 𝐋=𝐁𝐁T; the eigenvalues of 𝐋 follow the β-Laguerre law with parameter α.[28][29]

Sampling
  • Classical β=1,2,4. Bartlett's decomposition gives 𝐗=𝐋𝐀𝐀T𝐋T with 𝐀 lower-triangular having chi/normal entries, yielding LOE/LUE/LSE exactly.[30]
  • General β>0. In the Dumitriu–Edelman model, for matrix size p and parameter α>−1, one samples independently
Bii∼1βχβ(α+p−i+1),Bi,i−1∼1βχβ(p−i+1)(i=2,…,p),

and sets 𝐋=𝐁𝐁T. Then the eigenvalues of 𝐋 have the β-Laguerre joint density above.[28]

Rectangular data matrices

If one wishes to realize these spectra as the singular values of a rectangular M×N matrix (with M≥N=p), draw independent Haar-distributed 𝐔∈O(M) (or U(M)) and 𝐕∈O(N), and set

X=U[diag⁡(λ1,…,λp)0]V∗,

so that X∗X has eigenvalues {λi}. For i.i.d. Gaussian entries (true Wishart), β is fixed by the field (real, complex, quaternion) and α reduces to β2(n−p+1)−1.[29][31]

Hard-edge behavior and universality

At the “hard edge” (near λ=0), β-Laguerre ensembles exhibit Bessel-kernel correlations and level repulsion of order β. In particular, with p→∞ and fixed α, the distribution of the smallest eigenvalue converges to a universal hard-edge (Bessel) law that depends only on α and β.[32][29]

Macroscopic limit (Marchenko–Pastur law)

Under proportional growth p/n→γ∈(0,∞), the empirical spectral distribution of n−1𝐆𝐆T (with i.i.d. entries of variance σ2) converges almost surely to the Marchenko–Pastur law, supported on σ2(1±γ)2. When γ=1, the density diverges as x−1/2 at the origin (a hard-edge singularity).[33]

Relationships to other distributions

See also

Template:Colbegin

Template:Colend

References

Template:Reflist

Template:ProbDistributions