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. 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). 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.
Definition Suppose G is a p × n matrix, each column of which is independently drawn from a p-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 p × p random matrix
S=GGT=∑i=1ngigiT known as the scatter matrix. One indicates that S has that probability distribution by writing
S∼Wp(V,n). The positive integer n is the number of degrees of freedom. Sometimes this is written W(V, p, n). For n ≥ p the matrix S is invertible with probability 1 if V is invertible. If p = V = 1 then this distribution is a chi-squared distribution with n 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 matrices and in multidimensional Bayesian analysis. It is also encountered in wireless communications, while analyzing the performance of Rayleigh fading MIMO wireless channels.
Probability density function
The Wishart distribution can be characterized by its probability density function as follows: Let X be a p × p symmetric matrix of random variables that is positive semi-definite. Let V be a (fixed) symmetric positive definite matrix of size p × p. Then, if n ≥ p, X has a Wishart distribution with n 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 Γp 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 X (such p2-dimensional 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 (, 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 n > p − 1. If n ≤ p − 1, 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 p × p matrices.
Spectral density The joint-eigenvalue density for the eigenvalues λ1,…,λp≥0 of a random matrix 𝐗∼Wp(𝐈,n) is,
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.
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 Ω = Σ−1, where Σ is the covariance matrix. The use of Normal-Wishart conjugate priors (for mean and precision) is particularly common for vector autoregression models.
Choice of parameters The least informative, proper Wishart prior is obtained by setting n = p. 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),
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:
H[𝐗]=−ln(B(𝐕,n))−n−p−12E[ln|𝐗|]+np2 where B(V, n) 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
… excerpt ends here. Continue reading the full article.
