The distribution of how many attempts it takes to succeed for the first time. The chance that the first success falls exactly on attempt k is (1−p)^(k−1) × p, and the chance of succeeding within k attempts is 1 − (1−p)^k.
This is the distribution of how many attempts it takes to succeed for the first time: failures followed by a success on attempt .
The chance of succeeding within attempts is the opposite of never succeeding, . The mean is and the standard deviation .
With a 20% chance each time, the first success falls exactly on the third attempt with probability , or 12.8%. The chance of succeeding within three attempts is , or 48.8%. The mean is attempts and the standard deviation 4.47.
Even with a mean of 5, the chance of succeeding within 5 attempts is only %. Roughly one time in three, five attempts still come up empty. The distribution has a long tail to the right, which pulls the mean above the median.
However many attempts have failed, the next one still succeeds with probability . Nothing is due. This is called memorylessness, and the exponential distribution has the same property in continuous time.
With a success probability of 0 there is never a success, so no mean exists.