The gamma distribution is another widely used distribution. Its importance is largely due to
its relation to exponential and normal distributions. Here, we will provide an introduction to the
gamma distribution. In Chapters 6 and 11, we will discuss more properties of the gamma
random variables. Before introducing the gamma random variable, we need to introduce the
gamma function.
Gamma function: The gamma function [10], shown by $ \Gamma(x)$, is an extension of the factorial
function to real (and complex) numbers. Specifically, if $n \in {1,2,3,...} $, then
Γ(n)=(n−1)!
More generally, for any positive real number α, Γ(α) is defined as
Γ(α)=∫0∞xα−1e−xdx,for α>0.
Figure 4.9 shows the gamma function for positive real values.
Figure 4.9: The Gamma function for some real values of α.
Note that for α=1, we can write
Γ(1)=∫0∞e−xdx=1.
Using the change of variable x=λy, we can show the following equation that is often useful when working with
the gamma distribution:
Γ(α)=λα∫0∞yα−1e−λydyfor α,λ>0.
Also, using integration by parts it can be shown that
Γ(α+1)=αΓ(α),for α>0.
Note that if α=n, where n is a positive integer, the above equation reduces to
Gamma Distribution:
We now define the gamma distribution by providing its PDF:
A continuous random variable X is said to have a gamma distribution with parameters
$\alpha > 0 \textrm{ and } \lambda > 0 $, shown as X∼Gamma(α,λ), if its PDF
is given by
fX(x)={Γ(α)λαxα−1e−λxx>00otherwise
If we let α=1, we obtain
fX(x)={λe−λxx>00otherwise
Thus, we conclude Gamma(1,λ)=Exponential(λ). More generally, if you sum n
independent Exponential(λ) random variables, then you will get a Gamma(n,λ)
random variable. We will prove this later on using the moment generating function. The gamma
distribution is also related to the normal distribution as will be discussed later. Figure 4.10
shows the PDF of the gamma distribution for several values of α.
Figure 4.10: PDF of the gamma distribution for some values of α and λ.
Example
Using the properties of the gamma function, show that the gamma PDF integrates to 1, i.e., show
that for α,λ>0, we have
∫0∞Γ(α)λαxα−1e−λxdx=1.
Solution
We can write
∫0∞Γ(α)λαxα−1e−λxdx=Γ(α)λα∫0∞xα−1e−λxdx=Γ(α)λα⋅λαΓ(α)(using Property 2 of the gamma function)=1.
In the Solved Problems section, we calculate the mean and variance for the gamma distribution. In particular,
we find out that if X∼Gamma(α,λ), then