The Geometric Distribution: Waiting for the First Success
What you'll learn: How to model the number of trials needed to get your first success in a sequence of independent Bernoulli trials.
The Core Idea
Imagine flipping a coin until you get heads, or rolling a die until you get a six. The geometric distribution tells you the probability of waiting exactly k tries before your first success happens.
Unlike the binomial distribution (which counts successes in a fixed number of trials), the geometric distribution counts how many trials you need until something finally works—the number of trials is the random variable, not the number of successes.
When to Use It
Apply the geometric distribution when:
- Each trial is a Bernoulli trial (success/failure with constant probability p)
- Trials are independent
- You stop as soon as the first success occurs
- You want to know: "How many attempts until success?"
Probability Mass Function
The probability of getting your first success on exactly the k-th trial is:
P(X = k) = (1 - p)^(k-1) · p
Where:
- p = probability of success on each trial
- k = trial number of first success (1, 2, 3, ...)
- You fail (k - 1) times, then succeed once
Example
If you're shooting free throws with 70% success rate (p = 0.7), the probability you make your first basket on the 3rd attempt is:
P(X = 3) = (0.3)² · (0.7) = 0.09 · 0.7 = 0.063
Key Takeaway: The geometric distribution models "how long until the first win" in repeated independent Bernoulli trials, with PMF P(X = k) = (1 - p)^(k-1) · p.