Normal-Wishart distribution

From testwiki
Jump to navigation Jump to search

Template:Probability distribution 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).[1]

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.[2]

Generating normal-Wishart random variates

Generation of random variates is straightforward:

  1. Sample 𝜦 from a Wishart distribution with parameters 𝐖 and Ξ½
  2. Sample 𝝁 from a multivariate normal distribution with mean 𝝁0 and variance (λ𝜦)βˆ’1

Notes

Template:Reflist

References

  • Bishop, Christopher M. (2006). Pattern Recognition and Machine Learning. Springer Science+Business Media.

Template:ProbDistributions

  1. ↑ Bishop, Christopher M. (2006). Pattern Recognition and Machine Learning. Springer Science+Business Media. Page 690.
  2. ↑ Cross Validated, https://stats.stackexchange.com/q/324925