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.
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.
Definition 8.4.3 Gamma Distribution Probability Function
If X measures the interval until the rth success and \(\mu as the average interval until the 1st success\text{,}\) then X with probability function
Theorem 8.4.4 Verify Gamma Probability function
Proof
Evaluate the sage code below.
Derivation of mean, variance, skewness, and kurtosis. Pick "alpha" for the general formulas.
Finally, 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.