01 / 20

Geometric
Distribution

Master the distribution that models waiting for the first success: its conditions, probability formula, and expected value calculations.

College Statistics

What is the Geometric Distribution?

The geometric distribution models a specific scenario: you repeat independent Bernoulli trials, each with the same probability of success \( p \), and count how many trials it takes to get the first success.

The random variable \( X \) represents the trial number on which the first success occurs. So \( X \) can take values \( 1, 2, 3, \ldots \) with no upper bound.

The Four Conditions

1
Two outcomes: Each trial results in either success or failure.
2
Independent trials: The outcome of one trial does not affect any other trial.
3
Constant probability: The probability of success \( p \) is the same on every trial.
4
Count until first success: We count the number of trials up to and including the first success.

Visualizing the Probability Decay

The geometric distribution has a characteristic right-skewed shape: the most likely outcome is success on trial 1, and probabilities decrease exponentially as \( k \) increases.

P(X = k) Trial number k 0.300 0.210 0.147 0.103 0.072 0.050 1 2 3 4 5 6 7 8 9
\( p = 0.3 \)

The Probability Formula (PMF)

The probability that the first success occurs on trial \( k \) requires exactly \( k - 1 \) failures followed by one success:

$$ P(X = k) = (1 - p)^{k-1} \cdot p \quad \text{for } k = 1, 2, 3, \ldots $$
\( (1-p)^{k-1} \)
Probability of failing on each of the first \( k - 1 \) trials
\( p \)
Probability of succeeding on trial \( k \)

Expected Value and Variance

Two key summary statistics for a geometric random variable \( X \) with success probability \( p \):

Expected Value
$$ E(X) = \mu = \frac{1}{p} $$
The average number of trials needed for the first success
Variance
$$ \text{Var}(X) = \frac{1 - p}{p^2} $$
Measures spread in the number of trials needed

Cumulative Probability

Often we need \( P(X \leq k) \): the probability of getting the first success within \( k \) trials. There is an elegant shortcut:

$$ P(X \leq k) = 1 - (1 - p)^{k} $$

This works because \( P(X > k) = (1-p)^k \) is the probability of failing all \( k \) trials. Subtract from 1 to get at least one success.

Geometric vs. Binomial

Feature Geometric Binomial
What is fixed? \( p \) only \( n \) and \( p \)
What do we count? Trials until 1st success Successes in \( n \) trials
Possible values \( 1, 2, 3, \ldots \) (infinite) \( 0, 1, 2, \ldots, n \) (finite)
Expected value \( \frac{1}{p} \) \( np \)
Key question "How long until...?" "How many out of...?"

How to Apply the Geometric Model

1
Verify conditions: Check for two outcomes, independence, constant \( p \), and counting until first success.
2
Identify \( p \): Determine the probability of success on a single trial.
3
Identify what to find: Is the question asking for \( P(X = k) \), \( P(X \leq k) \), \( P(X > k) \), or \( E(X) \)?
4
Choose the right formula: Use PMF for exact, CDF for cumulative, or \( \frac{1}{p} \) for expected value.
5
Compute and interpret: State your answer in context of the problem.

Example 1: Free Throws

A basketball player makes 80% of her free throws. She shoots until she makes one. What is the probability that she makes her first free throw on the 3rd attempt?

Interpretation: There is a 3.2% chance her first made free throw comes on exactly the third attempt. This is low because \( p \) is high: she usually succeeds sooner.

Example 2: Defective Parts

A quality inspector examines items from a large production line where 5% are defective. What is the probability she finds the first defective item within the first 10 inspections?

Interpretation: There is about a 40.1% chance the inspector finds at least one defective item within the first 10 she examines.

Example 3: Expected Waiting Time

A game spinner has a 1 in 8 chance of landing on the winning sector. On average, how many spins does a player need? What is the probability it takes more than 10 spins?

On average the player needs 8 spins, but there is still a 26.3% chance of needing more than 10. The geometric distribution has a long right tail.

The Memoryless Property

The geometric distribution is the only discrete distribution that is memoryless. This means past failures do not change the probability of future success:

$$ P(X > s + t \mid X > s) = P(X > t) $$
In Plain Language
If you have already failed \( s \) times, the probability of needing \( t \) more trials is exactly the same as if you were starting fresh.
Real-World Example
You have flipped a coin 20 times with no heads. The probability of getting heads within the next 3 flips is still \( 1 - 0.5^3 = 0.875 \).

Alternate Formulation: Counting Failures

Some textbooks define \( Y \) as the number of failures before the first success instead of the trial number. Be aware of both versions:

Property \( X \) = trial number \( Y \) = failures before
Possible values \( 1, 2, 3, \ldots \) \( 0, 1, 2, \ldots \)
PMF \( (1-p)^{k-1} p \) \( (1-p)^{y} p \)
Expected value \( \frac{1}{p} \) \( \frac{1-p}{p} \)
Relationship \( X = Y + 1 \)

Common Mistakes to Avoid

✕ Wrong Exponent
Using \( (1-p)^k \) instead of \( (1-p)^{k-1} \). The exponent counts failures, which is one less than the trial number.
✕ Confusing with Binomial
Using \( \binom{n}{k} \) combinations. Geometric has no combinations: there is only one way to get the first success on trial \( k \).
✕ Ignoring Independence
Applying geometric to sampling without replacement. If the population is not large enough, trials are not independent.

Question 1 of 5

A coin has probability \( p = 0.25 \) of landing heads. You flip until you get heads. What is \( P(X = 4) \)?

Question 2 of 5

If the probability of success is \( p = 0.1 \), what is the expected number of trials to get the first success?

Question 3 of 5

Which scenario does not satisfy the conditions for a geometric distribution?

Question 4 of 5

A website ad has a 2% click rate. What is the probability a visitor clicks the ad within the first 5 page views?

Question 5 of 5

A geometric random variable \( X \) has \( p = 0.4 \). You have already observed 3 failures. Because of the memoryless property, what is \( P(X > 5 \mid X > 3) \)?