Geometric Distribution Calculator
Trials until first success.
Probability Table
What Is the Geometric Distribution?
The geometric distribution models the number of trials needed to achieve the first success in a sequence of independent Bernoulli trials, where each trial has the same probability of success. It answers questions like "How many times must I flip a coin until I get heads?" or "How many products must I inspect until I find a defect?"
The geometric distribution is the discrete analog of the exponential distribution and shares its memoryless property.
Two Conventions
There are two common definitions of the geometric distribution:
Convention 1: Number of Trials (k β₯ 1)
X = number of trials until the first success (including the successful trial)
- Mean:
- Variance:
Convention 2: Number of Failures (k β₯ 0)
Y = number of failures before the first success
- Mean:
- Variance:
Note: , so the relationship between conventions is straightforward.
The Memoryless Property
Like the exponential distribution, the geometric distribution is memoryless:
If you've already failed times, your expected additional trials until success is the same as if you were starting fresh. Past failures don't influence future success.
Important: The geometric distribution is the only discrete distribution with this property.
Practical Applications
Quality Control
How many items must be inspected to find the first defective one? If the defect rate is 2% (), on average you'd need to inspect items.
Sales and Marketing
How many calls until the first sale? How many emails until a response? Geometric models help set expectations and measure performance.
Genetics
How many offspring until one inherits a particular trait? If the probability of inheritance is 0.25, expect about 4 offspring on average.
Games of Chance
How many lottery tickets until a win? How many spins until hitting a jackpot? (Though actual gambling involves more complex probabilities.)
Reliability Testing
How many stress tests until component failure? The geometric distribution applies when each test has independent failure probability.
Cumulative Probabilities
The CDF (probability of success within trials) is:
The survival function (probability of no success in first trials) is:
Example Calculation
Problem: A basketball player makes free throws with 75% accuracy. What's the probability they make their first basket on exactly the third attempt?
Using convention 1 (trials until success):
- (success probability)
- (first success on third trial)
About 4.7% chance of missing twice then making the third.
Connection to Other Distributions
Negative Binomial
The negative binomial distribution generalizes the geometric distribution to count trials until successes (geometric is the special case ).
Exponential Distribution
The exponential distribution is the continuous-time analog. If events occur in continuous time at rate , waiting time is exponential. If events occur in discrete trials with probability , waiting trials is geometric.
Binomial Distribution
The binomial distribution counts successes in a fixed number of trials, while geometric counts trials until the first success.
When Geometric Doesn't Apply
- Non-constant probability: If changes over trials
- Dependent trials: If outcomes influence each other
- Multiple success types: When success isn't binary
Quantiles and Percentiles
The -th quantile (minimum such that ) is:
This tells you how many trials to guarantee a given probability of success.
Related Calculations
- Binomial Probability Calculator β Fixed trials, count successes
- Negative Binomial Calculator β Trials until successes
- Exponential Distribution Calculator β Continuous analog
- Poisson Probability Calculator β Events in fixed time
Summary
The geometric distribution is the go-to model for counting independent trials until the first success. Its memoryless property means past failures don't affect future success probabilityβeach trial is a fresh start. Whether analyzing quality control, sales processes, or games of chance, the geometric distribution provides simple formulas for expected waiting times and success probabilities.