0

Assume a coin has a probability p to get a head H. Suppose a coin is tossed until the partern T,T appear in the last 2 tosses. Once he got T,T then the game is finished. What is the expected number of flips is expected for the game?

I tried to find out the distribution of $N$ where $N$ stands for the expected value of the no. of tosses before getting T,T, but i don't know what kind of distribution is that, seems need another apporaches

Mathematics
  • 4,521

1 Answers1

3

The distribution is not needed. Call $n$ the expected number of tosses needed to reach TT and $m$ the expected number of tosses needed to reach TT starting from T. Conditioning on the value of the first toss, one gets $n=1+(1-p)m+pn$ and $m=1+pn+(1-p)0$. Which yields $$ n=\frac{2-p}{(1-p)^2}=\frac1{1-p}+\frac1{(1-p)^2}. $$ Sanity checks: $n=2$ for $p=0$ (why?), $n\to\infty$ when $p\to1$ (why?) and the function $p\mapsto n$ is nondecreasing (why?).

Did
  • 279,727