edited by
1,913 views
2 votes
2 votes

I toss a coin repeatedly. The coin is unfair and P(H) = p. The game ends the first time that two consecutive heads (HH) or two consecutive tails (TT) are observed. I win if HH is observed and lose if TT is observed. For example if the outcome is HTHTT, I lose. On the other hand, if the outcome is THTHTHH, I win. Find the probability that I win.

Ans: $\frac{p^{2} (2-p)}{(1-p+p^{2} )}$

edited by

1 Answer

Best answer
1 votes
1 votes
P(H) = p

P(T) = (1-p)

Winning sequence possible,

HH , THH, HTHH, THTHH, HTHTHH......

So respective Probabilities Sequence,

$p^2$, $(1-p)p^2$, $p(1-p)p^2$, $p(1-p)^2p^2$, $p^2(1-p)^2p^2$.....

So Probability to win =

$p^2$ + $(1-p)p^2$ + $p(1-p)p^2$ + $p(1-p)^2p^2$ + $p^2(1-p)^2p^2$ +.....

=  $p^2$[1 + $(1-p)$ + $p(1-p)$ + $p(1-p)^2$ + $p^2(1-p)^2$ +......]

= $p^2$[(1 + $(1-p)$) + $p(1-p)(1 + (1-p))$ + $p^2(1-p)^2(1 + (1-p))$ +......]

= $p^2$[$(2-p)$ + $p(1-p)(2-p)$ + $p^2(1-p)^2(2-p)$ +.......]

= $p^2(2-p)$[1 + $p(1-p)$ + $p^2(1-p)^2$ +.......]

= $p^2(2-p)$×$\frac{1}{1 - p(1-p)}$

[Since sum of infinite G.P is $\frac{a}{1 - r}$ , here $a$ is 1 and r is $p(1-p)$ ]

= $\frac{p^2(2-p)}{(1 - p + p^2)}$
selected by

Related questions

1 votes
1 votes
1 answer
1
NIKU asked Oct 31, 2017
474 views
Suppose two dies are rolled .What is the probability of getting 4 on the first die , when the the sum is 6 ?A) 1/5 B)1/6
0 votes
0 votes
0 answers
2
Vicky rix asked Feb 22, 2017
284 views
1 votes
1 votes
2 answers
4