The gamma distribution is important in many statistical applications. This post discusses the connections of the gamma distribution with Poisson distribution. The following is the probability density function of the gamma distribution.

The numbers and , both positive, are fixed constants and are the parameters of the distribution. The symbol is the gamma function. This density function describes how the potential gamma observations distribute across the positive x-axis. Baked into this gamma probability density function are two pieces of information about the Poisson distribution. We can simply read off the information from the parameters and in the density function.

**Poisson-Gamma Mixture**

For a reason that will be given shortly, the parameters and in (1) gives a negative binomial distribution. The following is the probability function of this negative binomial distribution.

If the parameter is a positive integer, then (2) has a nice interpretation in the context of a series of independent Bernoulli trials. Consider performing a series of independent trials where each trial has one of two distinct outcomes (called success or failure). Assume that the probability of a success in each trial is . In this case, the quantity in (2) is the probability of having failures before the occurrence of the th success.

Note that when is a positive integer, the binomial coefficient has the usual calculation . When is not an integer but is only a positive number, the binomial coefficient is calculated as follows:

For this new calculation to work, does not have to be a positive integer. It only needs to be a positive real number. Then the distribution in (2) does not have a natural interpretation in terms of performing a series of independent Bernoulli trials. It is simply a counting distribution, i.e. a random discrete variable modeling the number of occurrences of a type of random events.

What does this have to do with gamma distribution and Poisson distribution? When a conditional random variable has a Poisson distribution such that its mean is an unknown random quantity but follows a gamma distribution with parameters and as described in (1), the unconditional distribution for has a negative binomial distribution as described in (2). In other words, the mixture of Poisson distributions with gamma mixing weights is a negative binomial distribution.

There is an insurance interpretation of the Poisson-gamma mixture. Suppose that in a large pool of insureds, the annual claim frequency of an insured is a Poisson distribution with mean . The quantity varies from insured to insured but is supposed to follow a gamma distribution. Here we have a family of conditional Poisson distributions where each one is conditional on the characteristics of the particular insured in question (a low risk insured has a low value and a high risk insured has a high value). The “average” of the conditional Poisson distributions will be a negative binomial distribution (using the gamma distribution to weight the parameter ). Thus the claim frequency for an “average” insured in the pool should be modeled by a negative binomial distribution. For a randomly selected insured from the pool, if we do not know anything about this insured, we can use the unconditional negative binomial distribution to model the claim frequency.

A detailed discussion of the negative binomial distribution is found here and here. The notion of mixture distributions and Poisson-gamma mixture in particular are discussed here. Many distributions applicable in actuarial applications are mixture distributions (see here for examples).

**Waiting Times in a Poisson Process**

The parameter in (1) is called the shape parameter while the parameter is called the rate parameter. The name of rate parameter will be made clear shortly. For this interpretation of gamma distribution to work, the shape parameter must be a positive integer.

The gamma distribution as described in (1) is intimately connected to a Poisson process through the rate parameter . In a Poisson process, event of a particular interest occurs at random at the rate of per unit time. Two questions are of interest. How many times will this event occur in a given time interval? How long do we have to wait to observe the first occurrence, the second occurrence and so on? The gamma distribution as described in (1) gives an answer to the second question when is a positive integer.

A counting process is a random experiment that observes the random occurrences of a certain type of events of interest in a time period. A Poisson process is a counting process that satisfies three simplifying assumptions that deal with independence and uniformity in time.

A good example of a Poisson process is the well known experiment in radioactivity conducted by Rutherford and Geiger in 1910. In this experiment, -particles were emitted from a polonium source and the number of -particles were counted during an interval of 7.5 seconds (2,608 many such time intervals were observed). In these 2,608 intervals, a total of 10,097 particles were observed. Thus the mean count per period of 7.5 seconds is 10097 / 2608 = 3.87. In this experiment, -particles are observed at a rate of 3.87 per unit time (7.5 seconds).

In general, consider a Poisson process with a rate of per unit time, i.e. the event that is of interest occurs at the rate of per unit time. There are two random variables of interest. One is which is the number of occurrences of the event of interest from time 0 to time . The other is which is the waiting time until the th occurrence of the event of interest where is a positive integer.

