Page 1 of 2 12 LastLast
Results 1 to 25 of 30

Thread: 3 doors: 2 goats, 1 car. "proved" this theory with SCAR

  1. #1
    Join Date
    Aug 2008
    Location
    Finland
    Posts
    2,851
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default 3 doors: 2 goats, 1 car. "proved" this theory with SCAR

    You're in a quiz. The host shows you 3 doors. Behind one of them, there's a sports car. Behind the 2 others, there's a goat. Host asks you to pick one of those doors. After you have picked one, he opens one of the 2 remaining doors and says "ahaa, there was a goat behind this door. There are still 2 doors left. The sports car is either behind the door you already chose, or it is behind this one here. You have a chance to change your mind now if you want to."

    Do you change your door?

    Mathematics claim that you should change the door, thus giving you a better chance to win. I made a scar script to check if this is true.

    Ofcourse, even if i ran the script a billion times, it doesn't prove anything 100%, because it's all about propabilities, which cannot be proved by testing something. But, believe whatever you want to.

    I ran the script 100000 times, and it seems that if you change the door, your chance is 50%. If you don't change, your chance is 33%.

    DoorsAndGoat.scar
    : you can pick the door yourself, this is to show that my script works correctly.
    DoorsAndGoat_AUTOMATED.scar: Here the whole process is automated.
    PHP Code:
    Wins:    569
    Losses:  568
    WinRate0,500439753737907 
    EDIT: Fixed a bug! Please redownload!
    Last edited by marpis; 08-30-2009 at 05:00 AM.

  2. #2
    Join Date
    Oct 2007
    Location
    http://ushort.us/oqmd65
    Posts
    2,605
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Lol 21....

    O.k, at the beginning you have a 33% chance. And the others have 33%.

    You still hold 33% and the other one is gone so the other door gets the additional %33. So, the chance of the current one you have is 33% and the other one is 66%.

    So switch. And chances are good you = win.
    I do visit every 2-6 months

  3. #3
    Join Date
    Dec 2006
    Location
    Houston, TX USA
    Posts
    4,791
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by ZaSz View Post
    Lol 21....

    O.k, at the beginning you have a 33% chance. And the others have 33%.

    You still hold 33% and the other one is gone so the other door gets the additional %33. So, the chance of the current one you have is 33% and the other one is 66%.

    So switch. And chances are good you = win.
    No that isn't true at all.

    You have a 33% chance of picking the right door in the beginning, if you make it to round 2 the door you have and the other one have an exactly 50% of being the car on each one.

    Simply math, stupid movie.

    This theory is not proved with SCAR at all, it's entirely a concept not subject to any trial.

  4. #4
    Join Date
    Mar 2006
    Posts
    3,051
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Code:
    1: begin
               if Doors[2] then
                 TakeAway := 3
               else
                 TakeAway := 3
             end;
    Doesn't look right...


  5. #5
    Join Date
    Dec 2006
    Location
    Houston, TX USA
    Posts
    4,791
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Rest assured the script is fine and so is the math of variable chance is 66% as it would show with any statistic or computer simulation.

    But when it boils down to actual probability of you winning it's really 50% a coin flip.

    The real problem is people are applying math to something that math can't determine.

  6. #6
    Join Date
    Jul 2009
    Posts
    421
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by marpis View Post
    You're in a quiz. The host shows you 3 doors. Behind one of them, there's a sports car. Behind the 2 others, there's a goat. Host asks you to pick one of those doors. After you have picked one, he opens one of the 2 remaining doors and says "ahaa, there was a goat behind this door. There are still 2 doors left. The sports car is either behind the door you already chose, or it is behind this one here. You have a chance to change your mind now if you want to."

    Do you change your door?

    Mathematics claim that you should change the door, thus giving you a better chance to win. I made a scar script to check if this is true.

    Ofcourse, even if i ran the script a billion times, it doesn't prove anything 100%, because it's all about propabilities, which cannot be proved by testing something. But, believe whatever you want to.

    I ran the script 100000 times, and it seems that if you change the door, your chance is 50%. If you don't change, your chance is 33%.

    DoorsAndGoat.scar
    : you can pick the door yourself, this is to show that my script works correctly.
    DoorsAndGoat_AUTOMATED.scar: Here the whole process is automated.
    PHP Code:
    Wins:    569
    Losses:  568
    WinRate0,500439753737907 
    lol da owner showed me this
    Quote Originally Posted by Cstrike View Post
    Why do I even try these things? I just shit my pants over this god damn tutorial. Fuck, that's uncleanable. I can't even wash that out because there's so much of my shit it will just stain everything else. If I put it in the washing machine, I'm sure to stain the sides.

  7. #7
    Join Date
    Mar 2006
    Posts
    3,051
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by IceFire908 View Post
    Rest assured the script is fine and so is the math of variable chance is 66% as it would show with any statistic or computer simulation.

    But when it boils down to actual probability of you winning it's really 50% a coin flip.

    The real problem is people are applying math to something that math can't determine.
    It's not longer random, since they do not open the door randomly.

    If they opened one of the other doors randomly and it was a car, you would have a 0% chance of winning, even if you switched. Since they involve themselves by selecting a door with a goat, it makes sense that the probabilities would be skewed.

    And yes, that code I pasted is wrong. When you fix it, you win 66% of the time when you switch every time, and win 33% of the time if you refuse.


  8. #8
    Join Date
    Jan 2008
    Location
    NC, USA.
    Posts
    4,429
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    This was in the movie "21"
    Quote Originally Posted by irc
    [00:55:29] < Guest3097> I lol at how BenLand100 has become noidea
    [01:07:40] <@BenLand100> i'm not noidea i'm
    [01:07:44] -!- BenLand100 is now known as BenLand42-
    [01:07:46] <@BenLand42-> shit
    [01:07:49] -!- BenLand42- is now known as BenLand420
    [01:07:50] <@BenLand420> YEA

  9. #9
    Join Date
    Oct 2007
    Location
    http://ushort.us/oqmd65
    Posts
    2,605
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Thats why i said lol 21. In my post noidea
    I do visit every 2-6 months

  10. #10
    Join Date
    Aug 2008
    Location
    Finland
    Posts
    2,851
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Omg sorry there are a few typos in the script, i update them now
    edit: 1 typo, the one tarajunky mentioned

  11. #11
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    Quote Originally Posted by IceFire908 View Post
    Rest assured the script is fine and so is the math of variable chance is 66% as it would show with any statistic or computer simulation.

    But when it boils down to actual probability of you winning it's really 50% a coin flip.

    The real problem is people are applying math to something that math can't determine.
    Ice, look up the Monty Hall problem.

  12. #12
    Join Date
    May 2006
    Location
    Amsterdam
    Posts
    3,620
    Mentioned
    5 Post(s)
    Quoted
    0 Post(s)

    Default

    This is one of those storys that mathematicians come up with. Heard it quite a few times lately, still don't get the mathematic explanation though .
    Verrekte Koekwous

  13. #13
    Join Date
    Jan 2008
    Location
    C:\
    Posts
    1,483
    Mentioned
    2 Post(s)
    Quoted
    2 Post(s)

    Default

    It doesn't need to be explained with mathematics...
    If you narrow a choice down to 2 doors, one being a goat and one being a car, then you have a 50% chance of getting the car no matter what. It is not more logical to switch doors, because either way, you have a 50% chance.

  14. #14
    Join Date
    Dec 2006
    Location
    Houston, TX USA
    Posts
    4,791
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Runaway Cop View Post
    It doesn't need to be explained with mathematics...
    If you narrow a choice down to 2 doors, one being a goat and one being a car, then you have a 50% chance of getting the car no matter what. It is not more logical to switch doors, because either way, you have a 50% chance.
    The common misconception is that the Monty Hall problem holds true when it really isn't.

    From a computer/statistical/mathematical trial/theory the switch gives you an advantage, but in actualization there is absolutely no difference.

    The probability if you flipping heads is 50% the probability of you getting heads twice is 25%, but the second time you flip the coin it's still a 50% chance of heads. Probability is a flawed concept in so many ways.

  15. #15
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    Quote Originally Posted by Runaway Cop View Post
    It doesn't need to be explained with mathematics...
    If you narrow a choice down to 2 doors, one being a goat and one being a car, then you have a 50% chance of getting the car no matter what. It is not more logical to switch doors, because either way, you have a 50% chance.
    You'd think so, but that's not true. Read up on the Monty Hall problem.

  16. #16
    Join Date
    Jan 2008
    Location
    C:\
    Posts
    1,483
    Mentioned
    2 Post(s)
    Quoted
    2 Post(s)

    Default

    Oooooh. That is kind of confusing.

    but pretty much it's saying... You have a 66% chance of picking the car if you swap every time because you have a 66% chance of picking a goat. and only a 33% chance if you don't swap because you have a 1 in 3 chance of picking the car the first time...

    damn. if the monty hall problem was ice cream, it would be a deep, rich flavor

  17. #17
    Join Date
    Oct 2007
    Location
    http://ushort.us/oqmd65
    Posts
    2,605
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Runaway Cop View Post
    Oooooh. That is kind of confusing.

    but pretty much it's saying... You have a 66% chance of picking the car if you swap every time because you have a 66% chance of picking a goat. and only a 33% chance if you don't swap because you have a 1 in 3 chance of picking the car the first time...

    damn. if the monty hall problem was ice cream, it would be a deep, rich flavor
    Thats what I explained in my first post.... :/
    I do visit every 2-6 months

  18. #18
    Join Date
    Jan 2008
    Location
    C:\
    Posts
    1,483
    Mentioned
    2 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by ZaSz View Post
    Thats what I explained in my first post.... :/
    All it did was confuse me at first
    I think you have it worded differently than the way I worded it.

  19. #19
    Join Date
    Mar 2007
    Location
    Players[-1].Loc
    Posts
    962
    Mentioned
    4 Post(s)
    Quoted
    5 Post(s)

    Default

    I don't get it. Why would the second door have a 66% chance then? I could see someone forgetting to change the value of the first door and saying the first one has a 33% chance and the second one has a 50% chance but that's apparently not the case.

  20. #20
    Join Date
    Jan 2008
    Location
    C:\
    Posts
    1,483
    Mentioned
    2 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by Widget View Post
    I don't get it. Why would the second door have a 66% chance then? I could see someone forgetting to change the value of the first door and saying the first one has a 33% chance and the second one has a 50% chance but that's apparently not the case.
    1. You have a 66% chance of picking a door with a goat behind it, since there are 2 goats and 3 doors.

    2. If you do pick one of the doors with a goat behind it, the door with the other goat will be opened.

    3. Therefore, if you switch doors when you pick a goat, (66% chance) then you will get the car.

    The only time you don't get the car when you are switching doors is when you pick it on your first try (33% chance). So, all in all, you have a 66% chance of picking the car if you swap doors every time.

  21. #21
    Join Date
    Mar 2006
    Posts
    3,051
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    How about this?

    Take 1 million doors. Choose one and leave it closed. Then open 999,998 doors with goats in them, leaving one additional door closed.

    Is there really a 50/50 chance that you chose the right door? Every time you repeated this experiment you would end up with 2 doors, and a "50/50" chance, even though you know the real odds of choosing the right door from the beginning are 1 in a million.


  22. #22
    Join Date
    Dec 2007
    Location
    Williston, ND
    Posts
    3,106
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    you gotta look at it from the beginning.

    there is a 33% chance of picking the car.
    so you probably picked a goat (66%)
    if you eliminate a goat, and assume you picked a goat at the start (as you probabilistically did) you should change.

    edit: and Dr. tarajunky just did a great job elaborating.
    Proud owner of "Efferator" my totally boted main account!
    "You see, sometimes, science is not a guess" -Xiaobing Zhou (my past physics professor, with heavy Chinese accent)

  23. #23
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    When the host has to eliminate door(s) such that a switch means you get the opposite of what you originally picked, then the chance of winning after a switch is 1-ChanceBeforeEliminations. So because you were probably wrong the first time, you will probably be right after the switch.


    Edit: or look at the picture
    http://upload.wikimedia.org/wikipedi...tree_door1.svg
    Last edited by Boreas; 08-30-2009 at 12:47 PM.

  24. #24
    Join Date
    Jan 2008
    Location
    C:\
    Posts
    1,483
    Mentioned
    2 Post(s)
    Quoted
    2 Post(s)

    Default

    I think it's confusing to people because it is so counter-intuitive.

    No one thinks of it as: Since there's a 66% chance of picking a goat, there's a 66% chance of getting the car if you switch doors.

  25. #25
    Join Date
    Mar 2007
    Location
    Players[-1].Loc
    Posts
    962
    Mentioned
    4 Post(s)
    Quoted
    5 Post(s)

    Default

    Quote Originally Posted by Brain View Post
    you gotta look at it from the beginning.

    there is a 33% chance of picking the car.
    so you probably picked a goat (66%)
    if you eliminate a goat, and assume you picked a goat at the start (as you probabilistically did) you should change.

    edit: and Dr. tarajunky just did a great job elaborating.
    Ahh ok. Now it makes sense (I guess). I didn't realize that you never actually opened the door (though I blame the first post in the thread for that )

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •