Random Variable
Lifer
Keep flipping a coin until you get a heads and then a tails on consecutive flips.
Let X equal the number of flips needed to get a heads-tails
therefore P(X)= (x-1)/2^x for x = 2,3,4,...
But how would you figure out the mean and variance of X? I'm having a miserable time trying to find the moment-generating function for X.
Let X equal the number of flips needed to get a heads-tails
therefore P(X)= (x-1)/2^x for x = 2,3,4,...
But how would you figure out the mean and variance of X? I'm having a miserable time trying to find the moment-generating function for X.