What can we say about the random variables ? First, the random variable , the number of occurrences of the event of interest in a unit time interval, has a Poisson distribution with mean . The following is the probability function.

For any positive real number , the random variable , which is a discrete random variable, follows a Poisson distribution with mean . The following is the probability function.

For a more detailed discussion of why and are Poisson, see here.

We now discuss the distributions for and . The random variable would be the mean time to the first occurrence. It has an exponential distribution with mean . The following is the probability density function.

The random variable has a gamma distribution with shape parameter and rate parameter . The following is the probability density function.

The density functions in (5) and (6) are derived from the Poisson distributions in (3) and (4). For example, for (the first occurrence taking place after time ) to happen, there is no occurrence in the time interval . Thus . Note that is a Poisson random variable with mean . The following derives the density function in (5).

Note that the cumulative distribution function is that for an exponential distribution. Taking the derivative gives the density function in (5). Extending the same reasoning, for (the th occurrence taking place after time ) to happen, there must be at most occurrences in the time interval . Once again, we are relating to the Poisson random variable . More specifically .

Taking the derivative of (8) gives the density function in (6). See here for a more detailed discussion of the relation between gamma distribution and Poisson distribution in a Poisson process.

**Evaluating Gamma Survival Function**

The relation (7) shows that the gamma survival function is the cumulative distribution function (CDF) of the corresponding Poisson distribution. Consider the following integral.

The integrand in the above integral is the density function of a gamma distribution (with the shape parameter being a positive integer). The limits of the integral are from to . Conceptually the integral is identical to (7) since the integral gives , which is the survival function of the gamma distribution in question. According to (7), the integral in (9) has a closed form as follows.

The above is a combination of (7) and (9) and is a way to evaluate the right tail of the gamma distribution when the shape parameter is a positive integer . Instead of memorizing it, we can focus on the thought process.

Given the integral in (9), note the shape parameter and the rate parameter . Consider a Poisson process with rater parameter . In this Poisson process, the random variable , the number of occurrences of the event of interest in a unit time interval, has a Poisson distribution with mean . The random variable , the number of occurrences of the event of interest in a time interval of length , has a Poisson distribution with mean . Then the integral in (9) is equivalent to , the probability that there are at most occurrences in the time interval .

The above thought process works even if the gamma distribution has no relation to any Poisson process, e.g. it is just the model for size of insurance losses. We can still pretend there is a Poisson relationship and obtain a closed form evaluation of the survival function. It must be emphasized that this evaluation of the gamma survival function in closed form is possible only when the shape parameter is a positive integer. If it is not, we then need to evaluate the gamma survival function using software.

**Remarks**

The discussion here presents two relationships between the gamma distribution and the Poisson distribution. In the first one, mixing conditional Poisson distributions with gamma mixing weights produces a negative binomial distribution. Taking the shape parameter and rate parameter in (1) produces the negative binomial distribution as in (2). This is one interpretation of the two gamma parameters.

In the second interpretation, the rate parameter of the gamma model is intimately tied to the rate parameter of a Poisson process. The interplay between the number of occurrences of the event of interest and the waiting time until the th occurrence connects the gamma distribution with the Poisson distribution. For a fuller discussion of this interplay, see here.

The gamma distribution is mathematically derived from the gamma function. See here for an introduction to the gamma distribution.

The three assumptions for a Poisson process that are alluded to above allow us to obtain a binomial distribution when dividing a time interval into subintervals (for a sufficiently large ). As the subintervals get more and more granular, the binomial distributions have Poisson distribution as the limiting distribution. The derivation from binomial to Poisson is discussed here, here and here.

Practice problems can be found here in a companion blog for practice problems.

**Dan Ma gamma distribution**

**Dan Ma Poisson distribution**

**Dan Ma math**

**Daniel Ma gamma distribution**

**Daniel Ma mathematics**

**Daniel Ma Poisson distribution**

2018 – Dan Ma

Pingback: Practice Problem Set 2 – Poisson and Gamma | Probability and Statistics Problem Solve

Pingback: Practice Problem Set 3 – The Big 3 Discrete Distributions | Probability and Statistics Problem Solve

Pingback: Negative binomial distribution – A World of Ideas