The distribution of the number of independent Bernoulli trials performed up to and including the rth success. The probability that the number of trials, x, is equal to k is given by
The mean and variance are r/p and rq/p2 respectively. See also geometric distribution.