Mark:
COIN GAME
HH/TH - I win 3/4 of the time. You win only if the first two tosses are HH.
HH/HT - I win 1/2 of the time. After the first H is tossed, we each have an even chance of winning on the next toss.
HH/TT - This has to be 1/2 due to symmetry.
Assuming you choose HH, TH is the best choice I can make.
If you choose TT, I should choose HT and win 3/4 of the time (see above).
If you choose HT, I should choose either TH or HH and win 1/2 of the time.
To maximize your probability of winning, you should choose HT or TH and win 1/2 of the time.
(Mark, you are a genius)
The games involve tossing a fair coin until my chosen sequence or your chosen sequence occurs.
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.
What if I pick HH and you pick HT ?
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
p = (1/2 x 1/2) + (p x 1/2) so that p = 1/2.
This leads to P(you win)}= (0 + 1 + 1/2 + 1/2 )/4 = 1/2.
What if I pick HH and you pick TT ?
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
p = 1/2 + (r x 1/2)
r = p x 1/2
Solving these equations, we find p=2/3 and r=1/3.
This means that P(you win) = (0 + 1 + 2/3 + 1/3)/4 = 1/2.
What is the best choice you can make?
The best choice you can make is TH.
What should you choose if I choose TT ?
By symmetry between H and T, if I choose TT then you should choose HT, and then P(you win = 3/4.
What happens if I choose HT ?
1. 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.
2. 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.
3. 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.
Assuming that you always make a choice that maximises your chance of winning, what should I choose to maximise the probability that I win?
We still have to consider what happens if I choose TH.
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.
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).
Mark (cont/)
THREE COINS
The first part is easy. I win 7/8 of the time. You win only if the first three tosses are HHH. Otherwise, the first HHH sequence will be preceded by a T and THH wil occur before THHH.
That provides an answer to two of the eight cases in the second part. In the table below, notice that your prefix (first two tosses) are always my suffix (last two tosses).
Code or Script:
You
Me My Win Rate
HHH . THH
7/8
HHT . THH
3/4
HTH . HHT
2/3
HTT . HHT
2/3
THH . TTH
2/3
THT .TTH
2/3
TTH . HTT
3/4
TTT . HTT
7/8
(We might have slight differences, but I still like your answer, I bow to your superiority)
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 ?
I can only win if the first three throws are HHH.
This occurs with probability 1/8 , so the probability that you win is 7/8.
I have eight possible choices and, for each one, you can find a triple that gives you a better than even chance of winning (i.e. a triple that makes your probability of winning more that 1/2).
We have seen just above that it is possible if I choose HHH. We now consider all the other possibilities in turn.
1. If I choose TTT then by symmetry you should choose HTT so that your probability of winning is 7/8.
2. 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.
By considering what happens at the fourth throw, we find
p = (r x 1/2) + (s x 1/2)
q = (p x 1/2)
r = (qx1/2) + 1/2
s = (r x 1/2) + (s x 1/2).
We find r = s = p = 2/3 and q = 1/3.
This means that
P(you win) = (1 + 1 + 0 + 2/3 + 1 + 1/3 + 2/3 + 2/3)/8 = 2/3.
3. By symmetry, if I choose THT and you choose TTH, then P(you win) = 2/3.
4. 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.
5. By symmetry, if I choose TTH and you choose HTT , then P(you win) = 3/4.
6. 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.
7. By symmetry, if I choose THH and you choose TTH , then P(you win) = 2/3.
For each of my eight possible choices, there is a triple that gives you a better than even chance of winning.
So, there is no way I'm gonna play against you.
Even if they are starving, natives living in the Arctic will never eat a penguin's egg. Why not
Forward I am heavy, but backward I am not. What am I
He has married many women, but has never been married. Who is he
How are a jeweler and a jailer alike
How many bricks does it take to complete a building made of brick