Inverse-Wishart distribution

From testwiki
Jump to navigation Jump to search

Template:Short description Template:Probability distribution

In statistics, the inverse Wishart distribution, also called the inverted Wishart distribution, is a probability distribution defined on real-valued positive-definite matrices. In Bayesian statistics it is used as the conjugate prior for the covariance matrix of a multivariate normal distribution.

We say 𝐗 follows an inverse Wishart distribution, denoted as π—βˆΌπ’²βˆ’1(𝚿,Ξ½), if its inverse π—βˆ’1 has a Wishart distribution 𝒲(πšΏβˆ’1,Ξ½). Important identities have been derived for the inverse-Wishart distribution.[1]

Density

The probability density function of the inverse Wishart is:[2]

f𝐗(𝐗;𝚿,Ξ½)=|𝚿|Ξ½/22Ξ½p/2Ξ“p(Ξ½2)|𝐗|βˆ’(Ξ½+p+1)/2eβˆ’12tr⁑(πšΏπ—βˆ’1)

where 𝐗 and 𝚿 are pΓ—p positive definite matrices, |β‹…| is the determinant, and Ξ“p(β‹…) is the multivariate gamma function.

Theorems

Distribution of the inverse of a Wishart-distributed matrix

If π—βˆΌπ’²(𝚺,Ξ½) and 𝚺 is of size pΓ—p, then 𝐀=π—βˆ’1 has an inverse Wishart distribution π€βˆΌπ’²βˆ’1(πšΊβˆ’1,Ξ½) .[3]

Marginal and conditional distributions from an inverse Wishart-distributed matrix

Suppose π€βˆΌπ’²βˆ’1(𝚿,Ξ½) has an inverse Wishart distribution. Partition the matrices 𝐀 and 𝚿 conformably with each other

𝐀=[𝐀11𝐀12𝐀21𝐀22],𝚿=[𝚿11𝚿12𝚿21𝚿22]

where 𝐀ij and 𝚿ij are piΓ—pj matrices, then we have

  1. 𝐀11 is independent of 𝐀11βˆ’1𝐀12 and 𝐀22β‹…1, where 𝐀22β‹…1=𝐀22βˆ’π€21𝐀11βˆ’1𝐀12 is the Schur complement of 𝐀11 in 𝐀;
  2. 𝐀11βˆΌπ’²βˆ’1(𝚿11,Ξ½βˆ’p2);
  3. 𝐀11βˆ’1𝐀12βˆ£π€22β‹…1∼MNp1Γ—p2(𝚿11βˆ’1𝚿12,𝐀22β‹…1βŠ—πšΏ11βˆ’1), where MNpΓ—q(β‹…,β‹…) is a matrix normal distribution;
  4. 𝐀22β‹…1βˆΌπ’²βˆ’1(𝚿22β‹…1,Ξ½), where 𝚿22β‹…1=𝚿22βˆ’πšΏ21𝚿11βˆ’1𝚿12;

Conjugate distribution

Suppose we wish to make inference about a covariance matrix 𝚺 whose prior p(𝚺) has a π’²βˆ’1(𝚿,Ξ½) distribution. If the observations 𝐗=[𝐱1,…,𝐱n] are independent p-variate Gaussian variables drawn from a N(𝟎,𝚺) distribution, then the conditional distribution p(πšΊβˆ£π—) has a π’²βˆ’1(𝐀+𝚿,n+Ξ½) distribution, where 𝐀=𝐗𝐗T.

Because the prior and posterior distributions are the same family, we say the inverse Wishart distribution is conjugate to the multivariate Gaussian.

Due to its conjugacy to the multivariate Gaussian, it is possible to marginalize out (integrate out) the Gaussian's parameter 𝚺, using the formula p(x)=p(x|Σ)p(Σ)p(Σ|x) and the linear algebra identity vTΩv=tr(ΩvvT):

fπ—βˆ£Ξ¨,Ξ½(𝐱)=∫fπ—βˆ£πšΊ=Οƒ(𝐱)f𝚺∣𝚿,Ξ½(Οƒ)dΟƒ=|𝚿|Ξ½/2Ξ“p(Ξ½+n2)Ο€np/2|𝚿+𝐀|(Ξ½+n)/2Ξ“p(Ξ½2)

(this is useful because the variance matrix 𝚺 is not known in practice, but because 𝚿 is known a priori, and 𝐀 can be obtained from the data, the right hand side can be evaluated directly). The inverse-Wishart distribution as a prior can be constructed via existing transferred prior knowledge.[4]

Moments

