🎯 Geometric Distribution Calculator
Calculate the probability that the first success occurs on trial k. Computes P(X=k), cumulative P(X≤k), mean, and variance for a geometric distribution.
Between 0 and 1
Must be ≥ 1
What is the Geometric Distribution?
The geometric distribution is a discrete probability distribution that models the number of trials needed to achieve the first success in a sequence of independent Bernoulli trials, where each trial has a constant probability of success p and probability of failure q = 1 − p. In the most common formulation, P(X = k) = (1−p)^(k−1) × p, where k is the trial number on which the first success occurs. This distribution arises naturally whenever you ask "how many attempts until the first hit?" — from quality control sampling to game theory to reliability engineering.
The geometric distribution has a unique and practically important property called memorylessness: the probability of success on the next trial is always p, regardless of how many failures have already occurred. This means that knowing you've already failed 10 times doesn't change your chances on trial 11 — each attempt is truly independent. This property is often counter-intuitive (people tend to believe a run of failures makes success "due"), but it is mathematically provable and makes the geometric distribution analytically tractable. It is the only discrete distribution with this memoryless property.
Key statistics of the geometric distribution include a mean (expected number of trials) of 1/p, variance of (1−p)/p², and standard deviation √[(1−p)/p²]. For a fair coin flip (p = 0.5), the expected number of flips to get the first heads is 1/0.5 = 2 flips. For a rare event like rolling a six (p = 1/6), the expected wait is 6 rolls. This calculator computes P(X = k), P(X ≤ k), P(X > k), mean, variance, and standard deviation for any success probability and trial count, with a probability distribution chart for visual analysis.
Geometric Distribution Formulas
Real-World Examples
-
1Free Throw ShootingA basketball player with 70% free throw accuracy: what is the probability their first miss happens on the 4th attempt?
-
2Sales CallsA salesperson closes a deal with probability 0.20 per call. What is the expected number of calls until the first sale?
-
3Defective ItemsAn assembly line produces 1% defective items. What is P(first defect found on the 5th inspection)?
-
4Clinical TrialsA drug has 40% response rate. What is P(first responder is the 3rd patient)?
Frequently Asked Questions
The geometric distribution models the number of independent Bernoulli trials needed to get the first success, where each trial has probability p of success. It is memoryless — past failures do not affect future probabilities.
The memoryless property means P(X > m + n | X > m) = P(X > n). In plain terms, if you have already had k failures, the distribution of remaining trials until success is the same as at the start. This is unique to the geometric (and exponential) distributions.
The geometric distribution is a special case of the negative binomial distribution with r = 1. The negative binomial models the number of trials until r successes, while geometric models trials until 1 success.
Use it when you are counting the number of trials until the first success, each trial is independent, and the success probability p is constant across trials. Examples include coin flips until heads, or inspections until finding a defect.
P(X = k) = (1−p)^(k−1) × p means there were exactly k−1 failures (each with probability 1−p) before the first success (probability p) on trial k.
Real-World Applications
Common Mistakes
Geometric Distribution Key Statistics (P(X=k) = (1−p)^(k−1)·p)
| Success Probability (p) | Mean (1/p) | P(success by trial 5) |
|---|---|---|
| p = 0.5 (coin flip) | 2 trials | 96.9% |
| p = 0.25 (1 in 4) | 4 trials | 76.3% |
| p = 0.1 (1 in 10) | 10 trials | 41.0% |
| p = 1/6 (die roll) | 6 trials | 59.8% |
| p = 0.01 (1 in 100) | 100 trials | 4.9% |
References
- Hogg, Robert V., McKean, Joseph W., and Craig, Allen T. Introduction to Mathematical Statistics. Pearson, 2019.
- Wackerly, Dennis D., Mendenhall, William, and Scheaffer, Richard L. Mathematical Statistics with Applications. Cengage, 2014.
- DeGroot, Morris H. and Schervish, Mark J. Probability and Statistics. Pearson, 2012.
- Ross, Sheldon M. A First Course in Probability. Pearson, 2019.
- Feller, William. An Introduction to Probability Theory and Its Applications. Wiley, 1968.
Related Calculators
Binomial Distribution Calculator
Calculate binomial probability P(X=k), cumulative probabilities, mean, and variance.
Poisson Distribution Calculator
Calculate Poisson distribution probabilities for events occurring at a known rate.
Probability Calculator
Calculate basic probability, combined events, and conditional probability.