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]
Suppose
has a multivariate normal distribution with mean μ 0 {\displaystyle {\boldsymbol {\mu }}_{0}} and covariance matrix ( λ Λ ) − 1 {\displaystyle (\lambda {\boldsymbol {\Lambda }})^{-1}} , where
has a Wishart distribution. Then ( μ , Λ ) {\displaystyle ({\boldsymbol {\mu }},{\boldsymbol {\Lambda }})} has a normal-Wishart distribution, denoted as
By construction, the marginal distribution over Λ {\displaystyle {\boldsymbol {\Lambda }}} is a Wishart distribution, and the conditional distribution over μ {\displaystyle {\boldsymbol {\mu }}} given Λ {\displaystyle {\boldsymbol {\Lambda }}} is a multivariate normal distribution. The marginal distribution over μ {\displaystyle {\boldsymbol {\mu }}} is a multivariate t-distribution.
After making n {\displaystyle n} observations x 1 , … , x n {\displaystyle {\boldsymbol {x}}_{1},\dots ,{\boldsymbol {x}}_{n}} , the posterior distribution of the parameters is
where
Generation of random variates is straightforward: