ArticleslgStudy

science

Wishart distribution

Wishart distribution is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Wishart distribution rather than just read about it. In short: 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.

Wishart distribution — main illustration
Wishart distribution — illustration

Key takeaways

  • Wishart distribution belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Wishart distribution to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Wishart distribution from memory before moving on to harder problems.

Reference excerpt

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⁡|𝐕|+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

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Wishart distribution

Start with the simplest possible case. Write down what Wishart distribution claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Wishart distribution before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Wishart distribution ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Wishart distribution

In research
Wishart distribution appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Wishart distribution in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Wishart distribution is common in secondary-school and first-year university syllabi. It links to neighbouring topics Conjugate prior distributions, Continuous distributions, Covariance and correlation, so understanding it makes those chapters shorter.
In everyday life
Look for Wishart distribution outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Wishart distribution” →

How to study Wishart distribution in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Wishart distribution means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Wishart distribution out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Wishart distribution in simple terms?

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.

Why does Wishart distribution matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Wishart distribution?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Wishart distribution.

Tags

  • Conjugate prior distributions
  • Continuous distributions
  • Covariance and correlation
  • Exponential family distributions
  • Multivariate continuous distributions
  • Random matrices

Keep exploring