Jump to content

Monty Hall problem: Difference between revisions

Better statement of problem.
(Better statement of problem.)
Line 2:
Run random simulations of the [http://en.wikipedia.org/wiki/Monty_Hall_problem Monty Hall] game. Show the effects of a strategy of the contestant always keeping his first guess so it can be contrasted with the strategy of the contestant always switching his guess.
 
==Problem Statement==
A well-known statement of the problem was published in ''[[Parade (magazine)|Parade]]'' magazine:
:Suppose you're on a game show, and you're given the choice of three doors:. Behind one door is a car; behind the others, goats. YouThe pickcar and the goats were placed randomly behind the doors before the show. The rules of the game show are as follows: After you have chosen a door, saythe No.door 1,remains andclosed for the time being. The game show host, Monty Hall, who knows what's is behind the doors, now has to open one of the two remaining doors, and the door he opens anothermust have a goat behind it. If both remaining doors have goats behind them, he chooses one randomly. After Monty Hall opens a door with a goat, sayhe Nowill ask you to decide whether you want to stay with your first choice or to switch to the last remaining door. Imagine that you chose Door 1 and the host opens Door 3, which has a goat. He then says toasks you, "Do you want to pickswitch doorto No.Door Number 2?" Is it to your advantage to switchchange your choice? ([[#refWhitaker1990refKraussandWang2003|WhitakerKrauss 1990and Wang 2003:10]])}}
 
Note that the player may initially choose any of the three doors (not just Door 1), that the host opens a different door revealing a goat (not necessarily Door 3), and that he gives the player a second choice between the two remaining unopened doors.
 
Simulate at least a thousand games using three doors for each strategy and show the results in such a way as to make it easy to compare the effects of each strategy.
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.