Gamma Distribution

Probability Density Function

A random variable X has a gamma distribution X∼Gamma(α,β) if and only if it has the pdf

f(x;α,β)=1βαΓ(α)xα−1e−x/β for x>0

where α>0 and B>0 and Γ(α) is the Gamma function

  1. f(x)≥0,∀x
∫−∞∞f(x)dx=∫0∞1βαΓ(α)xα−1e−x/βdx=1βαΓ(α)∫0∞xα−1e−x/βdx(y=xβ)=1βαΓ(α)∫0∞(βy)α−1e−yβdy(dx=βdy)=1βαΓ(α)βα∫0∞yα−1e−ydy=1Γ(α)Γ(α)=1

Mean

μ=E(X)=∫0∞x1βαΓ(α)xα−1e−x/βdx=1βαΓ(α)∫0∞xα+1−1e−x/β=1βαΓ(α)βα+1Γ(α+1)∫0∞1βα+1Γ(α+1)xα+1−1e−x/βdx=βΓ(α+1)Γ(α)⋅1(PDF of Gamma(α+1,β))=βαΓ(α)Γ(α)μ=βα

Second moment

E(X2)=∫0∞x21βαΓ(α)xα−1e−x/βdx=d2dt2MX(t)=ddtαβ(1−tβ)−α−1=αβ(−α−1)(1−tβ)−α−2(−β)|t=0=−β2α(−(α+1))(1−0)−α−2=β2α(α+1)

Variance

Var(X)=E(X2)−[E(X)]2=β2α(α+1)−(αβ)2=β2(α(α+1)−α2)=β2(α(α+1−α))=β2(α(1))Var(X)=β2α

Exponential Distribution is a special case of the gamma distribution when α=1

The Chi-Squared Distribution is another special case of the gamma distribution with α=v2 and β=2

Moments

The rth moment of a Gamma(α,β) distribution is given by

E(Xr)=βrΓ(α+r)Γ(α)