Geometric distribution

Flip a biased coin with success probability p until the first head. The number of flips needed follows a Geometric distribution. One parameter does all the work.

00.10.20.324681012trials until first success (k)probability
Dark bars: PMF . Light bars: empirical frequencies from 500 samples. = 3.3 trials.

What to notice

  • Small p produces a heavy right tail — most runs take many trials, but occasionally the first flip succeeds.
  • Large p pushes almost all probability onto k=1 and k=2 — success comes quickly.
  • Mean and variance both grow as p shrinks.

Memorylessness

The geometric distribution has a striking property: past failures tell you nothing about future success.

If you’ve already failed m times, the distribution of remaining trials looks exactly like starting fresh. This is the only discrete distribution with this property — just as the exponential is the only continuous memoryless distribution.

Connection to the exponential

In a Poisson process with rate λ, the number of trials in a time interval of length 1/λ follows (approximately) a geometric distribution with p = λ/λ = 1. More precisely: if you discretize a Poisson process into steps of size δ, each step succeeds with probability p = λδ, and as δ → 0 the geometric distribution converges to the exponential. They are the same memorylessness expressed in discrete vs continuous time.