The following is based on Press, S. J. (1982) "Applied Multivariate Analysis", 2nd ed. (Dover Publications, New York), after reparameterizing the degree of freedom to be consistent with the p.d.f. definition above.

Let WβˆΌπ’²(πšΏβˆ’1,Ξ½) with Ξ½β‰₯p and X≐Wβˆ’1, so that XβˆΌπ’²βˆ’1(𝚿,Ξ½).

The mean, for Ξ½β‰₯p+2:[3]Template:Rp

E⁑(𝐗)=πšΏΞ½βˆ’pβˆ’1.

The variance of each element of 𝐗:

Var⁑(xij)=(Ξ½βˆ’p+1)ψij2+(Ξ½βˆ’pβˆ’1)ψiiψjj(Ξ½βˆ’p)(Ξ½βˆ’pβˆ’1)2(Ξ½βˆ’pβˆ’3)

The variance of the diagonal uses the same formula as above with i=j, which simplifies to:

Var⁑(xii)=2ψii2(Ξ½βˆ’pβˆ’1)2(Ξ½βˆ’pβˆ’3).

The covariance of elements of 𝐗 are given by:

Cov⁑(xij,xkβ„“)=2ψijψkβ„“+(Ξ½βˆ’pβˆ’1)(ψikψjβ„“+ψiβ„“Οˆkj)(Ξ½βˆ’p)(Ξ½βˆ’pβˆ’1)2(Ξ½βˆ’pβˆ’3)

The same results are expressed in Kronecker product form by von Rosen[5] as follows:

𝐄(Wβˆ’1βŠ—Wβˆ’1)=c1Ξ¨βŠ—Ξ¨+c2Vec(Ξ¨)Vec(Ξ¨)T+c2KppΞ¨βŠ—Ξ¨π‚π¨π―βŠ—(Wβˆ’1,Wβˆ’1)=(c1βˆ’c3)Ξ¨βŠ—Ξ¨+c2Vec(Ξ¨)Vec(Ξ¨)T+c2KppΞ¨βŠ—Ξ¨

where

c2=[(Ξ½βˆ’p)(Ξ½βˆ’pβˆ’1)(Ξ½βˆ’pβˆ’3)]βˆ’1c1=(Ξ½βˆ’pβˆ’2)c2c3=(Ξ½βˆ’pβˆ’1)βˆ’2,
KppΒ is aΒ p2Γ—p2 commutation matrix
π‚π¨π―βŠ—(Wβˆ’1,Wβˆ’1)=𝐄(Wβˆ’1βŠ—Wβˆ’1)βˆ’π„(Wβˆ’1)βŠ—π„(Wβˆ’1).

There appears to be a typo in the paper whereby the coefficient of KppΞ¨βŠ—Ξ¨ is given as c1 rather than c2, and that the expression for the mean square inverse Wishart, corollary 3.1, should read

𝐄[Wβˆ’1Wβˆ’1]=(c1+c2)Ξ£βˆ’1Ξ£βˆ’1+c2Ξ£βˆ’1𝐭𝐫(Ξ£βˆ’1).

To show how the interacting terms become sparse when the covariance is diagonal, let Ξ¨=𝐈3Γ—3 and introduce some arbitrary parameters u,v,w:

𝐄(Wβˆ’1βŠ—Wβˆ’1)=uΞ¨βŠ—Ξ¨+vvec(Ξ¨)vec(Ξ¨)T+wKppΞ¨βŠ—Ξ¨.

where vec denotes the matrix vectorization operator. Then the second moment matrix becomes

𝐄(Wβˆ’1βŠ—Wβˆ’1)=[u+v+wβ‹…β‹…β‹…vβ‹…β‹…β‹…vβ‹…uβ‹…wβ‹…β‹…β‹…β‹…β‹…β‹…β‹…uβ‹…β‹…β‹…wβ‹…β‹…β‹…wβ‹…uβ‹…β‹…β‹…β‹…β‹…vβ‹…β‹…β‹…u+v+wβ‹…β‹…β‹…vβ‹…β‹…β‹…β‹…β‹…uβ‹…wβ‹…β‹…β‹…wβ‹…β‹…β‹…uβ‹…β‹…β‹…β‹…β‹…β‹…β‹…wβ‹…uβ‹…vβ‹…β‹…β‹…vβ‹…β‹…β‹…u+v+w]

which is non-zero only when involving the correlations of diagonal elements of Wβˆ’1, all other elements are mutually uncorrelated, though not necessarily statistically independent. The variances of the Wishart product are also obtained by Cook et al.[6] in the singular case and, by extension, to the full rank case.

