Gamma Distribution
The exponential distribution gives the distribution of waiting time until the first event occurs. What if we are interested in the waiting time until the third event? The distribution of such a variable is given by the Gamma distribution.
As with the exponential distribution, the Gamma distribution can be derived from the Poisson distribution. Say we are interested in the waiting time until the -th event. The probability that we have to wait at least units of time is
The event implies that fewer than events occurred in the interval . Therefore,
Putting this back in and differentiating gives
which is the density function of the Gamma distribution.