Michael plays a random song on his iPod. He has $2,781$ songs, but only one favorite song. Let X be the number of songs he has to play on shuffle (songs can be played more than once) in order to hear his favorite song.
a) find $E(X)$
b) find $E(X^2)$
a is easy, just use $1/p$ where $p = 1/2781$ to find that $E(X)= 2781$
What I struggle with is b)
What is the formula for $E(X^2)$ for a geometric distribution?
Is it simply $E(X^2) = \cfrac{1}{p^2}$?
This doesn't seem right to me, but I can't find anything in my book that would give me $E(X^2)$, can someone show me what the formula is for $E(X^2)$ for a geometric distribution and the derivation if possible?