Not exactly true, the simpler flip is to say your first choice was likely wrong. 2/3 of the picks will be Goat to start and thus wrong. Monty showing you a goat doesn't change that your orriginal pick has only 33% chance of being right.
The trap is in thinking that because there are two doors that it's a 50/50 guess again. A trap most people fall into being drilled on elementary statistics about a penny flip. If you flip a penny heads 10 times in a row, what are the odds you'll flip heads again? Yes, still 50/50 but those odds were always 50/50.
To simplify, if instead of opening a door he said to you: "Would you like to trade your one door for the other two doors?" you'd likely agree. You'd go from 1/3 to 2/3 chance of winning. Showing you the goat and making you labour on the two doors is simply a form of entertainment.
TM
BTW, in a discussion of this I rewrote the code for people who need more handholding:
#!/usr/bin/perl
my $wins = 0;
my $loses = 0;
print "\n";
for (my $i=1;$i<=1000000;$i++)
{
#all goats
@doors = [0,0,0];
#add a car
$doors[int rand(3)] = 1;
#contestant choice (cute varname declaration)
my $choice = int rand(3);
#monty makes his choice
my $shown = -1;
while($shown == -1)
{
$shown = int rand(3);
if
(
$shown == $choice || # he won't show contestants choice
$doors[$shown] == 1 # or show the car
) { $shown = -1 }
}
$doors[$shown] = -1; # out of the equasion
#If your on the car now, a change is a loss
if($doors[$choice] == 1)
{
$loses++;
}
# presuming you don't pick the exposed goat, else is
# a win.
else
{
$wins++;
}
printf("\r Wins:%8d Losses:%8d Win \%:%5.3f",
$wins,$loses,($wins/($i))*100);
}
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.