Let X denote a geometric random variable with parameter 1-p ε (0,1) such that P(X=n)=p(1-p)n for n = 0, 1,...
1) Calculate the mean directly.
2) Calculate the variance directly.
3) Calculate the moment generating function (Z-transform).
4) Using the moment generating function, derive the mean and the variance.