You are on page 1of 3

4.2.

4 Gamma Distribution
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 Γ(x), is an extension of the factorial function to real (and complex) numbers. Specifically,
if n ∈ {1, 2, 3, . . . } , then

Γ(n) = (n − 1)!

More generally, for any positive real number α, Γ(α) is defined as


α−1 −x
Γ(α) = ∫ x e dx,
0

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


−x
Γ(1) = ∫ e dx
0

= 1.

Using the change of variable x = λy , we can show the following equation that is often useful when working with the gamma distribution:

α α−1 −λy
Γ(α) = λ ∫ y e dy
0

for α, λ > 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

n! = n ⋅ (n − 1)!

Properties of the gamma function

For any positive real number α:


1. Γ(α) = ∫

0
x
α−1 −x
e dx ;

2. ∫
0
∞ α−1
x e
−λx
dx =
Γ(α)

λ
α
,

for λ > 0;

3. Γ(α + 1) = αΓ(α);

4. Γ(n) = (n − 1)!,  for n = 1,

2, 3, ⋯ ;

5. Γ(
1

2


) = √π .

Example 4.12
Answer the following questions:

1. Find Γ( ). 7

2. Find the value of the following integral:



6 −5x
I = ∫ x e dx.
0

Solution
1. To find Γ( 7

2
), we can write
7 5 5
Γ( ) = ⋅ Γ( ) (using Property 3)
2 2 2

5 3 3
= ⋅ ⋅ Γ( ) (using Property 3)
2 2 2
5 3 1 1
= ⋅ ⋅ ⋅ Γ( )(using Property 3)
2 2 2 2
5 3 1 −

= ⋅ ⋅ ⋅ √π (using Property 5)
2 2 2

15 −

= √π .
8

2. Using Property 2 with α = 7 and λ = 5 , we obtain



6 −5x
I = ∫ x e dx
0

Γ(7)
=
7
5

6!
= (using Property 4)
7
5

≈ 0.0092

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 α > 0 and λ > 0 , shown as X ∼ Gamma(α, λ) , if its PDF is
given by

fX (x)
α α−1 −λx
λ x e
x > 0
Γ(α)
= {

0 otherwise

If we let α = 1 , we obtain
−λx
λe x > 0
fX (x) = {
0 otherwise

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 4.13
Using the properties of the gamma function, show that the gamma PDF integrates to 1, i.e., show that for α, λ > 0 , we have
∞ α α−1 −λx
λ x e
∫ dx = 1.
0
Γ(α)

Solution
We can write
∞ α α−1 −λx α ∞
λ x e λ
α−1 −λx
∫ dx = ∫ x e dx
0 Γ(α) Γ(α) 0

α
λ Γ(α)
= ⋅
α
Γ(α) λ

(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

α α
EX = , V ar(X) = .
2
λ λ

← previous
next →

You might also like