A random variable has a gamma distribution with shape parameter and rate parameter if its pdf is given by
(3.1) |
with , where and . We write .
Firstly, with the density is for and so the Exponential distribution is a special case of the Gamma distribution.
We next check that the above is a density. Firstly, , and, secondly,
Substituting , so that gives,
Figure 3.3 (First Link, Second Link) and Figure 3.4 (First Link, Second Link) show the pdf for four different sets of parameters.
Convolution property: When is an integer the Gamma distribution is the distribution of the length of time you have to wait until a total of events have occurred where the time between each event follows an Exponential distribution (see Chapter 8). More generally, the gamma distribution provides a flexible class of pdfs which may describe the distribution of a non-negative variable even when there is no strong probability based justification.
We cannot evaluate the cdf in closed form for a general (non-integer) value of .
A short-cut method for evaluating the moments of the gamma distribution (as well as for the exponential and beta distributions, and others) is to use the unit integrability property of a suitable density; i.e. that , when is a density.
To evaluate the -th moment of a distribution we use the fact that is a density (of a random variable).
So
,
,
.
Lifetimes of batteries (in hours) are believed to independently follow an distribution. You buy a pack of batteries and use them sequentially. Find:
The distribution of the lifetime of the pack.
The expected lifetime of the pack.
The probability that the lifetime of the pack exceeds hours.
Solution.
Let be the lifetime (in hours) of the pack. Then is the sum of the lifetimes of the batteries each of which has an Exponential distribution, thus
The expected lifetime (in hours) is:
The probability that the lifetime exceeds 40 hours is which can be evaluated in R:
Thus .