Monty Hall
by Marcus
18 Jan 2010
(Updated 26 Apr 2010)
Simulate n rounds of Monty Hall problem with a variable number of doors.
|
Watch this File
|
| File Information |
| Description |
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. You pick a door, say No. 1, and the host, who knows what's behind the doors, opens another door, say No. 3, which has a goat. He then says to you, "Do you want to pick door No. 2?" Is it to your advantage to switch your choice? -Whitaker
This program demonstrates that yes, your chances of winning are improved if you switch. |
| MATLAB release |
MATLAB 7.9 (2009b)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 19 Jan 2010 |
Optimized coding;
Much faster execution;
Simpler output. |
| 20 Jan 2010 |
Add more comments and explanation;
Very slight code modifications. |
| 22 Jan 2010 |
Typo correction. |
| 26 Apr 2010 |
fixed bug where round by round mode for more than 3 doors only showed monty opening one door when in fact he opens all other doors except two |
|
Contact us at files@mathworks.com