The geometric distribution is a probability distribution that arises when we count the number of independent Bernoulli trials until the first occurrence of a success. is the geometric random variable, and is defined for . The random variable roughly follows the trajectory of a geometric series.

The geometric RV is the only discrete RV that is memoryless in its trials.

Computations

The probability mass function of is given by:

where , and where is the probability of “success” in each Bernoulli trial.

The probability that is given by:

If we’re interested in the number of failures before a success occurs (random variable ):

The expected value is given by:

And the variance is given by:

Both increase as (the success probability) decreases.