Let's break down the problem:
- Three players in a line: Player 1 (front), Player 2 (middle), Player 3 (back).
- Each has a hat: black or white (random, independent).
- Each can see the hats in front of them, not their own or behind.
- In order, starting from the back, each must guess their own hat color.
- Guesses are heard by those ahead.
- Passing is allowed.
- Win condition: At least one correct guess, no incorrect guesses.
Key Points
- No incorrect guesses allowed.
- At least one correct guess required.
- Passing is allowed.
Goal
Maximize the probability of winning (i.e., at least one correct, no incorrect).
Step 1: What happens if everyone passes?
- No one guesses, so no correct guesses. Lose.
Step 2: What if only one person guesses?
- If only one person guesses, and the others pass, the probability of that person being correct is 1/2 (since they have no information about their own hat).
- So, probability of winning = 1/2.
Step 3: Can we do better?
Let's see if we can use the information available and the ability to pass to do better.
Key insight:
If a player is certain of their own hat color, they can guess; otherwise, they should pass.
Let's analyze what each player knows:
- Player 3 (back): Sees Player 2 and Player 1's hats.
- Player 2 (middle): Sees Player 1's hat.
- Player 1 (front): Sees nothing.
Strategy: Only guess if certain
- Player 3: Sees two hats. If they are the same color, Player 3 knows that their own hat could be either color (no information). If they are different, again, no information. So, Player 3 can never be certain.
- Player 2: Hears Player 3's guess (if any), and sees Player 1's hat. But unless Player 3's guess gives information, Player 2 can't be certain.
- Player 1: Hears both previous guesses, but sees nothing.
But what if we use passing and the guesses to communicate?
Suppose Player 3 always passes. Then Player 2 can only see Player 1's hat, but still can't be certain. So, no one can ever be certain.
But what if Player 3 guesses anyway?
Suppose Player 3 always guesses "white". Then Player 2 knows nothing more, and Player 1 knows nothing more.
But what if Player 3 guesses only when they see two hats of the same color?
Suppose Player 3 guesses "white" if they see two white hats, "black" if they see two black hats, and passes otherwise.
- If Player 3 passes, then Player 2 knows that the two hats are not the same color.
- Player 2 sees Player 1's hat. If Player 2 sees "white", then Player 1 must have "white", and Player 2 must have "black" (since Player 3 passed, so hats are different). So Player 2 can be certain.
- Similarly, if Player 2 sees "black", then Player 2 must have "white".
But let's formalize this:
Optimal Strategy
Player 3 (back):
- If Player 2 and Player 1 have the same color hats, guess that color.
- If Player 2 and Player 1 have different colors, pass.
Player 2 (middle):
- If Player 3 guessed, pass.
- If Player 3 passed:
- If Player 1's hat is white, guess "black".
- If Player 1's hat is black, guess "white".
Player 1 (front):
Why does this work?
- If Player 3 sees two hats of the same color, they know their own hat is likely the same color (since all three could be the same, or two the same and one different). But actually, they don't know for sure, but the key is that if Player 3 passes, Player 2 can deduce their own hat color.
- If Player 3 passes, Player 2 knows that Player 1's hat is different from their own, so they can deduce their own hat color.
Let's check all cases:
Let the hats be (P3, P2, P1):
- WWW: P3 sees WW, guesses "white" (correct). P2 passes. P1 passes.
- WWB: P3 sees WB, passes. P2 sees B, so P2 guesses "white" (correct). P1 passes.
- WBW: P3 sees BW, passes. P2 sees W, so P2 guesses "black" (correct). P1 passes.
- WBB: P3 sees BB, guesses "black" (correct). P2 passes. P1 passes.
- BWW: P3 sees WW, guesses "white" (incorrect). P2 passes. P1 passes.
- BWB: P3 sees WB, passes. P2 sees B, so P2 guesses "white" (correct). P1 passes.
- BBW: P3 sees BW, passes. P2 sees W, so P2 guesses "black" (correct). P1 passes.
- BBB: P3 sees BB, guesses "black" (correct). P2 passes. P1 passes.
Now, let's see which cases we win:
- In all cases except BWW, the guess is correct and no one guesses incorrectly.
- In BWW, Player 3 guesses "white" (incorrect), so we lose.
So, 7 out of 8 cases, we win.
Probability of winning:
[
\frac{7}{8}
]
Summary of the Strategy
- Player 3 (back):
- If Player 2 and Player 1 have the same color hats, guess that color.
- If Player 2 and Player 1 have different color hats, pass.
- Player 2 (middle):
- If Player 3 guessed, pass.
- If Player 3 passed:
- If Player 1's hat is white, guess black.
- If Player 1's hat is black, guess white.
- Player 1 (front):
This strategy wins with probability ( \boxed{7/8} ).
Summary Table
| Hats (P3, P2, P1) | P3 sees | P3 action | P2 sees | P2 action | P1 action | Outcome |
|---|
| W W W | W W | Guess W | W | Pass | Pass | Win |
| W W B | W B | Pass | B | Guess W | Pass | Win |
| W B W | B W | Pass | W | Guess B | Pass | Win |
| W B B | B B | Guess B | B | Pass | Pass | Win |
| B W W | W W | Guess W | W | Pass | Pass | Lose |
| B W B | W B | Pass | B | Guess W | Pass | Win |
| B B W | B W | Pass | W | Guess B | Pass | Win |
| B B B | B B | Guess B | B | Pass | Pass | Win |
Final Answer
Strategy:
- Player 3 (back): If the two hats in front are the same color, guess that color; otherwise, pass.
- Player 2 (middle): If Player 3 guessed, pass. If Player 3 passed, guess the opposite color of Player 1's hat.
- Player 1 (front): Always pass.
This strategy wins with probability ( \boxed{7/8} ).