| normal-inverse-gamma | 
|---|
| Probability density function  | 
| Parameters |  location (real) 
  (real) 
  (real) 
  (real) | 
|---|
| Support |  | 
|---|
| PDF |  | 
|---|
| Mean | ![{\displaystyle \operatorname {E} [x]=\mu }](./_assets_/d60f5921cca1c75d673eb70db395bf3a88f9170f.svg) 
 ![{\displaystyle \operatorname {E} [\sigma ^{2}]={\frac {\beta }{\alpha -1}}}](./_assets_/b74baba053fd81d56d62de618558ac7af62ade55.svg) , for  | 
|---|
| Mode |   
  | 
|---|
| Variance | ![{\displaystyle \operatorname {Var} [x]={\frac {\beta }{(\alpha -1)\lambda }}}](./_assets_/c11eddb529a936912263edfb0c46ce2a42adfbd5.svg) , for  
 ![{\displaystyle \operatorname {Var} [\sigma ^{2}]={\frac {\beta ^{2}}{(\alpha -1)^{2}(\alpha -2)}}}](./_assets_/4d089f3b7da4ce1f13940b4731eb531932850d0e.svg) , for  
 ![{\displaystyle \operatorname {Cov} [x,\sigma ^{2}]=0}](./_assets_/df7006f5738ee174c6c35e1694f1c4ac3b2c9c42.svg) , for  | 
|---|
In probability theory and statistics, the normal-inverse-gamma distribution (or Gaussian-inverse-gamma distribution) is a four-parameter family of multivariate continuous probability distributions. It is the conjugate prior of a normal distribution with unknown mean and variance.
Definition
Suppose
 
has a normal distribution with mean  and variance
 and variance  , where
, where
 
has an inverse-gamma distribution. Then  has a normal-inverse-gamma distribution, denoted as
 
has a normal-inverse-gamma distribution, denoted as
 
( is also used instead of
 is also used instead of  )
)
The normal-inverse-Wishart distribution is a generalization of the normal-inverse-gamma distribution that is defined over multivariate random variables.
Characterization
Probability density function
 
For the multivariate form where  is a
 is a  random vector,
 random vector,
 
where  is the determinant of the
 is the determinant of the  matrix
 matrix  . Note how this last equation reduces to the first form if
. Note how this last equation reduces to the first form if  so that
 so that  are scalars.
 are scalars.
Alternative parameterization
It is also possible to let  in which case the pdf becomes
 in which case the pdf becomes
 
In the multivariate form, the corresponding change would be to regard the covariance matrix  instead of its inverse
 instead of its inverse  as a parameter.
 as a parameter.
Cumulative distribution function
 
Properties
Marginal distributions
Given  as above,
 as above,  by itself follows an inverse gamma distribution:
 by itself follows an inverse gamma distribution:
 
while  follows a t distribution with
 follows a t distribution with  degrees of freedom.[1]
 degrees of freedom.[1]
Proof for  
For  probability density function is
 probability density function is
 
Marginal distribution over  is
 is
 
Except for normalization factor, expression under the integral coincides with Inverse-gamma distribution
 
with  ,
,  ,
,  .
.
Since  , and
, and
 
Substituting this expression and factoring dependence on  ,
,
 
Shape of generalized Student's t-distribution is
 .
.
Marginal distribution  follows t-distribution with
 follows t-distribution with 
 degrees of freedom
 degrees of freedom
 .
.
 
In the multivariate case, the marginal distribution of  is a multivariate t distribution:
 is a multivariate t distribution:
 
Summation
Scaling
Suppose
 
Then for  ,
, 
 
Proof: To prove this let  and fix
 and fix   . Defining
. Defining  , observe that the PDF of the random variable
, observe that the PDF of the random variable  evaluated at
 evaluated at  is given by
 is given by  times the PDF of a
 times the PDF of a   random variable evaluated at
 random variable evaluated at  . Hence the PDF of
. Hence the PDF of   evaluated at
 evaluated at  is given by :
 is given by : 
The right hand expression is the PDF for a  random variable evaluated at
 random variable evaluated at  , which completes the proof.
, which completes the proof.
Exponential family
Normal-inverse-gamma distributions form an exponential family with natural parameters  ,
,  ,
,  , and
, and  and sufficient statistics
 and sufficient statistics  ,
,  ,
,  , and
, and  .
.
Kullback–Leibler divergence
Measures difference between two distributions.
Maximum likelihood estimation
Posterior distribution of the parameters
See the articles on normal-gamma distribution and conjugate prior.
Interpretation of the parameters
See the articles on normal-gamma distribution and conjugate prior.
Generating normal-inverse-gamma random variates
Generation of random variates is straightforward:
- Sample  from an inverse gamma distribution with parameters from an inverse gamma distribution with parameters and and 
- Sample  from a normal distribution with mean from a normal distribution with mean and variance and variance 
- The normal-gamma distribution is the same distribution parameterized by precision rather than variance
- A generalization of this distribution which allows for a multivariate mean and a completely unknown positive-definite covariance matrix  (whereas in the multivariate inverse-gamma distribution the covariance matrix is regarded as known up to the scale factor (whereas in the multivariate inverse-gamma distribution the covariance matrix is regarded as known up to the scale factor ) is the normal-inverse-Wishart distribution ) is the normal-inverse-Wishart distribution
See also
References
- Denison, David G. T.; Holmes, Christopher C.; Mallick, Bani K.; Smith, Adrian F. M. (2002) Bayesian Methods for Nonlinear Classification and Regression, Wiley. ISBN 0471490369
- Koch, Karl-Rudolf (2007) Introduction to Bayesian Statistics (2nd Edition), Springer. ISBN 354072723X
|  | 
|---|
| Discrete univariate
 | | with finite support
 |  | 
|---|
 | with infinite support
 |  | 
|---|
 | 
|---|
| Continuous univariate
 | | supported on a bounded interval
 |  | 
|---|
 | supported on a semi-infinite
 interval
 |  | 
|---|
 | supported on the whole
 real line
 |  | 
|---|
 | with support whose type varies
 |  | 
|---|
 | 
|---|
| Mixed univariate
 |  | 
|---|
| Multivariate (joint)
 |  | 
|---|
| Directional |  | 
|---|
| Degenerate and singular
 |  | 
|---|
| Families |  | 
|---|
|  |