The Geometric & Negative Binomial Distributions
Independent repeated Bernoulli trials — each a success with probability , a failure with probability — raise a question the binomial does not answer: not how many successes in a fixed number of trials, but how long until a success. The geometric distribution (Definition 12.9) answers the first version: is the trial on which the first success occurs, with probability mass function for — the price of failures followed by one success. Its masses form a geometric series summing to , and its tail has a clean closed form (all of the first trials fail), so ; Example 12.10 uses this to find the chance of needing more than seven rolls of a fair die for the first six, . The negative binomial distribution (Definition 12.10) generalises the idea to the trial of the -th success: has for , the coefficient counting the arrangements of the earlier successes among the first trials. Remark 12.4 ties the two together: the geometric is exactly .
Before you start — give these a try
Attempting first primes your brain for the lesson — even if you miss. Nothing is graded or saved; it's just a warm-up.
A fair die is rolled; let be the roll of the first six. Find , the probability that it takes more than three rolls to get the first six. Give your answer as a decimal to places.
True or false: the geometric distribution is the special case of the negative binomial distribution.
What you’ll be able to do
- State Definition 12.9: is the trial of the first success, with p.m.f. for , and explain the factor as failures followed by one success.
- Verify that the geometric masses sum to via the geometric series , and compute individual probabilities .
- Derive and apply the geometric tail and c.d.f. , reproducing Example 12.10 ( for a fair die).
- State Definition 12.10: is the trial of the -th success, with for , and interpret combinatorially.
- Use Remark 12.4 to recognise the geometric distribution as the special case , and compute negative binomial probabilities for small and .
In your course
· MATH2015 · Linear Algebra & Probability- Definition 12.9Geometric distribution() is the trial of the first success: ,
- Example 12.10More than seven rolls for the first sixFor , (the first seven rolls all fail).
- Definition 12.10Negative binomial distribution(, ) is the trial of the -th success: ,
- Remark 12.4Geometric as a negative binomial: the geometric counts trials until the first success.
The geometric distribution: waiting for the first success
Run independent Bernoulli() trials — each a success with probability and a failure with probability — and let be the trial on which the first success occurs. For , the first trials must all fail and the -th must succeed; by independence these multiply: This is Definition 12.9, written with . The possible values start at — at least one trial is needed — and run through all positive integers, so unlike the binomial the geometric is a genuinely infinite discrete distribution. The masses decay by the constant factor at each step, , yet still account for all the probability, because the total is a geometric series:
The tail $\mathbb{P}\{X>k\}=(1-p)^k$ and the c.d.f.
The geometric has an unusually clean tail probability. The event says the first success has not happened by trial — equivalently, the first trials are all failures. By independence that is just (The same value drops out of the series , but the 'all fail' reading is faster and more memorable.) The complementary event — the first success arrives on or before trial — therefore has cumulative distribution function These two formulas settle most geometric questions without summing anything: 'more than ', 'at least ', and 'within the first ' all collapse to a single power of . For instance .
The negative binomial distribution: waiting for the $r$-th success
Now wait longer: let be the trial on which the -th success occurs in the same stream of independent Bernoulli() trials. For , two things must hold. The -th trial is a success (the -th and last one we count), and among the first trials there are exactly successes (hence failures). One specific such pattern has probability over the first trials times on the last, i.e. ; and there are ways to choose which of the first trials carry the early successes. Multiplying, This is Definition 12.10, written with and . The support starts at : you cannot gather successes in fewer than trials. Note the coefficient is , not — the final trial is pinned as a success, so only the first trials are free to be arranged.
Geometric as $\mathrm{NegBin}(1,p)$, and how the two compare
Setting recovers the geometric exactly. With a single success to wait for, and the negative binomial mass becomes — the geometric p.m.f. This is Remark 12.4: . Conceptually the negative binomial is a sum of waits: the trial of the -th success is the wait to success , plus the wait from there to success , and so on — independent geometric waits laid end to end. Two cautions keep the formulas straight. First, mind the support: geometric values begin at , negative binomial values at . Second, mind the convention: here is the trial number of the -th success, so the exponent on is (the number of failures). Some books and software instead let the variable count only the failures before the -th success (values ); the two differ by the shift , and mixing them is the most common source of error.
Let . A random variable has the geometric distribution with success parameter , written , if It models the trial on which the first success occurs in independent Bernoulli() trials.
Let and . A random variable has the negative binomial distribution with parameters and , written , if It models the trial on which the -th success occurs.
The geometric distribution is the special case of the negative binomial: , where one counts trials until the first success.
Worked examples
Geometric p.m.f. A biased coin lands heads with probability on each independent toss. Let be the toss on which the first head appears, so . Find (decimal to places).
- 1
Identify the model. counts trials until the first success with , so and .
- 2
Read off what requires. The first head on toss means tosses and are tails and toss is heads: two failures, then a success.
- 3
Substitute .
- 4
Compute.
Example 12.10. What is the probability that it takes more than seven rolls of a fair die to get the first six? Let be the roll of the first six, so ; find (decimal to places).
Negative binomial p.m.f. A fair die is rolled repeatedly; let be the roll on which the second six appears, so . Find (decimal to places).