Inverse Gamma distribution
Story
If
Parameters
The number of arrivals,
Support
The Inverse Gamma distribution is supported on the set of positive real numbers.
Probability density function
where
Cumulative distribution function
Moments
Mean:
Variance:
Usage
Package |
Syntax |
---|---|
NumPy |
|
SciPy |
|
Distributions.jl |
|
Stan |
|
Notes
The Inverse Gamma distribution is useful as a prior for positive parameters. It imparts a quite heavy tail and keeps probability further from zero than the Gamma distribution.
NumPy module does not have a function to sample directly from the Inverse Gamma distribution, but it can be achieved by sampling out of a Gamma distribution and then taking the inverser, as shown in the NumPy usage above.