
where x is the number of failures before the rth success. I previously remarked that this is not the version that is usually seen in ecology. I derive that version next.

From which it immediately follows that

Plugging these two expressions into the expression for the probability mass function above yields the following.


- The gamma function is defined as follows.
![]()
Although the integrand contains two variables, x and α, x is the variable of integration and will disappear once the integral is evaluated. So the gamma function is solely a function of α.
- The integral defining the gamma function is called an improper integral because infinity appears as an endpoint of integration. It's defined in the following way.
![]()
It turns out this limit is defined for all
.
- Let's calculate the integral for various choices of α. Start with
.

because

- Now if
, but still an integer, the integral in the gamma function will be a polynomial times an exponential function. The standard approach for integrating such integrands is to use integration by parts. Integration by parts is essentially a reduction of order technique—after a finite number of steps the degree of the polynomial is reduced to 0 and the integral that remains to be computed is the same one we calculated for
(but it is multiplied by a number of constants).
- After one round of integration by parts is applied to the gamma function we obtain the following.

where in the last step I recognize that the integral is just the gamma function in which α has been replaced by
. This is an example of a recurrence relation; it allows us to calculate one term in a sequence using the value of a previous term. We can use this recurrence relation to build up a catalog of values for the gamma function.

![]()
and then using our recurrence relation we can evaluate others, such as
![]()
- Step 4 (continued): So using the gamma function we can rewrite the negative binomial probability mass function as follows.

J. Wel's elephants
where I've chosen to leave x! alone just to remind us that x is the value whose probability we are computing.

- Since x and μ are fixed numbers it follows that terms of the form
.
since this term does not depend on θ.
a result we've used before.

which we recognize as the probability mass function of a Poisson random variable. Thus a Poisson random variable is a special case of a negative binomial random variable when θ is allowed to become infinite. This is further evidence of the flexibility of the negative binomial distribution since there are infinitely many other choices for θ that yield something other than a Poisson distribution.

, this represents a parabola opening up that crosses the μ-axis at the origin and at the point 
Make the substitution q = 1 – p. Then this formula becomes

The last line states what's called the negative binomial theorem. It is the analog of the ordinary binomial theorem which for positive integer values of r is the following.





![]()
or for continuous distributions by integration.

We'll pursue this argument further next time.
| Jack Weiss Phone: (919) 962-5930 E-Mail: jack_weiss@unc.edu Address: Curriculum in Ecology, Box 3275, University of North Carolina, Chapel Hill, 27516 Copyright © 2006 Last Revised--August 8, 2008 URL: http://www.unc.edu/courses/2006spring/ecol/145/001/docs/lectures/lecture5.htm |