The Monty Hall problem

AlignAlign Remain Calm Join Date: 2002-11-02 Member: 5216Forum Moderators, Constellation
<div class="IPBDescription">3 doors, 2 goats, 1 car</div><a href="http://www.youtube.com/watch?v=mhlc7peGlGg" target="_blank">http://www.youtube.com/watch?v=mhlc7peGlGg</a>
Basically:
<!--quoteo--><div class='quotetop'>QUOTE </div><div class='quotemain'><!--quotec-->You find yourself on a game show, you're given the choice of three doors. Behind one door is a car, behind the others, goats. You pick a door #1, and the host, who knows what's behind the doors, opens another door, say #3, which has a goat. He says to you, "Do you want to pick door #2?" Is it to your advantage to switch your choice of doors?<!--QuoteEnd--></div><!--QuoteEEnd-->

I still think the answer given is stupid as hell, even though I vaguely remember one of my maths teachers proving it to me. There're 2 doors to choose from, not 3, the chance can't be 33% or 66%.

Comments

  • juicejuice Join Date: 2003-01-28 Member: 12886Members, Constellation
    Spoiler? ..
    <span style='color:#000000;background:#000000'>The way that it makes the most sense to me is realizing that there is a *chance* that the "choice" of door the host reveals to have the goat, gives you information about which door has the car. But then the fact that there is a chance it gives you information is information itself.</span>
    ..
  • locallyunscenelocallyunscene Feeder of Trolls Join Date: 2002-12-25 Member: 11528Members, Constellation
    So are you and statistics fighting or officially broken up?

    I don't know what else to say. I don't believe math lies?
  • TalesinTalesin Our own little well of hate Join Date: 2002-11-08 Member: 7710NS1 Playtester, Forum Moderators
    It's one of those fun gotchas that math students (and lame movies like '21') like to push. As soon as the chances of winning go from 3:1 to 2:1, you go from a 33% chance of winning to a 50% chance; a 17% increase in your likelihood of winning. They skip over that your chance of losing increases to 50% as well. As far as whether to switch doors is a good idea or not, it's still a 2:1 shot regardless of which door you choose. If the show follows their standard profile, the first guess doesn't count. No matter if you guess right or wrong, they'll open a wrong door to show you how you 'guessed well'. It's to psych you and the audience out, and prolong the tension.


    Short version, personally, I'd go for the middle door. When they open a wrong door (assuming a goat) I'd watch the goat. If it's looking toward my door, change. If not, stay. After all, a goat is more likely to look at another goat, than a car.
  • juicejuice Join Date: 2003-01-28 Member: 12886Members, Constellation
    That's not quite right, Talesin. It really is a 66% chance of winning overall if you do it right.

    Yes, it is a really annoying gotcha, though. It definitely pissed me off until I figured it out. I was way into the presentation of the question at first, thinking like "well, you have to know the motivations of the host...and then whether he thinks you're smart or not, like in a game of rock-paper-scissors..." until I realized he's like an automaton. Then I got to the point of thinking about it being 50:50. Then I finally figured it out.

    But I agree with the short version method. Although I do like all things de chevre... mmmmmm goat butter... goat cheese...
  • lolfighterlolfighter Snark, Dire Join Date: 2003-04-20 Member: 15693Members
    edited July 2009
    <!--quoteo(post=1717704:date=Jul 17 2009, 01:30 AM:name=Align)--><div class='quotetop'>QUOTE (Align @ Jul 17 2009, 01:30 AM) <a href="index.php?act=findpost&pid=1717704"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->I still think the answer given is stupid as hell, even though I vaguely remember one of my maths teachers proving it to me. There're 2 doors to choose from, not 3, the chance can't be 33% or 66%.<!--QuoteEnd--></div><!--QuoteEEnd-->
    I thought the video leaves this perfectly clear. Yes, there are two doors, but the chance of the car being behind either is not the same. The car is twice as likely to be behind the door you DIDN'T choose originally rather than behind the one you did. So the 33% and 66% chances are correct.

    To rehash: Assume that you swap after the reveal. If you originally pick a goat, the host will reveal the OTHER goat, so the last door has the car. If you originally pick the car, the host will reveal either goat, and the last door has a goat as well. If you originally pick a goat, you get the car in the end. If you originally pick the car, you get a goat in the end. However, there are initially two goats and only one car. So the chance of picking a goat initially (and therefore winning a car in the end if you swap) is twice as high as picking the car first. In other words, when swapping your chances of winning the car are 66%, and 33% for a goat.
  • AlignAlign Remain Calm Join Date: 2002-11-02 Member: 5216Forum Moderators, Constellation
    edited July 2009
    That's just playing with words and numbers. At the crux of it you have two doors to choose from, one has a goat, the other doesn't. The third is irrelevant.

    This is like trying to predict the fall of a die. You have 1/6 * 1/6 = 1/36 chance of getting two sixes in a row (or any values where the order is important). Roll the dice once, get a six. What is the chance of another? Still 1/6, because the next fall doesn't care about the previous results. It's the difference between predicting from the start and from when you're actually there.
  • KassingerKassinger Shades of grey Join Date: 2002-02-20 Member: 229Members, Constellation
    edited July 2009
    <!--quoteo(post=1717749:date=Jul 17 2009, 03:31 PM:name=Align)--><div class='quotetop'>QUOTE (Align @ Jul 17 2009, 03:31 PM) <a href="index.php?act=findpost&pid=1717749"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->That's just playing with words and numbers. At the crux of it you have two doors to choose from, one has a goat, the other doesn't. The third is irrelevant.

    This is like trying to predict the fall of a die. You have 1/6 * 1/6 = 1/36 chance of getting two sixes in a row (or any values where the order is important). Roll the dice once, get a six. What is the chance of another? Still 1/6, because the next fall doesn't care about the previous results. It's the difference between predicting from the start and from when you're actually there.<!--QuoteEnd--></div><!--QuoteEEnd-->

    Fail. But you are in good company, lot of mathematical literate people also thought Marilyn Vos Savant was mistaken back in 1990, even Nobel laureates.

    Look at it this way. If you switch, you will only lose if you originally chose a car (1/3). If you originally chose a goat and switch, you will win because the only door left is the one for the car (2/3). If you switch you will win 2/3 of the time, if you don't switch nothing has changed and you still have 1/3 chance of winning.

    Just go through it again and again. And your example with dice is irrelevant for the problem, because with the dices the previous outcome really doesn't affect the next throw of a dice, whereas in the Monty Hall problem the host actively changes the chance of picking a car if you swap.

    See the <a href="http://Wikipedia%20article"" target="_blank">http://en.wikipedia.org/wiki/Monty_Hall_problem</a> for examples and explanations]Wikipedia article[/url] for examples and explanations.
  • KassingerKassinger Shades of grey Join Date: 2002-02-20 Member: 229Members, Constellation
    Here's an <a href="http://math.ucsd.edu/~crypto/Monty/Montytitle.html" target="_blank">simulator</a> from the University of California mathematics department. Here you can play both where the host knows where the car is, and one where he doesn't know. The last one is quite funny actually. :)
  • lolfighterlolfighter Snark, Dire Join Date: 2003-04-20 Member: 15693Members
    <!--quoteo(post=1717749:date=Jul 17 2009, 11:31 AM:name=Align)--><div class='quotetop'>QUOTE (Align @ Jul 17 2009, 11:31 AM) <a href="index.php?act=findpost&pid=1717749"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->That's just playing with words and numbers. At the crux of it you have two doors to choose from, one has a goat, the other doesn't. The third is irrelevant.

    This is like trying to predict the fall of a die. You have 1/6 * 1/6 = 1/36 chance of getting two sixes in a row (or any values where the order is important). Roll the dice once, get a six. What is the chance of another? Still 1/6, because the next fall doesn't care about the previous results. It's the difference between predicting from the start and from when you're actually there.<!--QuoteEnd--></div><!--QuoteEEnd-->
    You're partially correct. If you are given two doors to choose from, and there's a fifty-fifty chance that the car is behind either and you have no idea which door it is, then it doesn't matter which door you choose. But that's not the case. You start out knowing nothing, and having a 66% chance to pick a goat. Then the host removes one goat from the equation. This does not affect your original choice - if you stick with what you picked, you still have a 66% chance to get a goat.

    If it still doesn't make sense to you, try imagining it with <u><b>100</b></u> doors. 99 goats, 1 car. You ALWAYS switch. You pick a door, the host removes 98 goats, you switch doors. If you initially picked a goat, the door you switch to will have the car. Imagine it with 1000 doors. With 10000 doors. In each case, as long as you switch doors, you only lose if you manage to initially pick the door with the car behind it. In any other case you pick a goat, the host removes X minus 2 goats (where X = number of doors) and the other door (which you then switch to) contains the car.
  • briktalbriktal Join Date: 2003-08-20 Member: 20021Members, Constellation
    <!--quoteo(post=1717749:date=Jul 17 2009, 05:31 AM:name=Align)--><div class='quotetop'>QUOTE (Align @ Jul 17 2009, 05:31 AM) <a href="index.php?act=findpost&pid=1717749"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->That's just playing with words and numbers. At the crux of it you have two doors to choose from, one has a goat, the other doesn't. The third is irrelevant.

    This is like trying to predict the fall of a die. You have 1/6 * 1/6 = 1/36 chance of getting two sixes in a row (or any values where the order is important). Roll the dice once, get a six. What is the chance of another? Still 1/6, because the next fall doesn't care about the previous results. It's the difference between predicting from the start and from when you're actually there.<!--QuoteEnd--></div><!--QuoteEEnd-->

    Except it is relevant. You know that the eliminated door didn't have the car (because of the rules of the game).

    The car is either behind the door you picked, or behind one of the doors you didn't, so there's a 1/3rd chance you picked the right door. However, since one of the goat doors is eliminated, "the other two doors" becomes an option for you in the switch.

    Say you pick A. There's a 1/3rd chance the car is behind A. There's a 2/3rd chance it's behind either B or C, and you know it isn't behind C. That means there's a 2/3rd chance it's behind B, which means you are better off switching.

    ~~Sickle~~
  • AlignAlign Remain Calm Join Date: 2002-11-02 Member: 5216Forum Moderators, Constellation
    <!--quoteo(post=1717763:date=Jul 17 2009, 02:41 PM:name=lolfighter)--><div class='quotetop'>QUOTE (lolfighter @ Jul 17 2009, 02:41 PM) <a href="index.php?act=findpost&pid=1717763"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->If it still doesn't make sense to you, try imagining it with <u><b>100</b></u> doors. 99 goats, 1 car. You ALWAYS switch. You pick a door, the host removes 98 goats, you switch doors. If you initially picked a goat, the door you switch to will have the car.<!--QuoteEnd--></div><!--QuoteEEnd-->
    NOW it makes sense, thank you.
  • locallyunscenelocallyunscene Feeder of Trolls Join Date: 2002-12-25 Member: 11528Members, Constellation
    <!--quoteo(post=1717763:date=Jul 17 2009, 08:41 AM:name=lolfighter)--><div class='quotetop'>QUOTE (lolfighter @ Jul 17 2009, 08:41 AM) <a href="index.php?act=findpost&pid=1717763"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->If it still doesn't make sense to you, try imagining it with <u><b>100</b></u> doors. 99 goats, 1 car. You ALWAYS switch. You pick a door, the host removes 98 goats, you switch doors. If you initially picked a goat, the door you switch to will have the car.<!--QuoteEnd--></div><!--QuoteEEnd-->
    But what if I want 99 goats instead?
  • juicejuice Join Date: 2003-01-28 Member: 12886Members, Constellation
    I choose 99 goats over a car ANY day.
  • RobRob Unknown Enemy Join Date: 2002-01-24 Member: 25Members, NS1 Playtester
    <!--quoteo(post=1717793:date=Jul 17 2009, 12:15 PM:name=juice)--><div class='quotetop'>QUOTE (juice @ Jul 17 2009, 12:15 PM) <a href="index.php?act=findpost&pid=1717793"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->I choose 99 goats over a car ANY day.<!--QuoteEnd--></div><!--QuoteEEnd-->

    Absolutely. Let's take this yahoo article as gospel: <a href="http://answers.yahoo.com/question/index?qid=20080918103801AA9QZWj" target="_blank">http://answers.yahoo.com/question/index?qi...18103801AA9QZWj</a>

    Goat milk can go for 18 USD / gallon. Each goat produces ~1 gallon a day. All you need to do is sell out your stock every day to make 650,000 USD a year!
  • KassingerKassinger Shades of grey Join Date: 2002-02-20 Member: 229Members, Constellation
    <!--quoteo(post=1717795:date=Jul 17 2009, 10:29 PM:name=Rob)--><div class='quotetop'>QUOTE (Rob @ Jul 17 2009, 10:29 PM) <a href="index.php?act=findpost&pid=1717795"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Absolutely. Let's take this yahoo article as gospel: <a href="http://answers.yahoo.com/question/index?qid=20080918103801AA9QZWj" target="_blank">http://answers.yahoo.com/question/index?qi...18103801AA9QZWj</a>

    Goat milk can go for 18 USD / gallon. Each goat produces ~1 gallon a day. All you need to do is sell out your stock every day to make 650,000 USD a year!<!--QuoteEnd--></div><!--QuoteEEnd-->

    Ok, but I'm only interested if I could get cheap/slave labour to do all the milking and selling.
  • ScytheScythe Join Date: 2002-01-25 Member: 46NS1 Playtester, Forum Moderators, Constellation, Reinforced - Silver
    I couldn't satisfy myself without numerically solving it:

    <!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->#include "math.h"
    #include "stdio.h"

    int main(int argc, char* argv)
    {
        int doors[3];
        int swapwins;
        int keepwins;
        int mypick;
        int mynewpick;
        int hostpick;
        int swaps;
        int keeps;

        swapwins = 0;
        keepwins = 0;
        mypick = 0;
        mynewpick = 0;
        hostpick = 0;
        swaps = 0;
        keeps = 0;

        // 0 = Goat, 1 = Car

        while (1)
        {
            doors[0] = 0;
            doors[1] = 0;
            doors[2] = 0;

            doors[rand_minmax(0,2)] = 1;

            mypick = rand_minmax(0,2);

            do {
               hostpick = rand_minmax(0,2);
            } while ((hostpick == mypick) || (doors[hostpick] == 1));
            
            if (rand_minmax(0,1))
            {
                // Swap
                swaps++;
                do {
                    mynewpick = rand_minmax(0,2);
                } while ((mynewpick == mypick) || (mynewpick == hostpick));
                swapwins += doors[mynewpick];
                printf("Swap win ratio: %f\n", (float)swapwins / (float)swaps);
            } else {
                // Don't swap
                keeps++;
                keepwins += doors[mypick];
                printf("Keep win ratio: %f\n", (float)keepwins / (float)keeps);
            }
        }

        return 0;
    }

    int rand_minmax(int min, int max)
    {
        if ((max - min + 1) == 0) return 0;
        return rand() % (max - min + 1) + min;
    }<!--c2--></div><!--ec2-->

    Swap win ratio: 0.665485
    Keep win ratio: 0.333169

    Numbers seem clear.

    --Scythe--
  • juicejuice Join Date: 2003-01-28 Member: 12886Members, Constellation
    Lol scythe and his goat-car-door simulation.
  • locallyunscenelocallyunscene Feeder of Trolls Join Date: 2002-12-25 Member: 11528Members, Constellation
    <!--quoteo(post=1717871:date=Jul 17 2009, 11:30 PM:name=Scythe)--><div class='quotetop'>QUOTE (Scythe @ Jul 17 2009, 11:30 PM) <a href="index.php?act=findpost&pid=1717871"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->I couldn't satisfy myself without numerically solving it:

    Swap win ratio: 0.665485
    Keep win ratio: 0.333169

    Numbers seem clear.

    --Scythe--<!--QuoteEnd--></div><!--QuoteEEnd-->
    Shouldn't that add up to 100%? My C is a little rusty so maybe it is accounting for the 0.15% where the goats run away with the car?
  • briktalbriktal Join Date: 2003-08-20 Member: 20021Members, Constellation
    <u>Doing simulations like that are handy when you can't remember the formula to get the answer normally.</u>

    ~~Sickle~~
  • KassingerKassinger Shades of grey Join Date: 2002-02-20 Member: 229Members, Constellation
    <!--quoteo(post=1718255:date=Jul 20 2009, 11:32 PM:name=locallyunscene)--><div class='quotetop'>QUOTE (locallyunscene @ Jul 20 2009, 11:32 PM) <a href="index.php?act=findpost&pid=1718255"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Shouldn't that add up to 100%? My C is a little rusty so maybe it is accounting for the 0.15% where the goats run away with the car?<!--QuoteEnd--></div><!--QuoteEEnd-->

    Swap win ratio + swap lose ratio should be 100%. But swap win ratio and keep win ratio are two different experiments, so there is no need for them to become 100% together.

    Done many enough times they should each approximate two numbers that together make up 100%, but that is beside the point, just because 1/3 chance of winning + 2/3 chance of winning equals 1.
  • RobRob Unknown Enemy Join Date: 2002-01-24 Member: 25Members, NS1 Playtester
    <!--quoteo(post=1718291:date=Jul 20 2009, 04:36 PM:name=briktal)--><div class='quotetop'>QUOTE (briktal @ Jul 20 2009, 04:36 PM) <a href="index.php?act=findpost&pid=1718291"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec--><u>Doing simulations like that are handy when you can't remember the formula to get the answer normally.</u>

    ~~Sickle~~<!--QuoteEnd--></div><!--QuoteEEnd-->

    Quite so.
  • juicejuice Join Date: 2003-01-28 Member: 12886Members, Constellation
    If you get the sum of the probability of a goat and probability of a car less than 100%, it means <a href="http://extremegoats.ytmnd.com/" target="_blank"> something horrible must have happened to some of the goats</a>...
  • ThansalThansal The New Scum Join Date: 2002-08-22 Member: 1215Members, Constellation
    <!--quoteo(post=1717784:date=Jul 17 2009, 11:40 AM:name=Align)--><div class='quotetop'>QUOTE (Align @ Jul 17 2009, 11:40 AM) <a href="index.php?act=findpost&pid=1717784"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->NOW it makes sense, thank you.<!--QuoteEnd--></div><!--QuoteEEnd-->
    Seriously, lolf wins at explanations. I was kinda with you Align (I men, I knew you were wrong, but I couldn't accept it either). But lolf's explanation is great :D
  • lolfighterlolfighter Snark, Dire Join Date: 2003-04-20 Member: 15693Members
  • puzlpuzl The Old Firm Join Date: 2003-02-26 Member: 14029Retired Developer, NS1 Playtester, Forum Moderators, Constellation
    edited July 2009
    Anyone interested in the Monty Hall problem should look into the drama between Marylin von Savant and several professors, including nobel nominated physicists.
    After she explained the monty hall problem in parade magazine she was inundated with letters from academia explaining how she couldn't possibly be wrong.

    There's a great discussion on it at her website <a href="http://www.marilynvossavant.com/articles/gameshow.html" target="_blank">http://www.marilynvossavant.com/articles/gameshow.html</a>
    with followup discussion on her forum <a href="http://www.marilynvossavant.com/forum/viewtopic.php?t=64" target="_blank">http://www.marilynvossavant.com/forum/viewtopic.php?t=64</a>

    here's the key line for me:
    "When you first choose door #1 from three, there's a 1/3 chance that the prize is behind that one and a 2/3 chance that it's behind one of the others. But then the host steps in and gives you a clue. If the prize is behind #2, the host shows you #3, and if the prize is behind #3, the host shows you #2. So when you switch, you win if the prize is behind #2 or #3. You win either way! But if you don't switch, you win only if the prize is behind door #1. "


    Or in other words, if you stick you win if you were right the first time ( 1/3 ) but if you switch you win if you were wrong the first time ( 2/3 )
  • lolfighterlolfighter Snark, Dire Join Date: 2003-04-20 Member: 15693Members
    It's really astonishing how many people got this one wrong, but at least that's a consolation for those of us (and I'm not being smug here, I got it wrong too the first time I heard of it) who had trouble with it.
  • tankefugltankefugl One Script To Rule Them All... Trondheim, Norway Join Date: 2002-11-14 Member: 8641Members, Retired Developer, NS1 Playtester, Constellation, NS2 Playtester, Squad Five Blue
    edited July 2009
    This, as with many other statistical problems, is better solved if you think about which conditions that will make you lose instead of winning. The problem made sense to me by this thinking:

    With a door swapping strategy, only picking the door with the car (1/3) will make you lose.

    (This forum needs more math.)
  • FaskaliaFaskalia Wechsellichtzeichenanlage Join Date: 2004-09-12 Member: 31651Members, Constellation
    Back in school I wrote a small delphi program, which would solve it for m doors, n prizes, o opened doors, p chosen doors.

    Anyway: It is pretty easy to grasp, that the chance of getting the prize changes for the chosen doors differently than for the not choosen doors by making the example extreme.

    100 doors
    1 prize

    You select 1 door
    98 doors which do not contain the prize open.

    Do you switch to the other closed door?


    Now slowly reduce the number of doors till you are at 3 doors .

    I hope this helps some of you, to get into the right mindset.

    ------------------------------------------------

    Another approach is to look at it the following way:

    You choose a door.
    Now the chance that the car is behind your door is 1/3
    The chance of the car being behind the other 2 doors is 1/3+1/3 = 2/3

    When the gamemaster opens 1 door the door that you hold has nothing changed to it. The chance is still 1/3.

    And the chance that the car is behind the other 2 doors is also left unchanged: 2/3

    BUT one of the unselected doors has now a chance of 0. So in order for the 2 unselected doors to have a total chance of 2/3 the unselected and unchosen doors needs to have a chance of 2/3.
  • AlignAlign Remain Calm Join Date: 2002-11-02 Member: 5216Forum Moderators, Constellation
    <!--quoteo(post=1719400:date=Jul 26 2009, 05:10 PM:name=tankefugl)--><div class='quotetop'>QUOTE (tankefugl @ Jul 26 2009, 05:10 PM) <a href="index.php?act=findpost&pid=1719400"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->This, as with many other statistical problems, is better solved if you think about which conditions that will make you lose instead of winning. The problem made sense to me by this thinking:

    With a door swapping strategy, only picking the door with the car (1/3) will make you lose.<!--QuoteEnd--></div><!--QuoteEEnd-->
    That didn't help me at all back then, since the problem was with the reasoning for there being different chances.

    <!--quoteo(post=1719404:date=Jul 26 2009, 07:15 PM:name=Faskalia)--><div class='quotetop'>QUOTE (Faskalia @ Jul 26 2009, 07:15 PM) <a href="index.php?act=findpost&pid=1719404"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Back in school I wrote a small delphi program, which would solve it for m doors, n prizes, o opened doors, p chosen doors.

    Anyway: It is pretty easy to grasp, that the chance of getting the prize changes for the chosen doors differently than for the not choosen doors by making the example extreme.

    100 doors
    1 prize

    You select 1 door
    98 doors which do not contain the prize open.

    Do you switch to the other closed door?<!--QuoteEnd--></div><!--QuoteEEnd-->
    lolf already showed this, fask
  • tjosantjosan Join Date: 2003-05-16 Member: 16374Members, Constellation
    edited July 2009
    An interesting thought came to me while I was taking a dump. What if you were presented with this problem before going on the show, depending on what you believe is the right answer, should you change doors?

    Of course you should change doors regardless. According to the theory that was disproven it would make no difference, while according to the correct theory you should change doors. You have better odds changing doors regardless of what you originally believe since there is always a chance you are wrong.

    Thus the discussion is only of academic interest I could care less! Cow says MOOT.
Sign In or Register to comment.