# Inverse-Wishart distribution

Inverse-Wishart distribution

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

We say $\left\{mathbf B\right\}$ follows an inverse Wishart distribution, denoted as $mathbf\left\{B\right\}sim W^\left\{-1\right\}\left(\left\{mathbfPsi\right\},m\right)$, if its probability density function is written as follows:

:$frac\left\{left|\left\{mathbfPsi\right\} ight|^\left\{m/2\right\}left|B ight|^\left\{-\left(m+p+1\right)/2\right\}e^\left\{-mathrm\left\{trace\right\}\left(\left\{mathbfPsi\right\}\left\{mathbf B\right\}^\left\{-1\right\}\right)/2\left\{2^\left\{mp/2\right\}Gamma_p\left(m/2\right)\right\},$

where $\left\{mathbf B\right\}$ is a $p imes p$ matrix. The matrix $\left\{mathbfPsi\right\}$ is assumed to be positive definite.

Theorems

Distribution of the inverse of a Wishart-distributed matrix

If $\left\{mathbf A\right\}sim W\left(\left\{mathbfSigma\right\},m\right)$ and $\left\{mathbfSigma\right\}$ is $p*p$, then $\left\{mathbf B\right\}=\left\{mathbf A\right\}^\left\{-1\right\}$ has an inverse Wishart distribution $\left\{mathbf B\right\}sim W^\left\{-1\right\}\left(\left\{mathbfSigma\right\}^\left\{-1\right\},m\right)$ with probability density function::$p\left(mathbf\left\{B\right\}|mathbf\left\{Psi\right\},m\right) = frac\left\{left|\left\{mathbfPsi\right\} ight|^\left\{m/2\right\}left|mathbf\left\{B\right\} ight|^\left\{-\left(m+p+1\right)/2\right\}expleft\left(\left\{-mathrm\left\{tr\right\}\left(\left\{mathbfPsi\right\}\left\{mathbf B\right\}^\left\{-1\right\}\right)/2\right\} ight\right)\right\}\left\{2^\left\{mp/2\right\}Gamma_p\left(m/2\right)\right\}$where $mathbf\left\{Psi\right\} = mathbf\left\{Sigma\right\}^\left\{-1\right\}$ and $Gamma_p\left(cdot\right)$ is the multivariate gamma function. [Cite book
author = Kanti V. Mardia, J. T. Kent and J. M. Bibby
title = Multivariate Analysis
year = 1979
isbn = 0-12-471250-9
]

Marginal and conditional distributions from an inverse Wishart-distributed matrix

Suppose $\left\{mathbf A\right\}sim W^\left\{-1\right\}\left(\left\{mathbfPsi\right\},m\right)$ has an inverse Wishart distribution. Partition the matrices $\left\{mathbf A\right\}$ and $\left\{mathbfPsi\right\}$ conformably with each other : where $\left\{mathbf A_\left\{ij$ and $\left\{mathbf Psi_\left\{ij$ are $p_\left\{i\right\} imes p_\left\{j\right\}$ matrices, then we have

i) $\left\{mathbf A_\left\{11\right\} \right\}$ is independent of $\left\{mathbf A\right\}_\left\{11\right\}^\left\{-1\right\}\left\{mathbf A\right\}_\left\{12\right\}$ and $\left\{mathbf A\right\}_\left\{22cdot 1\right\}$, where $\left\{mathbf A_\left\{22cdot 1 = \left\{mathbf A\right\}_\left\{22\right\} - \left\{mathbf A\right\}_\left\{21\right\}\left\{mathbf A\right\}_\left\{11\right\}^\left\{-1\right\}\left\{mathbf A\right\}_\left\{12\right\}$ is the Schur complement of $\left\{mathbf A_\left\{11\right\} \right\}$ in $\left\{mathbf A\right\}$;

ii) $\left\{mathbf A_\left\{11\right\} \right\} sim W^\left\{-1\right\}\left(\left\{mathbf Psi_\left\{11\right\} \right\}, m-p_\left\{2\right\}\right)$;

iii) $\left\{mathbf A\right\}_\left\{11\right\}^\left\{-1\right\} \left\{mathbf A\right\}_\left\{12\right\}| \left\{mathbf A\right\}_\left\{22cdot 1\right\} sim MN_\left\{p_\left\{1\right\} imes p_\left\{2\left( \left\{mathbf Psi\right\}_\left\{11\right\}^\left\{-1\right\} \left\{mathbf Psi\right\}_\left\{12\right\}, \left\{mathbf A\right\}_\left\{22cdot 1\right\} otimes \left\{mathbf Psi\right\}_\left\{11\right\}^\left\{-1\right\}\right)$, where $MN_\left\{p imes q\right\}\left(cdot,cdot\right)$ is a matrix normal distribution;

iv) $\left\{mathbf A\right\}_\left\{22cdot 1\right\} sim W^\left\{-1\right\}\left(\left\{mathbf Psi\right\}_\left\{22cdot 1\right\}, m\right)$

Conjugate distribution

Suppose we wish to make inference about a covariance matrix $\left\{mathbf\left\{Sigma$ whose prior $\left\{p\left(mathbf\left\{Sigma\right\}\right)\right\}$ has a $W^\left\{-1\right\}\left(\left\{mathbfPsi\right\},m\right)$ distribution. If the observations $mathbf\left\{X\right\}= \left[mathbf\left\{x\right\}_1,ldots,mathbf\left\{x\right\}_n\right]$ are independent p-variate gaussian variables drawn from a $N\left(mathbf\left\{0\right\},\left\{mathbf Sigma\right\}\right)$ distribution, then the conditional distribution $\left\{p\left(mathbf\left\{Sigma\right\}|mathbf\left\{X\right\}\right)\right\}$ has a $W^\left\{-1\right\}\left(\left\{mathbf A\right\}+\left\{mathbfPsi\right\},n+m\right)$ distribution, where $\left\{mathbf\left\{A=mathbf\left\{X\right\}mathbf\left\{X\right\}^T$ is $n$ times the sample covariance matrix.

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

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.

The mean::$E\left(mathbf B\right) = frac\left\{mathbfPsi\right\}\left\{m-p-1\right\}.$

The variance of each element of $mathbf\left\{B\right\}$::$mbox\left\{var\right\}\left(b_\left\{ij\right\}\right) = frac\left\{\left(m-p+1\right)psi_\left\{ij\right\}^2 + \left(m-p-1\right)psi_\left\{ii\right\}psi_\left\{jj\left\{\left(m-p\right)\left(m-p-1\right)^2\left(m-p-3\right)\right\}$The variance of the diagonal uses the same formula as above with $i=j$, which simplifies to::$mbox\left\{var\right\}\left(b_\left\{ii\right\}\right) = frac\left\{2psi_\left\{ii\right\}^2\right\}\left\{\left(m-p-1\right)^2\left(m-p-3\right)\right\}.$

Related distributions

A univariate specialization of the inverse-Wishart distribution is the inverse-gamma distribution. With $p=1$ (i.e. univariate) and $alpha = m/2$, and $x=mathbf\left\{B\right\}$ the probability density function of the inverse-Wishart distribution becomes

:

i.e., the inverse-gamma distribution, where $Gamma_1\left(cdot\right)$ is the ordinary Gamma function.

A generalization is the normal-inverse-Wishart distribution.

ee also

*Wishart distribution
*Matrix normal distribution

References

Wikimedia Foundation. 2010.

### Look at other dictionaries:

• Inverse-gamma distribution — Probability distribution name =Inverse gamma type =density pdf cdf parameters =alpha>0 shape (real) eta>0 scale (real) support =xin(0;infty)! pdf =frac{eta^alpha}{Gamma(alpha)} x^{ alpha 1} exp left(frac{ eta}{x} ight) cdf… …   Wikipedia

• Wishart distribution — Probability distribution name =Wishart type =density pdf cdf parameters = n > 0! deg. of freedom (real) mathbf{V} > 0, scale matrix ( pos. def) support =mathbf{W}! is positive definite pdf =frac{left|mathbf{W} ight|^frac{n p 1}{2… …   Wikipedia

• Normal-scaled inverse gamma distribution — Normal scaled inverse gamma parameters: location (real) (real) (real) (real) support …   Wikipedia

• Normal-inverse Gaussian distribution — Normal inverse Gaussian (NIG) parameters: μ location (real) α tail heavyness (real) β asymmetry parameter (real) δ scale parameter (real) support …   Wikipedia

• Matrix normal distribution — parameters: mean row covariance column covariance. Parameters are matrices (all of them). support: is a matrix …   Wikipedia

• Probability distribution — This article is about probability distribution. For generalized functions in mathematical analysis, see Distribution (mathematics). For other uses, see Distribution (disambiguation). In probability theory, a probability mass, probability density …   Wikipedia

• Multivariate normal distribution — MVN redirects here. For the airport with that IATA code, see Mount Vernon Airport. Probability density function Many samples from a multivariate (bivariate) Gaussian distribution centered at (1,3) with a standard deviation of 3 in roughly the… …   Wikipedia

• Chi-squared distribution — This article is about the mathematics of the chi squared distribution. For its uses in statistics, see chi squared test. For the music group, see Chi2 (band). Probability density function Cumulative distribution function …   Wikipedia

• Uniform distribution (continuous) — Uniform Probability density function Using maximum convention Cumulative distribution function …   Wikipedia

• Cauchy distribution — Not to be confused with Lorenz curve. Cauchy–Lorentz Probability density function The purple curve is the standard Cauchy distribution Cumulative distribution function …   Wikipedia