<?xml version="1.0" encoding="UTF-8" ?>
  <resource>
  <id>512</id>
  <path>/www/nrich/html/content/97/06/six3/</path>
  <resourceTypeID>1</resourceTypeID>
  <last_published>2011-02-01T00:00:01</last_published>
  <indexXML>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;mdoxml version=&quot;1.0&quot;&gt;&lt;br&gt;&lt;/br&gt;
&lt;p&gt;&lt;u&gt;Coin Tossing Games&lt;br&gt;&lt;/br&gt;
Set by Dr Susan Pitts, University of Cambridge Statistics
Laboratory,&lt;br&gt;&lt;/br&gt;
for the Summer 1997 NRICH Maths Club Video-conference.&lt;/u&gt;&lt;/p&gt;
&lt;p&gt;You and I play a game involving successive throws of a fair
coin. Let H and T denote heads and tails respectively.&lt;/p&gt;
&lt;p&gt;I pick HH. Suppose that you pick TH. The coin is thrown
repeatedly until we see either two heads in a row or a tail
followed by a head. In the first case I win; in the second case you
win. What is the probability that you win?&lt;/p&gt;
&lt;p&gt;What is the probability that you win if you choose HT? Or TT?
What is the best choice you can make?&lt;/p&gt;
&lt;p&gt;What should you choose if I choose TT?&lt;/p&gt;
&lt;p&gt;What happens if I choose HT?&lt;/p&gt;
&lt;p&gt;Assuming that you always make a choice that maximises your
chance of winning, what should I choose to maximise the probability
that I win?&lt;/p&gt;
&lt;p&gt;Now suppose that we look at triples instead of pairs. What is
the probability that you win if I choose HHH and you choose
THH?&lt;/p&gt;
&lt;p&gt;I have eight possible choices. For each one, can you find a
triple that gives you a better than even chance of winning (i.e. a
triple that makes your probability of winning more than 1/2)?&lt;/p&gt;
&lt;br&gt;&lt;/br&gt;&lt;/mdoxml&gt;</indexXML>
  <solutionXML>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;mdoxml version=&quot;1.0&quot;&gt;&lt;br&gt;&lt;/br&gt;
