This is not homework. I am not a student. Consider a sequence of independent tosses of a biased coin at times k=0,1,2,…,n. On each toss, the probability of Heads is $p$, and the probability of Tails is $1−p$ .
A reward of one unit is given at time k, for k∈{1,2,…,n}, if the toss at time k resulted in Tails and the toss at time k−1 resulted in Heads. Otherwise, no reward is given at time k.
Let $I_k$ denote the reward (possibly 0) given at time k, for $k∈{1,2,…,n}$. Let R be the sum of the rewards collected at times $1,2,…,n$. Suppose p=3/4 and n=10.
I understand that $E(I_k) = P(HT) = 3/16$ so, $E(R) = \sum (E(I_k)) =10(3/16)$. But I've got no idea how to even begin on $E(R^2)$ The given answer is $4.40625$ which comes out to be $141/32$