Geometric Distribution

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

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

for x=1,2,3,…

  1. f(x)≥0
  2. ∑p(1−p)x−1=1

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

f(x)=p(1−p)x

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

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