Inverse Gamma Distribution Sample Generator

Inverse Gamma Distribution Sample Generator

Generate random samples from an Inverse Gamma distribution.

* Enter the shape parameter α>0, scale parameter β>0, and the number of samples.

Step 1: Enter Parameters

e.g., 2

e.g., 3

e.g., 10

How It Works

The Inverse Gamma distribution is defined by the PDF: f(y;α,β)=βαΓ(α)yα1eβ/y,y>0.

A useful relationship is that if XGamma(α,scale=1β), then Y=1XInverse Gamma(α,β).

This calculator generates Gamma random variables using the Marsaglia and Tsang method (with a transformation if α<1), and then outputs their reciprocals to produce Inverse Gamma samples.

Mean of Inverse Gamma: βα1 (for α>1); Variance: β2(α1)2(α2) (for α>2).

Related Calculators