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
Show all languages
What we do. Every page goes through several hundred of perfecting techniques; in live mode. Quite the same Wikipedia. Just better.

Inverse-gamma distribution

From Wikipedia, the free encyclopedia

Probability density function
Inv gamma pdf.svg
Cumulative distribution function
Inv gamma cdf.svg
Parameters shape (real)
scale (real)
Mean for
Variance for
Skewness for
Ex. kurtosis for

(see digamma function)
MGF Does not exist.

In probability theory and statistics, the inverse gamma distribution is a two-parameter family of continuous probability distributions on the positive real line, which is the distribution of the reciprocal of a variable distributed according to the gamma distribution. Perhaps the chief use of the inverse gamma distribution is in Bayesian statistics, where the distribution arises as the marginal posterior distribution for the unknown variance of a normal distribution, if an uninformative prior is used, and as an analytically tractable conjugate prior, if an informative prior is required.

However, it is common among Bayesians to consider an alternative parametrization of the normal distribution in terms of the precision, defined as the reciprocal of the variance, which allows the gamma distribution to be used directly as a conjugate prior. Other Bayesians prefer to parametrize the inverse gamma distribution differently, as a scaled inverse chi-squared distribution.


Probability density function

The inverse gamma distribution's probability density function is defined over the support

with shape parameter and scale parameter .[1] Here denotes the gamma function.

Unlike the Gamma distribution, which contains a somewhat similar exponential term, is a scale parameter as the distribution function satisfies:

Cumulative distribution function

The cumulative distribution function is the regularized gamma function

where the numerator is the upper incomplete gamma function and the denominator is the gamma function. Many math packages allow direct computation of , the regularized gamma function.


The n-th moment of the inverse gamma distribution is given by[2]

Characteristic function

in the expression of the characteristic function is the modified Bessel function of the 2nd kind.


For and ,


The information entropy is

where is the digamma function.

The Kullback-Leibler divergence of Inverse-Gamma(αp, βp) from Inverse-Gamma(αq, βq) is the same as the KL-divergence of Gamma(αp, βp) from Gamma(αq, βq):

where are the pdfs of the Inverse-Gamma distributions and are the pdfs of the Gamma distributions, is Gamma(αp, βp) distributed.

Related distributions

  • If then
  • If then (inverse-chi-squared distribution)
  • If then (scaled-inverse-chi-squared distribution)
  • If then (Lévy distribution)
  • If then (Exponential distribution)
  • If (Gamma distribution with rate parameter ) then (see derivation in the next paragraph for details)
  • Note that If X ~ Gamma(k, θ) (Gamma distribution with scale parameter θ ) then 1/X ~ Inv-Gamma(k, θ−1)
  • Inverse gamma distribution is a special case of type 5 Pearson distribution
  • A multivariate generalization of the inverse-gamma distribution is the inverse-Wishart distribution.
  • For the distribution of a sum of independent inverted Gamma variables see Witkovsky (2001)

Derivation from Gamma distribution

Let , and recall that the pdf of the gamma distribution is

, .

Note that is the rate parameter from the perspective of the gamma distribution.

Define the transformation . Then, the pdf of is

Note that is the scale parameter from the perspective of the inverse gamma distribution.


See also


  1. ^ "InverseGammaDistribution—Wolfram Language Documentation". Retrieved 9 April 2018.
  2. ^ John D. Cook (Oct 3, 2008). "InverseGammaDistribution" (PDF). Retrieved 3 Dec 2018.
  • Hoff, P. (2009). "A first course in bayesian statistical methods". Springer.
  • Witkovsky, V. (2001). "Computing the Distribution of a Linear Combination of Inverted Gamma Variables". Kybernetika. 37 (1): 79–90. MR 1825758. Zbl 1263.62022.
This page was last edited on 26 December 2020, at 03:54
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.