MathorynMathematical Formula Database

Statistics & Probability

Geometric Distribution

The geometric distribution gives the probability that the first success in independent trials occurs on trial kk. It is used for waiting-time problems such as the number of rolls needed to get a six.

P(X=k)=(1−p)k−1p,E[X]=1pP(X=k)=(1-p)^{k-1}p,\qquad E[X]=\frac1p
LaTeXP(X=k)=(1-p)^{k-1}p,\qquad E[X]=\frac1p

Variables

pp
success probability per trial
kk
trial number of the first success, k = 1, 2, …
E[X]E[X]
expected number of trials

Example

Probability that the first six appears on the third roll.

  1. p=16p=\frac16, k=3k=3.
  2. (56)2⋅16=25216\left(\frac56\right)^2\cdot\frac16=\frac{25}{216}.

Answer: ≈0.11574\approx0.11574; on average 66 rolls are needed.

Related formulas