Muirhead[7] shows in Theorem 3.2.8 that if ApΓ—p is distributed as 𝒲p(Ξ½,Ξ£) and V is an arbitrary vector, independent of A then VTAVβˆΌπ’²1(Ξ½,ATΞ£A) and VTAVVTΞ£VβˆΌΟ‡Ξ½βˆ’12, one degree of freedom being relinquished by estimation of the sample mean in the latter. Similarly, Bodnar et.al. further find that VTAβˆ’1VVTΞ£βˆ’1V∼Inv-Ο‡Ξ½βˆ’p+12 and setting V=(1,0,β‹―,0)T the marginal distribution of the leading diagonal element is thus

[Aβˆ’1]1,1[Ξ£βˆ’1]1,1∼2βˆ’k/2Ξ“(k/2)xβˆ’k/2βˆ’1eβˆ’1/(2x),k=Ξ½βˆ’p+1

and by rotating V end-around a similar result applies to all diagonal elements [Aβˆ’1]i,i.

A corresponding result in the complex Wishart case was shown by Brennan and Reed[8] and the uncorrelated inverse complex Wishart π’²π’žβˆ’1(𝐈,Ξ½,p) was shown by Shaman[9] to have diagonal statistical structure in which the leading diagonal elements are correlated, while all other element are uncorrelated.

p(x∣α,Ξ²)=Ξ²Ξ±xβˆ’Ξ±βˆ’1exp⁑(βˆ’Ξ²/x)Ξ“1(Ξ±).
i.e., the inverse-gamma distribution, where Ξ“1(β‹…) is the ordinary Gamma function.
  • The Inverse Wishart distribution is a special case of the inverse matrix gamma distribution when the shape parameter Ξ±=Ξ½2 and the scale parameter Ξ²=2.
  • Another generalization has been termed the generalized inverse Wishart distribution, π’’π’²βˆ’1. A pΓ—p positive definite matrix 𝐗 is said to be distributed as π’’π’²βˆ’1(𝚿,Ξ½,𝐒) if 𝐘=𝐗1/2π’βˆ’1𝐗1/2 is distributed as π’²βˆ’1(𝚿,Ξ½). Here 𝐗1/2 denotes the symmetric matrix square root of 𝐗, the parameters 𝚿,𝐒 are pΓ—p positive definite matrices, and the parameter Ξ½ is a positive scalar larger than 2p. Note that when 𝐒 is equal to an identity matrix, π’’π’²βˆ’1(𝚿,Ξ½,𝐒)=π’²βˆ’1(𝚿,Ξ½). This generalized inverse Wishart distribution has been applied to estimating the distributions of multivariate autoregressive processes.[10]
  • A different type of generalization is the normal-inverse-Wishart distribution, essentially the product of a multivariate normal distribution with an inverse Wishart distribution.
  • When the scale matrix is an identity matrix, Ξ¨=𝐈, and Ξ¦ is an arbitrary orthogonal matrix, replacement of 𝐗 by Φ𝐗ΦT does not change the pdf of 𝐗 so π’²βˆ’1(𝐈,Ξ½,p) belongs to the family of spherically invariant random processes (SIRPs) in some sense.Template:Clarify
Thus, an arbitrary p-vector V with l2 length VTV=1 can be rotated into the vector 𝚽V=[100β‹―]T without changing the pdf of VT𝐗V, moreover 𝚽 can be a permutation matrix which exchanges diagonal elements. It follows that the diagonal elements of 𝐗 are identically inverse chi squared distributed, with pdf fx11 in the previous section though they are not mutually independent. The result is known in optimal portfolio statistics, as in Theorem 2 Corollary 1 of Bodnar et al,[11] where it is expressed in the inverse form VT𝚿VVT𝐗VβˆΌΟ‡Ξ½βˆ’p+12.
  • As is the case with the Wishart distribution linear transformations of the distribution yield a modified inverse Wishart distribution. If π—π©Γ—π©βˆΌπ’²pβˆ’1(𝚿,Ξ½). and 𝚯pΓ—p are full rank matrices then[12] πš―π—πš―TβˆΌπ’²pβˆ’1(𝚯𝚿𝚯T,Ξ½).
  • If π—π©Γ—π©βˆΌπ’²pβˆ’1(𝚿,Ξ½). and 𝚯mΓ—p is mΓ—p,m<p of full rank m then[12] πš―π—πš―TβˆΌπ’²mβˆ’1(𝚯𝚿𝚯T,Ξ½).

See also

References

Template:Reflist

Template:ProbDistributions