Geometric Distribution

A random variable X has a geometric distribution Xgeometric(p) if and only if it has the probability distribution function

f(x;p)=p(1p)x1

for x=1,2,3,

  1. f(x)0
  2. p(1p)x1=1

If we are looking at the number of fails (x=0 is possible)

f(x)=p(1p)x

Geometric distribution is equivalent to the Negative Binomial Distribution when only looking for the first success
Xgeometric(p)NB(1,p)

E(X)=1pVar(X)=1p(1p1)=1pp2