The Wayback Machine - https://web.archive.org/web/20250414035114/https://www.geeksforgeeks.org/gamma-distribution-model-in-mathematics/
Open In App

Gamma Distribution Model in Mathematics

Last Updated : 21 Jan, 2021
Comments
Improve
Suggest changes
Like Article
Like
Report

Introduction :

Suppose an event can occur several times within a given unit of time. When the total number of occurrences of the event is unknown, we can think of it as a random variable. Now, if this random variable X has gamma distribution, then its probability density function is given as follows.

f(x) = \frac{1}{\beta^\alpha Γ(\alpha)} x^{(\alpha - 1)}e^{\frac{-x}{\beta}}
only when x > 0, Îą >0, Îē >0. Otherwise f(x) = 0

where, Γ(α) is the value of the gamma function, defined by :

Γ(α) = \int^{\infty}_{0} x^{(\alpha - 1)}e^{-x}\,dx

Integrating it by parts, we get that :

Γ(α) = (α-1)Γ(α-1)    
for Îą > 1

Thus, Γ(α) = (α-1)! When α is a positive integer.

Represented as –

X ~ GAM(Îē, Îą)

Expected Value :

The Expected Value of the Poisson distribution can be found by summing up products of Values with their respective probabilities.

\mu = E(X) = \int^{\infty}_{-\infty} x.f(x) dx
\mu = \frac{1}{\beta^\alpha Γ(\alpha)} \int^{\infty}_{0}x. x^{(\alpha - 1)}e^{\frac{-x}{\beta}} dx

After putting y = x/Îē, we get –

\mu = \frac{\beta}{Γ(\alpha)} \int^{\infty}_{0} y^{\alpha} e^{-y} dy = \frac{\beta Γ(\alpha+1)}{Γ(\alpha)}

Now, after using the identity, Γ(Îą + 1) = Îą · Γ(Îą), we get –

Ξ = Îą Îē

Variance and Standard Deviation :

The Variance of the Gamma distribution can be found using the Variance Formula.

σ^2 = E( X − Ξ )^2 = E( X^2 ) − Ξ^2
E(X^2) = \int^{\infty}_{-\infty} x^2.f(x) dx
E(X^2) = \frac{1}{\beta^\alpha Γ(\alpha)} \int^{\infty}_{0}x^2. x^{(\alpha - 1)}e^{\frac{-x}{\beta}} dx

After putting y = x/Îē, we get –

E(X^2) = \frac{\beta^2}{Γ(\alpha)} \int^{\infty}_{0} y^{\alpha+1} e^{-y} dy\\ = \frac{\beta^2 Γ(\alpha+2)}{Γ(\alpha)}

But, Γ(Îą + 2) = (Îą+1) · Γ(Îą+1) and Γ(Îą+1) =  Îą · Γ(Îą)

=> Γ(Îą + 2) = Îą.(Îą+1).Γ(Îą), we get –

E(X^2) = \beta^2.\alpha.(\alpha+1)
So, Var(X) = E(X^2) - \mu^2
 Var(X) = \beta^2.\alpha.(\alpha+1) - \alpha^2\beta^2
Var(X) = \sigma^2 = \alpha\beta^2

Standard Deviation is given by –

\sigma = \sqrt{\alpha \beta^2} = \beta\sqrt{\alpha}

Note –

In special case if Îą  = 1, we get exponential distribution with \mu = \beta\\ \sigma^2 = \beta^2


Next Article

Similar Reads