๐Ÿงฎ Brain Teaser

The Three-Door Switcheroo: A Generalized Monty Hall

You are on a game show with nโ‰ฅ3n \geq 3 doors. Behind one door is a car; the rest hide goats. You pick a door. The host (who knows where the car is) then opens kk of the remaining doors, all revealing goats, where 1โ‰คkโ‰คnโˆ’21 \leq k \leq n-2. The host then offers you the chance to switch to any one of the remaining nโˆ’1โˆ’kn - 1 - k unopened doors (not your original).

Questions:

  1. What is the probability of winning if you stay?
  2. What is the probability of winning if you switch (choosing uniformly at random among the nโˆ’1โˆ’kn-1-k remaining doors)?
  3. For fixed nn, as kk increases (the host opens more doors), what happens to the advantage of switching?
conditional probabilityMonty HallBayesian reasoninggame showinformation

Answer: The Three-Door Switcheroo: Generalized Monty Hall

Key Idea / Intuition

The crucial insight: your original door was chosen before any information arrived, so it always holds the car with probability 1/n1/n. The host's action of opening goat-doors concentrates all the remaining 1โˆ’1/n=(nโˆ’1)/n1 - 1/n = (n-1)/n probability among the other doors. When the host opens kk of those nโˆ’1n-1 doors (guaranteed goats), the surviving nโˆ’1โˆ’kn-1-k doors share that (nโˆ’1)/n(n-1)/n mass equally. So switching is always better, and the advantage grows as the host opens more doors โ€” in the extreme, if k=nโˆ’2k = n-2, switching wins with probability (nโˆ’1)/n(n-1)/n.


Formal Proof / Solution

Setup

Label the doors 1,โ€ฆ,n1, \ldots, n. The car is equally likely to be behind any door. You pick door 1. The host opens kk doors from {2,โ€ฆ,n}\{2, \ldots, n\}, all goats. You may now stay or switch to one of the remaining nโˆ’1โˆ’kn-1-k doors in {2,โ€ฆ,n}\{2, \ldots, n\}.


Part 1: Probability of winning by staying

Your initial choice captures the car with probability

P(winโˆฃstay)=1n.P(\text{win} \mid \text{stay}) = \frac{1}{n}.

The host's action reveals no information about whether your door has the car (he always opens only goat doors regardless), so this probability is unchanged.


Part 2: Probability of winning by switching

The car is not behind your door with probability

P(carย isย elsewhere)=nโˆ’1n.P(\text{car is elsewhere}) = \frac{n-1}{n}.

Conditional on this event, the car is equally likely to be behind any one of the nโˆ’1n-1 other doors. The host opens kk of these nโˆ’1n-1 doors (all goats), leaving nโˆ’1โˆ’kn-1-k doors. By symmetry, the car is equally likely to be behind any of these nโˆ’1โˆ’kn-1-k surviving doors. So if you switch to one uniformly at random:

P(winโˆฃswitch)=nโˆ’1nโ‹…1nโˆ’1โˆ’k=nโˆ’1n(nโˆ’1โˆ’k).P(\text{win} \mid \text{switch}) = \frac{n-1}{n} \cdot \frac{1}{n-1-k} = \frac{n-1}{n(n-1-k)}.


Part 3: Advantage of switching grows with kk

Define the switching advantage:

Advantage=P(winโˆฃswitch)โˆ’P(winโˆฃstay)=nโˆ’1n(nโˆ’1โˆ’k)โˆ’1n.\text{Advantage} = P(\text{win} \mid \text{switch}) - P(\text{win} \mid \text{stay}) = \frac{n-1}{n(n-1-k)} - \frac{1}{n}.

Simplifying:

=1n(nโˆ’1nโˆ’1โˆ’kโˆ’1)=1nโ‹…knโˆ’1โˆ’k.= \frac{1}{n}\left(\frac{n-1}{n-1-k} - 1\right) = \frac{1}{n} \cdot \frac{k}{n-1-k}.

This is strictly increasing in kk. As kโ†’nโˆ’2k \to n-2 (the maximum, leaving only 1 other door):

P(winโˆฃswitch)โ†’nโˆ’1n,Advantageโ†’nโˆ’1nโˆ’1n=nโˆ’2n.P(\text{win} \mid \text{switch}) \to \frac{n-1}{n}, \qquad \text{Advantage} \to \frac{n-1}{n} - \frac{1}{n} = \frac{n-2}{n}.


Sanity Check: Classic Monty Hall

Set n=3n = 3, k=1k = 1:

P(stay)=13,P(switch)=23โ‹…1=23.โœ“P(\text{stay}) = \frac{1}{3}, \quad P(\text{switch}) = \frac{2}{3 \cdot 1} = \frac{2}{3}. \checkmark


Summary Table

| nn | kk | P(stay)P(\text{stay}) | P(switch)P(\text{switch}) | |-----|-----|------|---------| | 3 | 1 | 1/3 | 2/3 | | 4 | 1 | 1/4 | 3/8 | | 4 | 2 | 1/4 | 3/4 | | 100 | 98 | 1/100 | 99/100 |

The host is essentially a teacher: the more goats they eliminate, the louder they scream "the car is probably over there!"

Source: Mathematical folklore / classic probability puzzle (generalization of Monty Hall problem)

Type: ProbabilitySource: Mathematical folklore / classic probability puzzle (generalization of Monty Hall problem)Edit on GitHub โ†—