&lt;p&gt;The games involve tossing a fair coin until my chosen sequence or your chosen sequence occurs.&lt;/p&gt;
&lt;p&gt;If I pick HH and you pick TH the only way that I can win is if the first two throws are HH. This occurs with probability 1/4 so P(you win) = 3/4.&lt;/p&gt;
&lt;p&gt;What if I pick HH and you pick HT ?&lt;/p&gt;
&lt;p&gt;If the first two throws are HH then I win, and if they are HT then you win. If we get TH, then the third throw is equally likely to be H (I win) or T (you win), so if the first pair is TH, then the probability that you win is 1/2. If the first two throws are TT let p be the probability that you win. The third throw is equally likely to be H (we have seen that the probability that you win
starting from TH is 1/2 ) or T (and the probability that you win from TT is p). Thus&lt;/p&gt;
&lt;p&gt;p = (1/2 x 1/2) + (p x 1/2) so that p = 1/2.&lt;/p&gt;
&lt;p&gt;This leads to P(you win)}= (0 + 1 + 1/2 + 1/2 )/4 = 1/2.&lt;/p&gt;
&lt;p&gt;What if I pick HH and you pick TT ?&lt;/p&gt;
&lt;p&gt;If the first pair is HH then I win, and if the first pair is TT then you win. Let p and r be the probability that you win if the first pair is HT and TH respectively. By considering the outcome of the third throw, we get&lt;/p&gt;
&lt;p&gt;p = 1/2 + (r x 1/2)&lt;/p&gt;
&lt;p&gt;r = p x 1/2&lt;/p&gt;
&lt;p&gt;Solving these equations, we find p=2/3 and r=1/3.&lt;br&gt;&lt;/br&gt;
This means that P(you win) = (0 + 1 + 2/3 + 1/3)/4 = 1/2.&lt;/p&gt;
&lt;p&gt;What is the best choice you can make?&lt;br&gt;&lt;/br&gt;
The best choice you can make is TH.&lt;/p&gt;
&lt;p&gt;What should you choose if I choose TT ?&lt;br&gt;&lt;/br&gt;
By symmetry between H and T, if I choose TT then you should choose HT, and then P(you win = 3/4.&lt;/p&gt;
&lt;p&gt;What happens if I choose HT ?&lt;/p&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr align=&quot;center&quot; valign=&quot;middle&quot;&gt;
&lt;td align=&quot;left&quot; style=&quot;&quot; valign=&quot;top&quot;&gt;1.&lt;/td&gt;
&lt;td align=&quot;left&quot; style=&quot;&quot; valign=&quot;top&quot;&gt;We have already considered HH versus HT and found that they are equally likely to win. So if I choose HT and you choose HH , then the probability that you win is 1/2.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr align=&quot;left&quot; valign=&quot;top&quot;&gt;
&lt;td align=&quot;left&quot; style=&quot;&quot; valign=&quot;top&quot;&gt;2.&lt;/td&gt;
&lt;td align=&quot;left&quot; style=&quot;&quot; valign=&quot;top&quot;&gt;Suppose you choose TH. If the first pair is HH or HT then I win, and if it is TH or TT then you win, and so P(you win)=1/2.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr align=&quot;left&quot; valign=&quot;top&quot;&gt;
&lt;td align=&quot;left&quot; style=&quot;&quot; valign=&quot;top&quot;&gt;3.&lt;/td&gt;
&lt;td align=&quot;left&quot; style=&quot;&quot; valign=&quot;top&quot;&gt;Suppose that you choose TT. We have already considered TT versus HT , and we know that the probability that HT wins is 3/4. Hence the probability that you win with TT against HT is 1/4.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Assuming that you always make a choice that maximises your chance of winning, what should I choose to maximise the probability that I win?&lt;/p&gt;
&lt;p&gt;We still have to consider what happens if I choose TH.&lt;br&gt;&lt;/br&gt;
By symmetry with the case where I choose HT , we see that if you choose HH then you win with probability 1/4, if you choose HT then you win with probability 1/2, and if you choose TT then you win with probability 1/2.&lt;/p&gt;
&lt;p&gt;Using all the above results, I should choose HT or TH, because either of these choices makes my probability of winning equal to 1/2, whereas for HH and TT my winning probability is only 1/4 (assuming that you always make a choice that maximises your chance of winning).&lt;/p&gt;
&lt;p&gt;Now suppose that we look at triples instead of pairs.&lt;br&gt;&lt;/br&gt;
What is the probability that you win if I choose HHH and you choose THH ?&lt;/p&gt;
&lt;p&gt;I can only win if the first three throws are HHH.&lt;br&gt;&lt;/br&gt;
This occurs with probability 1/8 , so the probability that you win is 7/8.&lt;/p&gt;
&lt;p&gt;I have eight possible choices and, for each one, you can find a triple that gives you a better than even chance of winning (ie a triple that makes your probability of winning more that 1/2).&lt;/p&gt;
&lt;p&gt;We have seen just above that it is possible if I choose HHH. We now consider all the other possibilities in turn.&lt;/p&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr align=&quot;left&quot; valign=&quot;top&quot;&gt;
&lt;td align=&quot;left&quot; style=&quot;&quot; valign=&quot;top&quot;&gt;1.&lt;/td&gt;
&lt;td align=&quot;left&quot; style=&quot;&quot; valign=&quot;top&quot;&gt;If I choose TTT then by symmetry you should choose HTT so that your probability of winning is 7/8.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr align=&quot;left&quot; valign=&quot;top&quot;&gt;
&lt;td align=&quot;left&quot; style=&quot;&quot; valign=&quot;top&quot;&gt;2.&lt;/td&gt;
&lt;td align=&quot;left&quot; style=&quot;&quot; valign=&quot;top&quot;&gt;I choose HTH . Suppose you try HHT. You win if the starting triple is HHH , HHT or THH. I win if the starting triple is HTH. Let p , q , r and s be the probability that you win if the starting triple is HTT , THT , TTH and TTT respectively.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;By considering what happens at the fourth throw, we find&lt;/p&gt;
&lt;p&gt;p = (r x 1/2) + (s x 1/2)&lt;br&gt;&lt;/br&gt;
q = (p x 1/2)&lt;br&gt;&lt;/br&gt;
r = (qx1/2) + 1/2&lt;br&gt;&lt;/br&gt;
s = (r x 1/2) + (s x 1/2).&lt;/p&gt;
&lt;p&gt;We find r = s = p = 2/3 and q = 1/3.&lt;br&gt;&lt;/br&gt;
This means that&lt;br&gt;&lt;/br&gt;
P(you win) = (1 + 1 + 0 + 2/3 + 1 + 1/3 + 2/3 + 2/3)/8 = 2/3.&lt;/p&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr align=&quot;left&quot; valign=&quot;top&quot;&gt;
&lt;td align=&quot;left&quot; style=&quot;&quot; valign=&quot;top&quot;&gt;3.&lt;/td&gt;
&lt;td align=&quot;left&quot; style=&quot;&quot; valign=&quot;top&quot;&gt;By symmetry, if I choose THT and you choose TTH,then P(you win) = 2/3.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr align=&quot;left&quot; valign=&quot;top&quot;&gt;
&lt;td align=&quot;left&quot; style=&quot;&quot; valign=&quot;top&quot;&gt;4.&lt;/td&gt;
&lt;td align=&quot;left&quot; style=&quot;&quot; valign=&quot;top&quot;&gt;I choose HHT. Suppose you try choosing THH. I win if the starting triple is HHH or HHT , otherwise you win, so that {P(you win) = 3/4.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr align=&quot;left&quot; valign=&quot;top&quot;&gt;
&lt;td align=&quot;left&quot; style=&quot;&quot; valign=&quot;top&quot;&gt;5.&lt;/td&gt;
&lt;td align=&quot;left&quot; style=&quot;&quot; valign=&quot;top&quot;&gt;By symmetry, if I choose TTH and you choose HTT , then P(you win) = 3/4.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr align=&quot;left&quot; valign=&quot;top&quot;&gt;
&lt;td align=&quot;left&quot; style=&quot;&quot; valign=&quot;top&quot;&gt;6.&lt;/td&gt;
&lt;td align=&quot;left&quot; style=&quot;&quot; valign=&quot;top&quot;&gt;I choose HTT. Suppose you choose HHT . Then you win if the starting triple is HHH , HHT or THH , but I win if it is HTT . Carrying out calculations similar to those above, we find that if the starting triple is HTH , TTH or TTT then your winning probability is 2/3, but if it is THT your winning probability is 1/3. Thus P(you win) = 2/3.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr align=&quot;left&quot; valign=&quot;top&quot;&gt;
&lt;td align=&quot;left&quot; style=&quot;&quot; valign=&quot;top&quot;&gt;7.&lt;/td&gt;
&lt;td align=&quot;left&quot; style=&quot;&quot; valign=&quot;top&quot;&gt;By symmetry, if I choose THH and you choose TTH, then P(you win) = 2/3.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;For each of my eight possible choices, there is a triple that gives you a better than even chance of winning.&lt;/p&gt;
&lt;br&gt;&lt;/br&gt;&lt;/mdoxml&gt;</solutionXML>
  <noteXML/>
  <clueXML/>
  <canonXML/>
  <end_user_role>2</end_user_role>
  <difficulty>4</difficulty>
  <keystage1>0</keystage1>
  <keystage2>0</keystage2>
  <keystage3>0</keystage3>
  <keystage4>1</keystage4>
  <keystage4plus>0</keystage4plus>
  <title>Coin Tossing Games</title>
  <description>You and I play a game involving successive throws of a fair coin.
Suppose I pick HH and you pick TH. The coin is thrown repeatedly
until we see either two heads in a row (I win) or a tail followed
by a head (you win). What is the probability that you win?</description>
  <spec_group>Decision Mathematics and Combinatorics
    <specifier>Combinations</specifier>
  </spec_group>
  <spec_group>Probability
    <specifier>Theoretical probability</specifier>
  </spec_group>
  <spec_group>Probability
    <specifier>Experimental probability</specifier>
  </spec_group>
  <spec_group>Probability
    <specifier>Equally likely outcomes</specifier>
  </spec_group>
  <spec_group>Probability
    <specifier>Conditional probability</specifier>
  </spec_group>
</resource>