To install click the Add extension button. That's it.

The source code for the WIKI 2 extension is being checked by specialists of the Mozilla Foundation, Google, and Apple. You could also do it yourself at any point in time.

Kelly Slayton
Congratulations on this excellent venture… what a great idea!
Alexander Grigorievskiy
I use WIKI 2 every day and almost forgot how the original Wikipedia looks like.
Live Statistics
English Articles
Improved in 24 Hours
Added in 24 Hours
What we do. Every page goes through several hundred of perfecting techniques; in live mode. Quite the same Wikipedia. Just better.

Normal-inverse-gamma distribution

From Wikipedia, the free encyclopedia

Probability density function
Probability density function of normal-inverse-gamma distribution for α = 1.0, 2.0 and 4.0, plotted in shifted and scaled coordinates.
Parameters location (real)

, for


, for
, for

, 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.



has a normal distribution with mean and variance , where

has an inverse gamma distribution. Then has a normal-inverse-gamma distribution, denoted as

( 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.


Probability density function

For the multivariate form where is a random vector,

where is the determinant of the  matrix . Note how this last equation reduces to the first form if so that are  scalars.

Alternative parameterization

It is also possible to let in which case the pdf becomes

In the multivariate form, the corresponding change would be to regard the covariance matrix instead of its  inverse as a parameter.

Cumulative distribution function


Marginal distributions

Given as above, by itself follows an inverse gamma distribution:

while follows a  t distribution with degrees of freedom.

In the multivariate case, the marginal distribution of is a  multivariate t distribution:



Exponential family

Information entropy

Kullback–Leibler divergence

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:

  1. Sample from an inverse gamma distribution with parameters and
  2. Sample from a normal distribution with mean and variance

Related distributions

  • 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 ) is the normal-inverse-Wishart distribution

See also


  • 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
This page was last edited on 13 January 2021, at 08:47
Basis of this page is in Wikipedia. Text is available under the CC BY-SA 3.0 Unported License. Non-text media are available under their specified licenses. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc. WIKI 2 is an independent company and has no affiliation with Wikimedia Foundation.