Geometric Distribution: Formula, Mean, and Worked Examples
Calculate first-success probabilities, cumulative chances, mean, variance and standard deviation. Includes six worked examples.
TL;DR
A geometric distribution counts independent trials until the first success. With success probability per trial, the chance of a first success on trial is .
Key Points
- Each trial has two labelled outcomes and the same success probability.
- The trials must be independent for the usual geometric formula.
- Decide whether the variable counts all trials or only the preceding failures.
- “By trial ” includes all first-success times from 1 through .
- The geometric model is memoryless when success remains possible.
What is a geometric distribution?
A geometric distribution describes a wait for the first success across independent, repeated trials. “Success” is the outcome you have chosen to count, such as rolling a six or picking a marked card when you replace and reshuffle after every draw. It need not describe a desirable outcome.
Let be the constant probability of success on each trial and set . Use . When , the first trial succeeds with certainty. With , success never occurs, so the waiting time is not a finite geometric random variable. OpenStax, Geometric Distribution
How do you calculate the probability of an exact wait?
Let be the trial number on which the first success occurs. For , you need failures followed by one success. Independence means their probabilities multiply:
If , interpret the first case directly as and every later probability as zero. Another convention uses to count only the failures before the first success. Then starts at zero and . Check which variable a problem or software library uses before inserting the exponent. OpenStax, Formula Review
What changes for at least, at most, and more than?
| Wording | Event | Probability |
|---|---|---|
| Exactly on trial | ||
| By trial , inclusive | ||
| More than trials | ||
| At least trials |
“No success by trial ” means all first trials failed, which has probability . Subtract that from 1 for the cumulative probability of success by trial . The relative frequency guide explains how model probabilities differ from observed shares.
What are the mean, variance, and standard deviation?
For the trial-count convention, the mean, variance and standard deviation are
For , the mean formula follows by adding from onwards. This is a geometric series with sum . At the mean is 1 directly. For the failure count , subtract one from the mean. Its variance and standard deviation stay the same, because subtracting a fixed number changes location without changing spread. The geometric sequence guide explains the series rule. OpenStax, Business Statistics Geometric Distribution
When is the geometric model a good fit?
Use it when you keep trying until the first success, each attempt has the same , and previous outcomes do not change the next attempt’s probability. If the question fixes the number of trials and counts successes, a binomial model answers a different question.
A finite deck sampled without replacement changes the probabilities after each draw. A machine whose condition worsens after each failed start may also have a changing . Neither situation follows the usual fixed-probability model. In a geometric model with , five previous failures do not change the chance of success during the next three trials. This property is called memorylessness. LibreTexts, Geometric Distribution
Six Worked Geometric Distribution Examples
Example 1
Each independent attempt has success probability . Find the probability the first success is attempt 3.
- Two failures must come first, each with probability .
- The third attempt must succeed.
- Multiply to get .
Example 2
A fair coin is flipped repeatedly. Find the chance of getting at least one head by flip 4.
- The complementary event is four tails.
- Its probability is .
- The chance of a head by flip 4 is .
Example 3
An independent trial succeeds with probability 0.2. Find the probability that the first success requires at least five attempts.
- “At least five” permits success on attempt 5.
- Only the first four attempts must fail.
- The chance is .
Example 4
Find the mean and standard deviation of when .
- The mean is trials.
- The variance is .
- The standard deviation is trials.
Example 5
A geometric model with has already registered four failures. What is the chance of success in the next two trials?
- Each upcoming trial still has failure probability 0.7.
- The chance both fail is .
- The chance of at least one success in those two trials is .
Example 6
Each independent trial succeeds with probability 0.4. Find the minimum number of attempts needed for at least a 90% chance of one success.
- Require the chance of no success to be at most 0.10.
- With four attempts it is . With five it is .
- Five attempts are the first count that meets the target.
Common Geometric Distribution Mistakes
Mistake 1: Raising the failure probability to the trial number for an exact wait
For a first success on trial 5, only four preceding trials fail. The fifth is a success.
Mistake 2: Treating “at least” as “more than”
At least five permits five. More than five requires the first five trials all to fail.
Mistake 3: Using the formula when the success probability changes
Check independence and the fixed value of before computing. A problem about simple draws without replacement often fails those conditions.
Try It Yourself
- With , what is the chance of first success on trial 2?
- With , what is the probability that more than three trials are needed?
- With , find the expected number of failures before success.
Answers. 1. . 2. . 3. failures.
Conclusion
- Decide whether you count attempts or failures.
- Translate the exact event before choosing the exponent.
- Check that repeated trials have a fixed success probability and are independent.
Read More
- Compare geometric probabilities with other probability distributions
- Calculate probabilities in a card experiment
- Work with averages and variability
Research Behind This Article
- OpenStax, Introductory Statistics 2e: Geometric Distribution. OpenStax
- OpenStax, Introductory Business Statistics 2e: Geometric Distribution. OpenStax
- OpenStax, Introductory Statistics 2e: Chapter 4 Formula Review. OpenStax
- OpenStax, Business Statistics: Geometric Distribution. LibreTexts