This post shows how to work with negative binomial distribution from an actuarial modeling perspective. The negative binomial distribution is introduced as a Poisson-gamma mixture. Then other versions of the negative binomial distribution follow. Specific attention is paid to the thought processes that facilitate calculation involving negative binomial distribution.
Negative Binomial Distribution as a Poisson-Gamma Mixture
Here’s the setting for the Poisson-gamma mixture. Suppose that has a Poisson distribution with mean and that is a random variable that varies according to a gamma distribution with parameters (shape parameter) and (rate parameter). Then the following is the unconditional probability function of .
The distribution described in (1) is one parametrization of the negative binomial distribution (derived here). It has two parameters and (coming from the gamma mixing weights). The following is another parametrization.
The distribution described in (2) is obtained when the gamma mixing weight has a shape parameter and a scale parameter . Since the gamma scale parameter and rate parameter is related by , (2) can be derived from (1) by setting .
Both (1) and (2) contain the ratio that is expressed using the gamma function. The next task is to simplify the ratio using a general notion of binomial coefficient.
The Poisson-gamma mixture is discussed in this blog post in a companion blog called Topics in Actuarial Modeling.
General Binomial Coefficient
The familiar binomial coefficient is the following:
where the top number is a positive integer and the bottom number is a non-negative integer such that . Other notations for binomial coefficient are , and . The right hand side of the above expression can be simplified by canceling out .
The expression in (4) is obtained by canceling out in (3). Note that does not have to be an integer for the calculation in (4) to work. The bottom number has to be a non-negative number since is involved. However, can be any positive real number as long as .
Thus the expression in (4) gives a new meaning to the binomial coefficient where is a positive real number and is a non-negative integer such that .
For example, and . The thought process is that the numerator is obtained by subtracting 1 times from . If , this thought process would not work. For convenience, when is a positive real number.
We now use the binomial coefficient defined in (5) to simplify the ratio where is a positive real number and is a non-negative integer. We use a key fact about gamma function: . Then for any integer , we have the following derivation.
The right hand side of the above expression is precisely the binomial coefficient when . Thus we have the following relation.
where is an integer with .
Negative Binomial Distribution
With relation (6), the two versions of Poisson-gamma mixture stated in (1) and (2) are restated as follows:
The above two parametrizations of negative binomial distribution are used if information about the Poisson-gamma mixture is known. In (7), the gamma distribution in the Poisson-gamma mixture has shape parameter and rate parameter . In (8), the gamma distribution has shape parameter and scale parameter . The following is a standalone version of the binomial distribution.
In (9), the negative binomial distribution has two parameters and where . In this parmetrization, the parameter is simply a real number between 0 and 1. It can be viewed as a probability. In fact, this is the case when the parameter is an integer. Version (9) can be restated as follows when is an integer.
In version (10), the parameters are (a positive integer) and a real number with . Since is an integer, the usual binomial coefficient appears in the probability function.
Version (10) has a natural interpretation. A Bernoulli trial is an random experiment that results in two distinct outcome – success or failure. Suppose that the probability of success is in each trial. Perform a series of independent Bernoulli trials until exactly successes occur where is a fixed positive integer. Let the random variable be the number of failures before the occurrence of the th success. Then (10) is the probability function for the random variable .
A special case of (10). When the parameter is 1, the negative binomial distribution has a special name.
The distribution in (11) is said to be a geometric distribution with parameter . The random variable defined by (11) can be interpreted as the number of failures before the occurrence of the first success when performing a series of independent Bernoulli trials. Another important property of the geometric distribution is that it is the only discrete distribution with the memoryless property. As a result, the survival function of the geometric distribution is where .
More about Negative Binomial Distribution
The probability functions of various versions of the negative binomial distribution have been developed in (1), (2), (7), (8), (9), (10) and (11). Other distributional quantities can be derived from the Poisson-gamma mixture. We derive the mean and variance of the negative binomial distribution.
Suppose that the negative binomial distribution is that of version (8). The conditional random variable has a Poisson distribution with mean and the random variable has a gamma distribution with a shape parameter and a scale parameter . Note that and . Furthermore, we have the conditional mean and conditional variance
The following derives the mean and variance of .
The above mean and variance are for parametrization in (8). To obtain the mean and variance for the other parametrizations, make the necessary translation. For example, to get (7), plug into the above mean and variance. For (9), let . Then solve for and plug that into the above mean and variance. Version (10) should have the same formulas as for (9). To get (11), set . The following table lists the negative binomial mean and variance.
Version | Mean | Variance |
---|---|---|
(7) | ||
(8) | ||
(9) and (10) | ||
(11) |
The table shows that the variance of the negative binomial distribution is greater than its mean (regardless of the version). This stands in contrast with the Poisson distribution whose mean and the variance are equal. Thus the negative binomial distribution would be a suitable model in situations where the variability of the empirical data is greater than the sample mean.
Modeling Claim Count
The negative binomial distribution is a discrete probability distribution that takes on the non-negative integers . Thus it can be used as a counting distribution, i.e. a model for the number of events of interest that occur at random. For example, the described above can be a good model for the frequency of loss, i,e, the random variable of the number of losses, either arising from a portfolio of insureds or from a particular insured in a given period of time.
The Poisson-gamma model has a great deal of flexibility. Consider a large population of individual insureds. The number of losses (or claims) in a year for each insured has a Poisson distribution with mean . From insured to insured, there is uncertainty in the mean annual claim frequency . However, the random variable varies according to a gamma distribution. As a result, the annual number of claims for an “average” insured or a randomly selected insured from the population will follow a negative binomial distribution.
Thus in a Poisson-gamma model, the claim frequency for an individual in the population follows a Poisson distribution with unknown gamma mean. The weighted average of these conditional Poisson claim frequencies is a negative binomial distribution. Thus the average claim frequency over all individuals has a negative binomial distribution.
The table in the preceding section shows that the variance of the negative binomial distribution is greater than the mean. This is in contrast to the fact that the variance and the mean of a Poisson distribution are equal. Thus the unconditional claim frequency is more dispersed than its conditional distributions. The increased variance of the negative binomial distribution reflects the uncertainty in the parameter of the Poisson mean across the population of insureds. The uncertainty in the parameter variable has the effect of increasing the unconditional variance of the mixture distribution of . Recall that the variance of a mixture distribution has two components, the weighted average of the conditional variances and the variance of the conditional means. The second component represents the additional variance introduced by the uncertainty in the parameter .
We present two examples. More examples to come at the end of the post.
Example 1
For a given insured driver in a large portfolio of insured drivers, the number of collision claims in a year has a Poisson distribution with mean . The Poisson mean follows a gamma distribution with mean 4 and variance 80. For a randomly selected insured driver from this portfolio,
- what is the probability of having exactly 2 collision claims in the next year?
- what is the probability of having at most one collision claim in the next year?
The number of collision claims in a year is a Poisson-gamma mixture and thus is a negative binomial distribution. From the given gamma mean and variance, we can determine the parameters of the gamma distribution. In this example, we use the parametrization of (8). Expressing the gamma mean and variance in terms of the shape and scale parameters, we have and . These two equations give and . The probabilities are calculated based on (8).
The answer for the first question is . The answer for the second question is . Thus there is a closed to 65% chance that an insured driver has at most one claim in a year.
Example 2
For an automobile insurance company, the distribution of the annual number of claims for a policyholder chosen at random is modeled by a negative binomial distribution that is a Poisson-gamma mixture. The gamma distribution in the mixture has a shape parameters of and scale parameter . What is the probability that a randomly selected policyholder has more than two claims in a year?
Since the gamma shape parameter is 1, the unconditional number of claims in a year is a geometric distribution with parameter . The following is the desired probability.
A Recursive Formula
The probability functions described in (1), (2), (7), (8), (9), (10) and (11) describe clearly how the negative binomial probabilities are calculated based on the two given parameters. The probabilities can also be calculated recursively. Let where . We introduce a recursive formula that allows us to compute the value if is known. The following is the form of the recursive formula.
In (12), the numbers and are constants. Note that the formula (12) calculates probabilities for all . It turns out that the initial probability is determined by the constants and . Thus the constants and completely determines the probability distribution represented by . Any discrete probability distribution that satisfies this recursive relation is said to be a member of the (a,b,0) class of distributions.
We show that the negative binomial distribution is a member of the (a,b,0) class of distributions. First, assume that the negative binomial distribution conforms to the parametrization in (8) with parameters and . Then let and be defined as follows:
.
Let the initial probability be . We claim that the probabilities generated by the formula (12) are identical to the ones calculated from (8). To see this, let’s calculate a few probabilities using the formula.
The above derivation demonstrates that formula (12) generates the same probabilities as (8). By adjusting the constants and , the recursive formula can also generate the probabilities in the other versions of the negative binomial distribution. For the negative binomial version (9) with parameters and , the and should be defined as follows:
With the initial probability , the recursive formula (12) will generate the same probabilities as those from version (9).
More Examples
Example 3
Suppose that an insured will produce claims during the next exposure period is
where . Furthermore, the parameter varies according to a distribution with the following density function:
What is the probability that a randomly selected insured will produce more than 2 claims during the next exposure period?
Note that the claim frequency for an individual insured has a Poisson distribution with mean . The given density function for the parameter is that of a gamma distribution with and rate parameter . Thus the number of claims in an exposure period for a randomly selected (or “average” insured) will have a negative binomial distribution. In this case the parametrization (7) is the most useful one to use.
The following calculation gives the relevant probabilities to answer the question.
Summing the three probabilities gives . Then . There is a 19.42% chance that a randomly selected insured will have more than 2 claims in an exposure period.
Example 4
The number of claims in a year for each insured in a large portfolio has a Poisson distribution with mean . The parameter follows a gamma distribution with mean 0.75 and variance 0.5625.
Determine the proportion of insureds that are expected to have less than 1 claim in a year.
Setting and gives and . Thus the parameter follows a gamma distribution with shape parameter and scale parameter . This is an exponential distribution with mean 0.75. The problems asks for the proportion of insured with . Thus the answer is . Thus about 74% of the insured population are expected to have less than 1 claim in a year.
Example 5
Suppose that the number of claims in a year for an insured has a Poisson distribution with mean . The random variable follows a gamma distribution with shape parameter and scale parameter .
One thousand insureds are randomly selected and are to be observed for a year. Determine the number of selected insureds expected to have exactly 3 claims by the end of the one-year observed period.
With this being a Poisson-gamma mixture, the number of claims in a year for a randomly selected insured has a negative binomial distribution. Using (8) and based on the gamma parameters given, the following is the probability function of negative binomial distribution.
The following gives the calculation for .
With , about 149 of the randomly selected insureds will have 3 claims in the observed period.
Example 6
Suppose that the annual claims frequency for an insured in a large portfolio of insureds has a distribution that is in the (a,b,0) class. Let be the probability that an insured has claims in a year.
Given that , and , determine the probability that an insured has no claims in a one-year period.
Given , and , find . Based on the recursive relation (12), we have the following two equations of and .
Solving these two equations gives and . Plugging and into the recursive relation gives the answer.
.
Dan Ma actuarial
Daniel Ma actuarial
Dan Ma math
Dan Ma mathematics
2017 – Dan Ma
Revised Nov 2, 2018.
Pingback: Practice Problem Set 6 – Negative Binomial Distribution « Practice Problems in Actuarial Modeling
Pingback: The big 3 claim frequency models | Topics in Actuarial Modeling
Pingback: Negative binomial distribution – A World of Ideas
Many thanks for your fantastic post on Negative Binomial Distribution. Which material of actuarial has this topic covered in more details? Is it CT3 or CT6. Could you suggest a book covering the topics in your blog, please?