- Gamma distribution
, eta_m = V_{3m} e^{-xi_m}.
# If , then increment "m" and go to step 2.
# Assume to be the realization of Now, to summarize,:where ["k"] is the integral part of "k", and "ξ" has been generated using the algorithm above with δ = {"k"} (the fractional part of "k"),"Uk" and "Vl" are distributed as explained above and are all independent.
The
GNU Scientific Library has robust routines for sampling many distributions including the Gamma distribution.Related distributions
Specializations
* If , then "X" has an
exponential distribution with rate parameter λ.
* If , then "X" is identical to χ2("ν"), thechi-square distribution with "ν" degrees of freedom.
* If is aninteger , the gamma distribution is anErlang distribution and is the probability distribution of the waiting time until the -th "arrival" in a one-dimensionalPoisson process with intensity 1/θ.
* If , then "X" has aMaxwell-Boltzmann distribution with parameter "a".
*, thenOthers
* If "X" has a Γ("k", θ) distribution, then 1/"X" has an
inverse-gamma distribution with parameters "k" and θ-1.
* If "X" and "Y" are independently distributed Γ(α, θ) and Γ(β, θ) respectively, then "X" / ("X" + "Y") has abeta distribution with parameters α and β.
* If "Xi" are independently distributed Γ(α"i",θ) respectively, then the vector ("X"1 / "S", ..., "Xn" / "S"), where "S" = "X"1 + ... + "Xn", follows aDirichlet distribution with parameters α1, ..., α"n".
* For large "k" the gamma distribution converges to Gaussian distribution with mean and variance .
* The Gamma distribution is theconjugate prior for the precision of thenormal distribution with knownmean .Applications
The gamma distribution is frequently a probability model for waiting times; for instance, in life testing, the waiting time until death is a random variable which is frequently modeled with a gamma distribution. [See Hogg and Craig Remark 3.3.1. for an explicit motivation.test]
See also
*
Gamma process
*Notes
References
* R. V. Hogg and A. T. Craig. "Introduction to Mathematical Statistics", 4th edition. New York: Macmillan, 1978. "(See Section 3.3.)"
* MathWorld|urlname=GammaDistribution|title=Gamma distribution
* [http://www.itl.nist.gov/div898/handbook/eda/section3/eda366b.htm Engineering Statistics Handbook]
* S. C. Choi and R. Wette. (1969) "Maximum Likelihood Estimation of the Parameters of the Gamma Distribution and Their Bias", Technometrics, 11(4) 683-690
Wikimedia Foundation. 2010.