Geometric distribution
A geometric random variable $X\sim G(p)$ of parameter $p\in(0,1)$ has a distribution on $\N_0=\set{0,1,2,\ldots}$ given by $$ p_k = p(1-p)^k, \quad k=0,1,2,\ldots. $$
Alternatively some define it as the probability measure on $\N=\set{1,2,\dots}$ given by $$ p_k = p(1-p)^{k-1}, \quad k=1,2,\ldots. $$
Be clear with the definition. This is to model the number of tosses of a biased coin up to (or including) the first head.
Using the first definition,
-
Expectation $= (1-p)/p$. (Derivation)
-
Variance $= (1-p)/p^2$. (Derivation)
-
Generating function $$ G_X(t) = \fsum n0\infty (1-p)^n pt^n = \frac{p}{1-(1-p)t}, \qquad R=\frac{1}{1-p}.$$