Virtual Laboratories > The Poisson Process > 1 2 [3] 4 5 6 7 8

3. The Gamma Distribution


The Density Function

We now know that the interarrival times X1, X2, ... are continuous, independent random variables, each having the exponential probability density function:

f(t) = re-rt, t 0.

The k'th arrival time is simply the sum of the first k interarrival times:

Tk = X1 + X2 + ··· + Xk.

Therefore, the k'th arrival time is a continuous random variable and its density function is the k-fold convolution of f.

Mathematical Exercise 1. Show that the density function of the k'th arrival time is

fk(t) = (rt)k - 1re-rt / (k - 1)!, t > 0.

This distribution is the gamma distribution with shape parameter k and rate parameter r. Again, 1 / r is knows as the scale parameter. A more general version of the gamma distribution, allowing non-integer k, is studied in the chapter on Special Distributions.

Note that since the arrival times are continuous, the probability of an arrival at any given instant of time is 0. Thus, we can also interpret Nt as the number of arrivals in (0, t).

Simulation Exercise 2. In the gamma experiment, vary r and k with the scroll bars and watch how the shape of the density function changes. Now set r = 2 and k = 3, run the experiment 1000 times with an update frequency of 10, and watch the apparent convergence of the empirical density function to the true density function.

Mathematical Exercise 3. Sketch the graph of the density function in Exercise 1. Show that the mode of the distribution occurs at (k - 1) / r.

Mathematical Exercise 4. Suppose that customers arrive at a service station according to the Poisson model, at a rate of r = 3 per hour. Relative to a given starting time, find the probability that the second customer arrives sometime after 1 hour.

Mathematical Exercise 5. Defects in a type of wire follow the Poisson model, with rate 1 per 100 meter. Find the probability that the 5'th defect is located between 450 and 550 meters.

Moments

The mean, variance, and moment generating function of Tk can be found using basic properties and known results for the exponential distribution

Mathematical Exercise 6. Show that E(Tk) = k / r.

Mathematical Exercise 7. Show that var(Tk) = k / r2.

Simulation Exercise 8. In the gamma experiment, vary r and k with the scroll bars and watch how the size and location of the mean/standard deviation bar changes. Now set r = 2 and k = 3, run the experiment 1000 times with an update frequency of 10, and watch the apparent convergence of the empirical moments to the true moments.

Mathematical Exercise 9. Show that E[exp(uTk)] = [r / (r - u)]k for u < r.

Mathematical Exercise 10. Suppose that requests to a web server follow the Poisson model with rate r = 5 per minute. Relative to a given starting time, compute the mean and standard deviation of the time of the 10th request.

Mathematical Exercise 11. Suppose that Y has a gamma distribution with mean 40 and standard deviation 20. Find k and r.

Sums of Independent Gamma Variables

Mathematical Exercise 12. Suppose that V has the gamma distribution with shape parameter j and rate parameter r, that W has the gamma distribution with shape parameter k and rate parameter r, and that V and W are independent. Show that V + W has the gamma distribution with shape parameter j + k and rate parameter r.

  1. Give an analytic proof, using moment generating functions.
  2. give a probabilistic proof, based on the Poisson process.

Normal Approximation

Simulation Exercise 13. In the gamma experiment, vary r and k with the scroll bars and watch how the shape of the density function changes. Now set r = 2 and k = 5, run the experiment 1000 times with an update frequency of 10, and watch the apparent convergence of the empirical density function to the true density function.

Even though you are restricted to k being 5 or less, note that the density function of the k'th arrival time becomes more bell shaped as k increases (for r fixed). This is yet another application of the central limit theorem, since the k'th arrival time is the sum of k independent, identically distributed random variables (the interarrival times).

Mathematical Exercise 14. Use the central limit theorem to show that the distribution of the standardized variable below converges to the standard normal distribution as k increases to infinity

(Tk - k / r) / (k1/2 / r) = (rTk - k) / k1/2.

Simulation Exercise 15. In the gamma experiment, set k = 5 and r = 2. Run the experiment 1000 times, updating after every run. Compute and compare the following:

  1. P(1.5 T5 3)
  2. The relative frequency of the event {1.5 T5 3}
  3. The normal approximation to (1.5 T5 3).

Mathematical Exercise 16. Suppose that accidents at an intersection occur according to the Poisson model, at a rate of 8 per year. Compute the normal approximation to the event that the 10'th accident (relative to a given starting time) occurs within 2 years.

Estimating the Rate

In many practical situations, the rate r of the process in unknown and must be estimated based on observing the arrival times.

Mathematical Exercise 17. Show that E(Tk / k) = 1 / r and hence Tk / k is an unbiased estimator of 1 / r.

Since the estimator is unbiased, the variance measures the mean square error of the estimator.

Mathematical Exercise 18. Show that var(Tk / k) = 1 / (kr2) and hence var(Tk / k) decreases to 0 as k increases to infinity.

Note that Tk / k = (X1 + X2 + ··· + Xk) / k where Xi is the i'th interarrival time. Hence our estimator of 1 / r can be interpreted as the sample mean of the interarrival times. A natural estimator of the rate itself is k / Tk. However, this estimator tends to overestimate r.

Mathematical Exercise 19. Use Jensen's inequality to show that E(k / Tk) >= r.

Mathematical Exercise 20. Suppose that requests to a web server follow the Poisson model. Starting at 12:00 noon on a certain day, the requests are logged. The 100'th request comes at 12:15. Estimate the rate of the process.