Why it happens

The Monty Hall Problem: Why Switching Wins 2 Times in 3

Yes, if the host knows where the car is, always opens another door with a goat and always offers the switch. Your first pick is right 1 time in 3, and switching wins the other 2. In 1,000 simulated games, switching won 666. If a host opening at random happens to show a goat, it's 1 in 2.

Stay or switch, 1,000 games

StopStay or switch
GamesSeed
Staying won0.0%Switching won0.0%

Three doors

Games won, of 0

Share of games won so far

02040608010002004006008001,000games% won
  • Exact: 2/3
  • Exact: 1/3
  • Switch
  • Stay

1/15Three doors: a car behind one, goats behind the other two. You pick a door. The host knows where the car is; he always opens another door with a goat behind it, then always offers you the switch. 1,000 games, the car placed at random each time.

  • CH1 your first pick, and staying
  • CH2 the door left closed, and switching

Watch the Python behind this model run, line by line

How to read the stage

Objective
Follow a few games door by door, then watch the two strategies' shares settle.
How this step gets you there
The text walks the first games of the default run and the final tally.

Three doors hide one car and two goats. In game 1 you pick door 2, the host opens door 1 to show a goat, and the car is behind door 3: switching wins. In game 3 your first pick was the car, and staying wins. Then the games run in batches. The bars and the chart count wins for always staying and always switching: with seed 1990, staying won 334 of 1,000 games and switching 666.

Why switching wins 2 in 3

Objective
Explain why the host's forced choice puts the car behind the other door 2 times in 3.
How this step gets you there
The text splits games by whether your first pick was right, and follows what the host must do in each.

Your first pick is right 1 time in 3, and nothing the host does moves the car. When your pick is a goat, 2 times in 3, the host can't open your door or the car, so he must open the other goat, and the door he leaves shut is the car. Switching wins exactly those games. His choice depends on where the car is, and that is what moves the odds onto the door he leaves shut.

The rules that make it 2 in 3

Objective
Name the four rules behind the 2 in 3, and see one way the answer changes without them.
How this step gets you there
The text lists the rules, breaks one, and quotes Martin Gardner on the puzzle's wording.

The answer holds only if the host knows where the car is, always opens a door you didn't pick, always shows a goat, and always offers the switch. Break one and it can change: a host who offers the switch only when you've picked the car makes switching lose every time. "The problem is not well-formed," Martin Gardner told The New York Times, "unless it makes clear that the host must always open an empty door and offer the switch."

A host who doesn't know

Objective
See that a goat revealed by chance leaves switching at 1/2, and why knowledge makes the difference.
How this step gets you there
The stage plays both hosts on the same rules and draws switching's share for each beside its exact line.

The second stage plays 3,000 games with each of two hosts. With the host who knows, switching won 67.1%, against an exact 2/3. The other opens a door at random. He showed the car in 1,022 games, which are thrown out; in the 1,978 where a goat happened to show, switching won 49.7%, against an exact 1/2. Jeffrey Rosenthal calls this version Monty Fall. Same doors, same goat: what changed is what the host knew.

A host who knows, and one who opens at random

StopTwo hosts
DoorsGames with each hostSeed
Switch, host knows0.0%Switch, at random, goats only0.0%

Host who knows: 0 games

Host who opens at random: 0 games showed only goats

Switching's share of wins

02040608010005001,0001,5002,0002,5003,000games% won by switching
  • Exact, host knows: 2/3
  • Exact, at random: 1/2
  • Host who knows
  • At random, goats only

1/113 doors, one car. In every game you pick a door, and the host leaves one other door closed and opens the third door. One host knows where the car is and never opens it. The other opens doors at random, and when he shows the car, the game is thrown out. 3,000 games with each.

  • CH1 staying
  • CH2 switching, host who knows
  • CH4 switching, host at random

Watch the Python behind this model run, line by line

From Selvin to vos Savant

Objective
Know where the puzzle came from and why its 1990 answer caused an uproar.
How this step gets you there
The text follows Selvin's 1975 letters, vos Savant's column and the letters that followed.

Steve Selvin posed the puzzle in a February 1975 letter to The American Statistician, and returned to it that August in a letter titled "On the Monty Hall Problem". In September 1990 Marilyn vos Savant said to switch in Parade. By The New York Times' account, she estimated 10,000 letters, the great majority disagreeing, and close to 1,000 of the critical ones carried Ph.D. signatures. Paul Erdős doubted it too; by Andrew Vázsonyi's account, a computer simulation changed his mind.

What the model leaves out

Objective
Name the model's assumptions, and what a real game show changed.
How this step gets you there
The text lists what the model fixes and how the real show differed.

The model places the car and your first pick uniformly at random, and its hosts follow fixed rules in every game. A real host can do otherwise. On his game show, by the Times' 1991 account, Monty Hall had the option of not offering the switch, and usually didn't. Then no fixed answer holds: it depends on why he offers.

Questions

Isn't it 50/50 once two doors are left?
Only if the host's choice tells you nothing, as with a host who opens a door at random. A host who knows never opens the car, so when your first pick is a goat, his choice is forced and points at the car. Two doors are left, but your door was picked blind and his survived his knowledge.
What happens with 100 doors?
You pick one, and a host who knows opens 98 others, all goats. Your door is right 1 time in 100, so the one he leaves shut wins 99 times in 100. A host opening 98 at random shows only goats 2% of the time, and in those games switching wins 1 in 2.
Did Monty Hall's show work this way?
Not exactly. In 1991 Monty Hall told The New York Times: "If the host is required to open a door all the time and offer you a switch, then you should take the switch," adding, "But if he has the choice whether to allow a switch or not, beware."

More of how it works