I recently came across this simple to state puzzle:
Suppose you have a coin that has probabilities for heads and for tails. You play the following game with a friend who also knows the value of The first player picks one of the outcomes , , or . The second player observes the choice of the first player and picks one of the remaining 3 outcomes. You then proceed to toss the coin infinitely many times independently constructing an infinite sequence of ’s and ’s. A player wins if their choice appears first in the sequence. For example, if player one chose and player two chose and if the coin toss sequence observed is , then it results in a victory for player two since occurred before in this sequence. For what values of is it better to go first in this game?
Let's make the conditions under which a player wins more concrete.
The strategy: It’s better to go as the first player in the game if for some choice , the probability of winning the game is greater than no matter the choice of the second player. It’s better to go as the second player in the game if for every choice of the first player, we can find some element of the set , such that the probability of winning the game is greater than
As an example, suppose , then if the first player chooses , then no matter the choice of the second player, the probability of the first player winning the game is greater than To see this note that the probability of getting two consecutive heads in the first two coin tosses itself is Therefore, for it is better to go as the first player.
On first impression it seems as if it must be better to go as the first player, no matter the value of , since the first player has more choices, but as we will see, the fact that the second player has the advantage of choosing the outcome after observing the choice of the first player gives him an advantage for certain values of
But before we do that, we should prove an implicit assumption: the game ends with a winner in a finite number of moves with probability But to do that we first need to define a probability space on which the game is played. In particular, does it even exist? Indeed it does as we see below.
To formalize our analysis we need to define a sequence of i.i.d. random variables, one for each coin toss. However, the existence of a probability space on which we can define this sequence is not obvious at all. For example, the following proposition shows that we cannot always construct desired number of random variables on a measurable space.
Fortunately the situation isn't so bleak for our case and Kolmogorov extension theorem allows us to claim the existence of a probability space on which there exists our required sequence of i.i.d. random variables if we can show for each the existence of a probability space for coin tosses that satisfy the consistency conditions. This is very easy: let , , where equals the number of in , and finally for any It is easy to see that this construction satisfies the consistency conditions and thus there exists a unique probability measure defined on the measurable space where and is the product -algebra generated by the cylinder sets.
We can now safely say the following statement: Let be a sequence of i.i.d. Bernoulli random variables such that or depending on the result of the coin toss. To show that the game has a winner with probability it is sufficient to prove that in the sequence all of the four choices , , and appear in a finite number of coin tosses with probability
To that end, fix any of the four choices , , and , and call it . Let be the event that and Then , where is some positive real number dependent on (for example, if then ). Now the events are independent and , and thus we can apply the second Borel-Cantelli lemma to get But this immediately implies that each of the four outcomes appear in that sequence infinitely many times with probability
Recall the strategy outlined above. Without loss of generality we may assume because otherwise we can just flip the tags and . From a first player perspective we just want to find one of the dominant choices , , or . Let's calculate the minimum we get for each choice.
If player chooses and player chooses , then it's better to be player if Checking for other choices of player we see that is the optimal choice.
If player chooses and player chooses , then for no it is better to be player
If player chooses and player chooses , then for no it is better to be player
If player chooses and player chooses , then for no it is better to be player
Overall it is better to be player if or if And on the other hand it is better to be player if