Marked Cards Before the Joker
A deck of cards consists of one card of each rank from Ace to King together with a Joker, shuffled into a uniformly random order. You turn the cards face up one at a time; you win $100 if the King, Queen and Jack have all appeared before the Joker does, but if the Joker appears before all three of them have shown up, the game ends immediately and you win nothing. What is the fair price to pay for this game (its expected payout)?
Work it out, then compare with the answer.
SolutionShow the worked solution
Only four cards matter: the King, Queen, Jack and Joker. The other ten cards do not affect the outcome. In a uniformly random shuffle, the relative order of these four cards is uniform over all orders.
You win exactly when the Joker comes after all three of the other cards, that is, when the Joker is last among the four. By symmetry each of the four cards is equally likely to be last, so
The payout is with probability and otherwise. The expected payout is therefore dollars, and this is the fair price.
Key idea. Restrict attention to the relevant cards: their relative order is uniformly random, whatever the rest of the deck does.
Variations
The same idea with a twist. Each solution gives only the changed step.
A standard 52-card deck is shuffled uniformly at random and dealt one card at a time until the two of hearts is revealed. Find the probability that none of the twelve face cards (kings, queens, jacks) appear before the two of hearts.
Work it out, then compare with the answer.
Solution
The relevant cards are the twelve face cards and the two of hearts, thirteen in all. Their relative order is uniform.
The event happens exactly when the two of hearts comes first among these thirteen cards. Each of the thirteen is equally likely to be first.
A standard 52-card deck is shuffled uniformly at random and dealt one card at a time until the two of hearts is revealed. Find the probability that exactly one king, exactly one queen, and exactly one jack appear before the two of hearts.
Work it out, then compare with the answer.
Solution
Again restrict attention to the thirteen relevant cards: the twelve face cards and the two of hearts. Their relative order is uniform.
The event requires two things:
- The two of hearts is fourth among these cards. This has probability .
- The three face cards before it are one king, one queen and one jack. Given the first condition, these three form a uniform -subset of the twelve face cards. There are subsets with one card of each rank, out of .
Hence
A playlist of songs contains songs by one composer and songs by another composer (the remaining songs are by other composers). The playlist is put into a uniformly random order. Find the probability that all songs by the second composer occur before the second song by the first composer does.
Work it out, then compare with the answer.
Solution
Only the songs by the two composers matter. The set of positions occupied by the first composer’s songs, among these relative positions, is uniform over all subsets.
All six songs by the second composer precede the second song by the first composer exactly when at most one first-composer song comes before the last second-composer song. This means relative positions are all by the first composer. The fourth song by the first composer can then be in any of positions , giving favourable subsets. Hence