Explanation
The geometric distribution describes how many independent trials are needed to obtain the first success, when each trial has the same probability of success \( p \). It is a discrete distribution with support on the positive integers \( k = 1, 2, 3, \ldots \) and is the special case of the negative binomial distribution with \( r = 1 \). Its mean is \( 1/p \) and its variance is \( (1-p)/p^2 \); with a small probability of success, the mean is high and the distribution has a very long right tail.
The memoryless property is its most important feature: given that \( m \) failed trials have already occurred, the distribution of the number of additional trials until the first success is exactly the same as at the start. Use it for "repeat until you succeed" processes: sales prospecting, quality trials until the first defect, network connection attempts, or any situation where the trials are independent of each other and have a constant probability of success.
Formula
\( P(X=k)=(1-p)^{k-1}p,\quad k=1,2,3,\dots \)
Parameters
- p: probability of success on each trial.
- k: trial number on which the first success occurs.
Worked example
Situation: A technical support technician resolves each ticket with a probability of \(p = 0.2\) on the first attempt. The attempts are independent. Let \(X\) be the number of the attempt on which the ticket is resolved for the first time.
Question 1: What is the probability that the ticket is resolved on exactly the third attempt, \(P(X = 3)\)?
Solution: We apply the geometric PMF, where the first two attempts fail and the third succeeds: \[ P(X = 3) = (1 - p)^{3-1} \cdot p = (0.8)^2 \times 0.2 = 0.64 \times 0.2 = 0.128 \] There is a 12.8% probability of resolving the ticket on exactly the third attempt.
Question 2: How many attempts are needed on average, \(E[X]\)?
Solution: The mean of the geometric distribution is: \[ E[X] = \frac{1}{p} = \frac{1}{0.2} = 5 \text{ attempts} \] However, the median (50th percentile) is lower: \(P(X \leq k) \geq 0.5 \Rightarrow 1 - 0.8^k \geq 0.5 \Rightarrow k \geq \lceil\ln(0.5)/\ln(0.8)\rceil = 4\). The median is 4 attempts.
Interpretation: With a 20% resolution rate, half of the tickets are resolved in 4 attempts or fewer, but the mean rises to 5 because of the long right tail. Thanks to the memoryless property, if 3 attempts have already failed, the distribution of the number of additional attempts needed is identical to the original distribution.