(1) State the PMF of a geometric random variable:

PX(k)=(1p)k1p

(2) Use formula for expectation to find E[X]:

E[X]=k=1k(1p)k1p=pk=1k(1p)k1

(3) Apply hint:

We have that 11x=k=0xk.

Differentiating both sides yields 1(1x)2=k=1kxk1.

Note that here, x=(1p), so

E[X]=p1(1(1p))2=pp2=1p

(4) Find expression for E[X2]:

Note that Var[X]=E[X2](E[X])2.

Applying the hint, we have E[X2]=E[X(X1)+X].

Using the linearity of expectation, we can write this as E[X(X1)]+E[X].


(5) Find E[X(X1)] and E[X2]:

First, note that the second derivative of 11x is 2(1x)3=k=2k(k1)xk2.

E[X(X1)]=k=1k(k1)(1p)k1p=2pp21p

Thus, E[X2]=2pp21p+1p=2pp2.


(6) Find Var[X]:

Var[X]=2pp21p2=1pp2