In probability theory and statistics, the normal-Wishart distribution (or Gaussian-Wishart distribution) is a multivariate four-parameter family of continuous probability distributions. It is the conjugate prior of a multivariate normal distribution with unknown mean and precision matrix (the inverse of the covariance matrix).
Definition Suppose
𝝁|𝝁0,λ,𝜦∼𝒩(𝝁0,(λ𝜦)−1) has a multivariate normal distribution with mean 𝝁0 and covariance matrix (λ𝜦)−1, where
𝜦|𝐖,ν∼𝒲(𝜦|𝐖,ν) has a Wishart distribution. Then (𝝁,𝜦) has a normal-Wishart distribution, denoted as
(𝝁,𝜦)∼NW(𝝁0,λ,𝐖,ν).
Characterization
Probability density function f(𝝁,𝜦|𝝁0,λ,𝐖,ν)=𝒩(𝝁|𝝁0,(λ𝜦)−1) 𝒲(𝜦|𝐖,ν)
Properties
Scaling
Marginal distributions By construction, the marginal distribution over 𝜦 is a Wishart distribution, and the conditional distribution over 𝝁 given 𝜦 is a multivariate normal distribution. The marginal distribution over 𝝁 is a multivariate t-distribution.
Posterior distribution of the parameters After making n observations 𝒙1,…,𝒙n, the posterior distribution of the parameters is
(𝝁,𝜦)∼NW(𝝁n,λn,𝐖n,νn), where
λn=λ+n, 𝝁n=λ𝝁0+n𝒙¯λ+n, νn=ν+n, 𝐖n−1=𝐖−1+∑i=1n(𝒙i−𝒙¯)(𝒙i−𝒙¯)T+nλn+λ(𝒙¯−𝝁0)(𝒙¯−𝝁0)T.
Generating normal-Wishart random variates Generation of random variates is straightforward:
Sample 𝜦 from a Wishart distribution with parameters 𝐖 and ν Sample 𝝁 from a multivariate normal distribution with mean 𝝁0 and variance (λ𝜦)−1
Related distributions The normal-inverse Wishart distribution is essentially the same distribution parameterized by variance rather than precision. The normal-gamma distribution is the one-dimensional equivalent. The multivariate normal distribution and Wishart distribution are the component distributions out of which this distribution is made.
Notes
References Bishop, Christopher M. (2006). Pattern Recognition and Machine Learning. Springer Science+Business Media.