01 / 20
\(r\)-th ✓

Geometric &
Negative Binomial Distributions

Learn how to model the number of trials needed for success in repeated independent experiments using two fundamental discrete probability distributions.

AP Statistics

What Are Bernoulli Trials?

Both distributions are built on Bernoulli trials: a sequence of independent experiments where each trial has exactly two outcomes: success (with probability \( p \)) or failure (with probability \( q = 1 - p \)).

✓ Success
Probability \( p \) on every trial, constant and independent
✕ Failure
Probability \( q = 1 - p \), complementary to success

The Core Question We Ask

Instead of asking "how many successes in \( n \) trials?" (that is the binomial distribution), we flip the question:

Geometric
How many trials until the first success?
Negative Binomial
How many trials until the \( r \)-th success?

Visualizing Trial Sequences

Geometric: First success on trial 4 F 1 F 2 F 3 S 4
\( X = 4 \)
Negative Binomial: 3rd success on trial 7 F 1 F 2 S 3 F 4 F 5 S 6 S 7
\( X = 7 \)

The Geometric Distribution: PMF

Let \( X \) be the number of trials until the first success. Then \( X \) follows a geometric distribution with parameter \( p \):

1
First \( k - 1 \) trials must all be failures: probability \( (1-p)^{k-1} \)
2
The \( k \)-th trial must be a success: probability \( p \)
3
Multiply because all trials are independent

Geometric PMF: \( p = 0.3 \)

0 0.1 0.2 0.3 1 .300 2 .210 3 .147 4 .103 5 .072 6 .050 7 8 9 k (trial number)
\( P(X = k) \)

Mean & Variance of Geometric

Expected Value
$$ E[X] = \frac{1}{p} $$
Variance
$$ \text{Var}(X) = \frac{1-p}{p^2} $$

The Negative Binomial: PMF

Let \( X \) be the number of trials to achieve the \( r \)-th success. Then:

1
The \( k \)-th trial must be the \( r \)-th success (probability \( p \))
2
Among the first \( k-1 \) trials, exactly \( r-1 \) are successes: \( \binom{k-1}{r-1} \) arrangements
3
Multiply: \( r \) successes contribute \( p^r \), and \( k-r \) failures contribute \( (1-p)^{k-r} \)

Mean & Variance of NegBin

Expected Value
$$ E[X] = \frac{r}{p} $$
Variance
$$ \text{Var}(X) = \frac{r(1-p)}{p^2} $$

Geometric vs Negative Binomial

Geometric Negative Binomial
Question Trials to 1st success Trials to \( r \)-th success
Parameters \( p \) \( r, p \)
Support \( k = 1, 2, 3, \ldots \) \( k = r, r+1, \ldots \)
PMF \( (1-p)^{k-1} p \) \( \binom{k-1}{r-1} p^r (1-p)^{k-r} \)
Mean \( 1/p \) \( r/p \)
Variance \( (1-p)/p^2 \) \( r(1-p)/p^2 \)
Memoryless? Yes No

How to Apply These Distributions

1
Identify the "success" event and confirm each trial is independent with constant probability \( p \).
2
Determine \( r \): are you waiting for the 1st success (geometric) or the \( r \)-th success (negative binomial)?
3
Write the PMF and substitute values. Check that \( k \ge r \).
4
Compute. For "at least" or "at most" questions, use the CDF or complement rule: \( P(X > k) = (1-p)^k \) for geometric.
5
Sanity-check: does the answer make sense given \( E[X] = r/p \)?

Example 1: Rolling a Six

You roll a fair die repeatedly. What is the probability that the first six appears on the 4th roll?

1
Identify: "success" = rolling a 6, so \( p = 1/6 \), \( q = 5/6 \). This is geometric (\( r = 1 \)).
2
Apply PMF: \( P(X = 4) = (5/6)^{3} \cdot (1/6) \)
3
Compute: \( = \frac{125}{216} \cdot \frac{1}{6} = \frac{125}{1296} \approx 0.0965 \)

Example 2: Third Free Throw

A basketball player makes free throws with probability \( p = 0.8 \). What is the probability the 3rd made shot occurs on the 5th attempt?

1
Parameters: \( r = 3 \), \( p = 0.8 \), \( k = 5 \). This is negative binomial.
2
PMF: \( P(X=5) = \binom{4}{2}(0.8)^3(0.2)^2 \)
3
Compute: \( = 6 \times 0.512 \times 0.04 = 6 \times 0.02048 = 0.12288 \)

Example 3: CDF & Complement

A fair coin is tossed repeatedly. What is the probability you need more than 3 tosses to get the first head?

1
Restate: \( P(X > 3) \) where \( X \sim \text{Geo}(0.5) \).
2
Use survival function: \( P(X > k) = (1-p)^k \). So \( P(X > 3) = (0.5)^3 \).
3
Result: \( P(X > 3) = 0.125 = 12.5\% \).

Common Mistakes to Avoid

✕ Off-by-One in Exponent
Writing \( (1-p)^{k} p \) instead of \( (1-p)^{k-1} p \). There are only \( k-1 \) failures before the \( k \)-th trial.
✕ Forgetting the Binomial Coefficient
In the negative binomial PMF, the \( \binom{k-1}{r-1} \) factor counts arrangements of \( r-1 \) successes among the first \( k-1 \) trials. Omitting it drastically underestimates the probability.
✕ Wrong Support Range
For NegBin, \( k \) starts at \( r \), not at 0 or 1. You cannot have the \( r \)-th success before the \( r \)-th trial.

Question 1 of 5

A biased coin has \( P(\text{heads}) = 0.4 \). What is \( P(X = 3) \) where \( X \) is the number of flips to get the first head?

Question 2 of 5

If \( X \sim \text{Geo}(0.2) \), what is \( E[X] \)?

Question 3 of 5

A quality inspector finds defective items with probability \( p = 0.1 \). What is the probability that the 2nd defective item is found on the 8th inspection?

Question 4 of 5

Which property is unique to the geometric distribution among all discrete distributions?

Question 5 of 5

If \( X \sim \text{NegBin}(r=4, p=0.5) \), what are the mean and variance of \( X \)?