Section 8.4 Gamma Distribution
Extending the exponential distribution model developed above, consider a Poisson Process where you start with an interval of variable length X so that X measures the interval needed in order to obtain the rth success for some natural number r. Then \(R = (0,\infty)\) and the resulting distribution of X will be called a Gamma distribution.
Definition 8.4.1. Gamma Function.
Theorem 8.4.2. Gamma Function on the natural numbers.
For \(n \in \mathbb{N}\text{,}\)
Proof.
Letting n be a natural number and applying integration by parts one time gives
Continuing using an inductive argument to obtain the final result.
To find the probability function for the gamma distribution, once again focus on the development of F(x). Assuming r is a natural number greater than 1 and noting that X measures the interval length needed in order to achieve the rth success
where the discrete Poisson probability function is used on the interval [0,x]. The derivative of this function however is "telescoping" and terms cancel. Indeed,
where you can replace \((r-1)! = \Gamma(r)\text{.}\)
Notice that for this random variable, \(\mu = \lambda T\) can be obtained for the exponential distribution. For the Gamma distribution, the following takes \(\mu\) to be the average interval till the first success and then modifies the corresponding Gamma parameters according to increasing values of r.
So, to summarize, you get the Gamma Probability Function below.
Definition 8.4.3. Gamma Probability Function.
If X measures the interval until the rth success and \(\mu\) as the average interval until the 1st success, then X with probability function
has a Gamma Distribution.
Checkpoint 8.4.4.
Example 8.4.5. Router Requests Revisited Again.
For the third time, let's consider a router which, over time, has been shown to receive on average 1000 requests in any given 10 minute period during regular working hours and you want to know the likelihood that it takes more than 4 seconds in order to receive the 5th request. As you have already seen, it takes on average \(\frac{10}{1000} = \frac{1}{100} = 0.01\) minutes to receive the first request so we use that again here. If X were to measure the time interval until the fifth actual request comes in, then the Gamma distribution would be a good model using
The question above asks for
Therefore
Again, since X is a continuous variable you must integrate to compute probabilities. This will require integration by parts or you can use the F(x) from the derivation above. Here, let's just let Sage do the integration for us noting that \(\Gamma(5) = 4! = 24\text{.}\) You can compute the needed integral using the interactive cell immediately below.
Theorem 8.4.6. Verify Gamma Probability function.
Proof.
This is kind of a tough integral to do. Let's just evaluate the sage code below.
You can graph the gamma distribution's probability function for various parameters below. Notice as r increases the curve becomes increasingly bell-shaped whicle changing the mean only shifts the curve around.
Theorem 8.4.7. Properties of the Gamma Distribution.
For the gamma distribution from an underlying Poisson process with mean \(\lambda\text{,}\)
Proof.
Derivation of mean, variance, skewness, and kurtosis. Pick "alpha" for the general formulas.
The interactive cell below can be used to compute the distribution function for the gamma distribution for various input values. If you desire to let r get bigger than the slider allows, feel free to edit the cell above and evaluate again.