106Games

Why switching doors wins

Pick a door, see the host open a goat, then stay or switch. Play the game, change the number of doors and change what the host does. The play is random each time and nothing is saved.

The stage

Three doors, one car

You are on a game show. There are three closed doors. Behind one is a car and behind the other two are goats. You pick a door. The host knows where the car is. He opens one of the other two doors, and it has a goat. Then he asks: do you want to stay with your door or switch to the other closed door?

Many people say it makes no difference, since two doors are left and one hides the car. It does make a difference. Switching wins two times in three. Three acts. In the first, play the game and keep score. In the second, change the number of doors. In the third, change what the host does. The play is random each time and nothing is saved. Without a script each act shows one table or picture.

First act

Play it and keep score

Pick a door. The host opens a door with a goat. Then choose Stay or Switch. The page opens all the doors, and it keeps one score for the times you stayed and one for the times you switched.

Play twenty games and always switch, then twenty and always stay. Over a few games luck can fool you, so the scores will not match two in three exactly. Over many games they come close.

Why two in three: your first pick is right one time in three, and it stays one in three whatever the host does. The host never opens the car. So the other two thirds of the chance now sit on the one door he left shut.

You pick door 1. Where the car is, what the host does, and whether staying or switching wins
Car is behindHostStaySwitch
Door 1Opens door 2 or door 3WinsLoses
Door 2Opens door 3LosesWins
Door 3Opens door 2LosesWins

Each place of the car is one in three. Switching wins in two of the three.

Stayed: 0 of 0. Switched: 0 of 0.

Pick a door.

Second act

More doors

Make it bigger. Say there are a hundred doors. You pick one. The host, who knows where the car is, opens ninety-eight doors with goats and leaves one other door shut. Do you switch?

Your first pick was right one time in a hundred. So the shut door has the car ninety-nine times in a hundred. Slide the number of doors and see the chances. Then press Play 1,000 games and the page plays the game a thousand times with the best choice and the worst.

This version is a way to see the idea, and several of the sources use it. The host must open every door but one, and must never open the car.

Chance of winning by staying and by switching, for four numbers of doors
DoorsStaySwitch
333%67%
1010%90%
1001.0%99.0%
1,0000.1%99.9%

With 3 doors, staying wins 1 time in 3 and switching wins 2 in 3.

Third act

What the host does

The two in three only holds for a host who knows where the car is and always opens a door with a goat. The way the question was first printed did not say that, and that is part of why people argued about it.

Pick a host. With the first, switching wins two in three. With a host who opens a door at random, and it happens to be a goat, staying and switching are even: one in two each. With a host who offers a switch only when you picked the car, switching never wins. The cards show every case when you pick door 1. Faded cards do not fit what you saw.

So the answer depends on how the host chooses. That is the real lesson. A fact you see means something only when you know how it was picked.

Three kinds of host, and the chance that staying or switching wins
HostStaySwitch
Knows and always opens a goat33%67%
Opens a door at random50%50%
Offers only if you picked the car100%0%
CarDoor 1GoatDoor 2Door 3Stay winsCarDoor 1Door 2GoatDoor 3Stay winsDoor 1CarDoor 2GoatDoor 3Switch winsDoor 1GoatDoor 2CarDoor 3Switch wins

The host knows where the car is. Whatever you pick, he opens a door with a goat and offers the switch. Switching wins 67% of the time.

Key takeaways

  1. With three doors, a host who knows where the car is and always opens a goat door, staying wins one time in three and switching wins two in three.
  2. Your first pick keeps its one in three. The host never opens the car, so the rest of the chance sits on the one door he left shut.
  3. With a hundred doors, switching wins ninety-nine times in a hundred.
  4. The result depends on the host. If he opens a door at random and it happens to show a goat, staying and switching are equal.
  5. In one study, pigeons learned over many tries to switch almost every time. People given the same practice did not.

Sources

Some of these sites could not be opened while this page was written, so some facts were checked through search results that quote them. The setting, a letter by Steve Selvin to The American Statistician in 1975, the question sent to Marilyn vos Savant that was printed in Parade in September 1990, her answer to switch, and the thousands of letters that said she was wrong each appeared in several places. The sources differ on whether Selvin posed the puzzle or only gave it its name, so the page says he wrote about it. The two in three result, the hundred door version and the point that the host must always open a goat door each appeared in several places. The one in two result for a host who opens a door at random was in search results and was also worked out here by listing the cases. The trick host is an example worked out for this page and is not from a source. The pigeon study by Herbranson and Schroeder from 2010, in which the birds went from switching about a third of the time on the first day to nearly always after a month, appeared in several news reports and one follow-up paper. A claim that Paul Erdos was convinced only by a computer simulation appeared in search results but is left out because it is a story. The chances on this page were worked out and are the same as in the sources. The game is random. Nothing here is advice about gambling.