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.
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 \)).
The Core Question We Ask
Instead of asking "how many successes in \( n \) trials?" (that is the binomial distribution), we flip the question:
Visualizing Trial Sequences
The Geometric Distribution: PMF
Let \( X \) be the number of trials until the first success. Then \( X \) follows a geometric distribution with parameter \( p \):
Geometric PMF: \( p = 0.3 \)
Mean & Variance of Geometric
The Negative Binomial: PMF
Let \( X \) be the number of trials to achieve the \( r \)-th success. Then:
Mean & Variance of NegBin
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
Example 1: Rolling a Six
You roll a fair die repeatedly. What is the probability that the first six appears on the 4th roll?
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?
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?
Common Mistakes to Avoid
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 \)?