Of course my textbook leaves it as an exercise.... can someone help walk me through the derivation of the variance of a geometric distribution? Using the book (and lecture) we went through the derivation of the mean as:
$$ E(Y)=\sum_{y=0}^n yP(y)=\sum_{y=0}^n ypq^{y-1} $$ $$ =p\sum_{y=0}^n (-1)(1-p)^y =-p\sum_{y=0}^n(\frac{d}{dp}(1-p)^y -1) $$ By some theorem that's apparently outside the scope of our class: $$ =-p\frac{d}{dp}(\sum_{y=0}^n (1-p)^y -1)=-p\frac{d}{dp}(\frac{1}{1-(1-p)}-1) $$ $$ =-p\frac{d}{dp}(\frac{1}{p}-1)=-p(-\frac{1}{p^2}) $$ $$ \therefore E(Y)=\frac{1}{p} $$ From there we were given a hint that double derivatives will be needed for the variance. (my sigma notation might need correcting...)
Here's a derivation of the variance of a geometric random variable, from the book A First Course in Probability / Sheldon Ross - 8th ed. It makes use of the mean, which you've just derived.