Gamabeta
Gamabeta
16.1 INTRODUCTION
In Unit 15, you have studied continuous uniform and exponential
distributions. Here, we will discuss gamma and beta distributions. Gamma
distribution reduces to exponential distribution and beta distribution reduces
to uniform distribution for special cases. Gamma distribution is a
generalization of exponential distribution in the same sense as the negative
binomial distribution is a generalization of geometric distribution. In a sense,
the geometric distribution and negative binomial distribution are the discrete
analogs of the exponential and gamma distributions, respectively. The present
unit discusses the gamma and beta distributions which are defined with the
help of special functions known as gamma and beta functions, respectively.
So, before defining these distributions, we first define gamma and beta
functions in Sec. 16.2 of this unit. Then gamma distribution and beta
distribution of first kind followed by beta distribution of second kind are
discussed in Secs. 16.3 to 16.5.
Objectives
After studing this unit, you would be able to:
define beta and gamma functions;
define gamma and beta distributions;
discuss various properties of these distributions;
identify the situations where these distributions can be employed; and
solve various practical problems related to these distributions.
71
Continuous Probability
Distributions Beta Function
1
m 1 n 1
Definition: If m > 0, n > 0, the integral x 1 x
0
dx is called a beta
On the basis of the above discussion, you can try the following exercise.
E1) Express the following as a beta function:
1 1 1
i) x 3
1 x 2 dx
0
1
2 5
ii) x 1 x
0
dx
x2
iii) 1 x 5
dx
0
1
2
x
iv) 1 x 2
dx
0
72
Gamma Function Gamma and Beta
Distributions
Though we have defined Gamma function in Unit 13, yet we are again
defining it with more properties, examples and exercises to make you clearly
understand this special function.
n 1 x
Definition: If n > 0, the integral x e dx is called a gamma function and is
0
denoted by n
e.g.
2 x
(i) x e dx 2 1 3
0
x 1 3
(ii) xe dx 1
0 2 2
Some Important Results on Gamma Function
1. If n > 1, n n 1 n 1
2. If n is a positive integer, n n 1 !
1
3.
2
Relationship between Beta and Gamma Functions
10
(ii) 1 x
0
dx
1
x
(iii) x 2 e dx
0
Remark 1:
(i) It can be verified that
f x dx 1
0
Verification:
r ex x r 1
x dx
0 0 r
dx
r 1
ex x
dx
0 r
Putting x = y dx dy
Also, when x 0, y 0 and when x , y
1 y
e y r 1dx
r 0
1
r [Using gamma function defined in Sec. 16.2]
r
=1
(ii) If X is a gamma variate with two parameters r > 0 and > 0, it is expressed
as X γ(, r).
(iii) If we put r = 1, we have
e x x 0
f (x) ,x 0
1
e x , x 0
which is probability density function of exponential distribution.
e x .x r 1
f (x) , x 0, r 0
r
74
It is known as gamma distribution with single parameter r. This form of the Gamma and Beta
gamma distribution is also widely used. If X follows gamma distribution with Distributions
e x e x
x 1 dx [Integrating by parts]
1 5 5 1
ex
0 5e5 e x dx 5e5
5 1 5
5e 5 0 e5
= 6 e 5
75
Continuous Probability
Distributions
= 6 0.0070 [See the table given at the end of Unit 10]
= 0.042
ii) In this case r = 1, = 1 and hence
r ex .x r 1
P X 5 dx
5 r
(1)1 e x x 0 e x
dx e x dx 0 e5 0.0070
5 (1) 5 1 5
Alternatively,
As r = 1, so it is a case of exponential distribution for which
f x ex , x 0
e x
P X 5 e x x
dx 1e dx 0 e 5 0.0070
5 5 1 5
Here is an exercise for you.
E3) Telephone calls arrive at a switchboard at an average rate of 2 per minute.
Let X denotes the waiting time in minutes until the 4th call arrives and
follows gamma distribution. Write the probability density function of X.
Also find its mean and variance.
Let us now discuss the beta distributions in the next two sections:
m, n
m n
m n
Now, we are in a position to define beta distribution which is defined with the
help of beta function. There are two kinds of beta distribution beta
distribution of first kind and beta distribution of second kind. Beta distribution
of second kind is defined in next section of the unit whereas beta distribution
of first kind is defined as follows:
Definition: A random variable X is said to follow beta distribution of first
kind with parameters m > 0 and n > 0, if its probability density function is
given by
1 m 1 n 1
m, n x 1 x , 0 x 1
f (x)
0, otherwise
The random variable X is known as beta variate of first kind and can be
expressed as X 1(m, n)
76
Remark 5: If m = 1 and n = 1, then the beta distribution reduces to Gamma and Beta
Distributions
1 11
f x x11 1 x , 0 x 1
1,1
0
x 0 1 x
, 0 x 1
1,1
1
,0 x 1
1,1
11 0 0
But 1,1
2 1
Therefore, f (x)
11 1
1
f (x) 1, 0 x 1
1
,0 x 1
1 0
which is uniform distribution on (0, 1).
1
[p.d.f. of uniform distribution on (a, b) is f (x) , a x b]
ba
So, continuous uniform distribution is a particular case of beta
distribution.
Mean and variance of Beta Distribution of First Kind
Mean and Variance of this distribution are given as
m
Mean =
mn
mn
Variance = 2
m n m n 1
Example 4: Determine the constant C such that the function
6
f (x) Cx 3 1 x , 0 x 1 is a beta distribution of first kind. Also, find its
mean and variance.
Solution: As f x is a beta distribution of first kind.
1
f x 1
0
1
3 6
Cx 1 x
0
dx 1
1
6
C x 3 1 x dx 1
0
77
Continuous Probability
Distributions C 3 1, 6 1 1 [By definition of Beta distribution of first kind]
1
C
4, 7
47 m n
m, n
47 m n
11 10
4 7 3 6
10 9 8 7 6
840
3 2 6
6
Thus, f x 840x 3 1 x
7 1
= 840x 4 1 1 x
7 1
x 41 1 x
4, 7
1
[ 840 just obtained above in this example]
4, 7
m = 4, n = 7
m 4 4
Mean = ,
m n 4 7 11
mn
and Variance = 2
m n m n 1
47
2
4 7 4 7 1
28 7 7
12112 121 3 363
Now, you can try the following exercises.
E4) Using beta function, prove that
1
2 3
60x 1 x
0
dx 1
78
Gamma and Beta
16.5 BETA DISTRIBUTION OF SECOND KIND Distributions
Let us now define beta distribution of second kind.
Definition: A random variable X is said to follow beta distribution of second
kind with parameters m > 0, n > 0 if its probability density function is given
by
x m 1
mn
, 0x
f x m, n 1 x
0, elsewhere
x m 1
Remark 6: It can be verified that m, n 1 x mn
dx 1
0
Verification:
x m 1 1 x m 1
m, n 1 x dx dx
0
m n
m, n 0 1 x m n
x m-1
mn
dx is another form
0 1+x
1 of beta function.
m, n
m, n
(see Sec. 16.2 of this Unit)
=1
f x dx 1
0
79
Continuous Probability
Distributions kx 3
1 x dx 1
0
7
x 4 1
k 4 3
dx 1
0 1 x
k 4, 3 1
1 7 6 6 5 4
k 60
4,3 4 3 3 2 2
Here m = 4, n = 3
m 4 4
Mean = 2
n 1 3 1 2
m m n 1 4(4 3 1) 46
Variance = 2
2
6
n 1 n 2 (3 1) 3 2 4 1
E7) Obtain mean and variance for the beta distribution whose density is given
by
60x 2
f x 7
,0 x
1 x
16.6 SUMMARY
The following main points have been covered in this unit:
1) A random variable X is said to follow gamma distribution with
parameters r > 0 and > 0 if its probability density function is given by
r ex x r 1
, x0
f x r
0, elsewhere
1 m 1 n 1
m, n x 1 x , 0 x 1
f x
0, otherwise
m mn
Its mean and variance are and 2
, respectively.
mn m n m n 1
5) A random variable X is said to follow beta distribution of second kind
with parameters m > 0, n > 0 if its probability density function is given by:
x m 1
mn
,0 x
f x m, n 1 x
0, elsewhere
m m m n 1
Its Mean and Variance are , n 1; and 2
,n 2
n 1 n 1 n 2
respectively.
6) Exponential distribution is a particular case of gamma distribution and
continuous uniform distribution is a particular case of beta distribution.
16.7 SOLUTIONS/ANSWERS
1 1 1
1 1 2 3
1 x 2 dx B
3
E1) (i) x 1, 1 B ,
0 3 2 3 2
1 1
2 11 5 6 1
(ii) x 1 x dx x 1 x
0 0
dx
5
E2) e x .x 5/ 2 dx 1
0 2
7
2
81
Continuous Probability
Distributions 5 5 5 3 3 5 3 1 1
2 2 2 2 2 2 2 2 2
Result 1on gamma
function (See Sec. 16.2)
5 3 1
Result 3 on gamma function
2 2 2
15
8
1 10
(ii) x 1 x
0
dx = β(1 + 1, 10 + 1)
= β(2,11)
=
1!10 ! [Result 2 on gamma function]
12 !
=
10 ! =
1
1
12 1110 ! 12 11 132
1
x 1 1
(iii) 0 2 e dx 2 1 2
x
E3) Here = 2, r = 4.
r ex .x r 1
f (x) ,x 0
r
24.e2x .x 3
,x 0
4
16e2x .x 3
= ,x 0
3
8
= x 3e 2x , x 0
3
r 4
Mean = 2,
2
r 4
Variance = 2
2 1
2
1 1
3 4 1
E4) 60x 2 1 x dx 60 x 31 1 x dx 60 3, 4
0 0
82
34 2 3 60 2 3 2 Gamma and Beta
= 60 = 60 1 Distributions
7 6 6 5 4 3 2
1 1 1
E5) kx 2
1 x 2 dx 1
0
1 1
k 1, 1 1
2 2
1 2 1 2 2
k
1 3
, 1 3 1
1
2 2 2 2 2 2
Now, as the given p.d.f. of beta distribution of first kind is
2 12 1
f (x) x 1 x 2 , 0 x 1
1 3
1 1
x2 1 x 2
, 0 x 1
1 3
,
2 2
1 3
m , n
2 2
1
m 1
and hence mean = 2
mn 1 3 4
2 2
mn
Variance = 2
m n m n 1
1 3 3
3 1
2
2 4
2
2
1 3 1 3 2 3 4 4 3 16
1
2 2 2 2
x3 x 4 1
E6) 1 x 13/ 2
dx 5
dx
4
0 0 1 x 2
5 5
4 3
5 2 2
= 4,
2 5 13
4 2
2
5
6
2 6 32 64
=
13 11 9 7 5 5 13 11 9 7 5 15015
. . . .
2 2 2 2 2 2
83
Continuous Probability
Distributions 60x 2
E7) f x 7
,0 x
1 x
60x 31
3 4
,0 x
1 x
x 31 34 23 1
3 4
, 0x 3, 4
3, 4 1 x 6 6 60
m =3, n = 4
m 3
Hence, mean = 1
n 1 4 1
m m n 1 3 3 4 1 3 6
Variance = 2
= 2
= 1.
n 1 n 2 4 1 4 2 9 2
84