Geometric distribution formula and examples
5 min read
Short answer
If each independent trial succeeds with probability , the number of trials until the first success has a geometric distribution: The mean is , and the chance of needing more than trials is .
Where the formula comes from
To first succeed on trial , the first trials must fail (probability ) and trial must succeed (probability ). The trials are independent, so you multiply. It is the "waiting time" companion of the binomial distribution.
Memorylessness
Having already failed times does not change the future: . The coin or die has no memory, so a streak of failures does not make a success "due".
Worked example
You roll a fair die until you get a six. Find the probability the first six occurs on roll 3, the probability it takes more than 3 rolls, and the expected number of rolls.
Here .
.
.
rolls.
Try it yourself
A shooter hits a target with probability 0.2 each try. What is the probability the first hit comes on the 4th try?
Show the answer
.
Keep going with practice
The geometric distribution sits next to the binomial and Poisson in Vidi's interactive distribution plot.