The text contains tables of cumulative binomial and poisson probabilities.
Alternatively, one can produce the tables with a spreadsheet program.
The spreadsheet Tables.xls contains the cumulative binomial probabilities for n=15 and the cumulative Poisson probabilities table in the text extended to x=40.
The objective of this project is to produce a spreadsheet that can serve as a table for the geometric, negative binomial, and hypergeometric distributions (for which there are no tables in the text).
In the special case of r=1, this is called a Geometric distribution. In this case, we conduct Bernoulli trials until the first success, and set X equal to the number of failures that precede the first success. An example would be tossing a coin until the first heads. In this case, X would be the number of tails that precede the first heads.
If r>1, it is called a Negative Binomial distribution. In this case, we conduct Bernoulli trials until we obtain r success, and set X equal to the number of failures that precede the rth success. An example would be tossing a coin until the third time it comes up heads. In this case, X would be the number of tails that precede the third heads.
For both the negative binomial and geometric distributions, the sample space S is the set of nonnegative integers: 0,1,2,3,4,. . . .
Your spreadsheet should contain:
Your spreadsheet should be designed so that you can change the values of p and r and have the other cells recalculate automatically (i.e., the arguments to the BINOMDIST function for the number of successes required and the probability of success on each trial should be references to the cells containing r and p.
If you use excel you can use the NEGBINOMDIST function for both the geometric and negative binomial distributions. If you use GNUMERIC, you should use GEOMDIST for the geometric and NEGBINOMDIST for the negative binomial (GNUMERIC is an excellent free spreadsheet program from the Free Software Foundation at MIT).
Unlike BINOMDIST, NEGBINOMDIST does not have a "cumulative" option, so you will have to compute this with a formula.
The hypergeometric distribution arises when we select n individuals from a finite population.
It also applies to capture-recapture methods for estimating population sizes. A certain number (M) of individuals are captured, tagged, and released. Now we have a population of N individuals, M of which are tagged. Some time later, a sample of n individuals is captured and the number with tags is recorded as X. The objective is usually to estimate N.
The sample space for X is the set of integers from zero to n, inclusive: 0,1,2,. . .,n Your spreadsheet should contain:
As with the negative binomial distribution, your spreadsheet should recalculate everything when you change n, N, or M.