I find the easiest way to think about this question is as follows, the answer being you should switch your choice of doors.
When you pick your first door, you are probably wrong (2/3 chance of being wrong).
The host opens an empty door.
You know that your first guess was probably wrong...
By switching to the other door, your chances of winning are better because your first choice was probably wrong.
I knew you would say that, but as I said, equal probability. the problem with you code comes with the randomizing of which door is picked when you choose correctly, ie the code...
if(rand()%2 == 0) //More randomization for further proof
you're assigning a win half the chance of a loss.
Since your decision comes after the door is opened, what occurred before that is irrelevant.
Let's say the winner is door 1, thus the host cannot open door one. Let's assume that you stay with your initial choice.
The host opens door 2, so you either chose 1 or 3. that's a 50% chance of you being right
The host opens door 3, so you either chose 1 or 2. That as well is a 50% chance of winning.
I'll admit, you had me second guessing myself, and this was a very good topic and discussion and really got me thinking, but I'm pretty confident now that I'm right.
banditcom-calculus 3 has no relevance to the matter at hand, maybe if you were in a class based around probablility and statistics...
You're wrong VxDX... take statistics, then you'll see. There was a 33% chance in the beginning and there will always be that that first door had a 33% chance of being the right one. The other two doors combined are 66% of being right. Host removes a wrong one. The door you had picked was still a 33% chance of being right. Now that the one of the doors that shared that 66% chance is gone, the single door remaining is 66%.
The lotto is a great example actually. You pick the numbers. The lottery removes ALL the remaining possibilities but one. The chances you had to picking the right answer is like 1 in 14 billion, lets say. What's the chance of that one being right that is remaining? It's the remaining, 13,999,999,999 in 14 billion.
EDIT: I took AP stats in highschool as well as Stats 251 here in college.
I knew you would say that, but as I said, equal probability. the problem with you code comes with the randomizing of which door is picked when you choose correctly, ie the code...
if(rand()%2 == 0) //More randomization for further proof
you're assigning a win half the chance of a loss.
Wrong, if you want cout the chances for each part of that code. It should function just as intended.
Since your decision comes after the door is opened, what occurred before that is irrelevant.
WRONG WRONG WRONG WRONG WRONG.
Look. If the original door you chose was the correct one. There are TWO DOORS HE COULD OPEN.
If the original door you chose was wrong, there was only one door he could open, AND HE CHOSE THE LOSING DOOR. That is very relevant to what will happen in the future. That is why you see those cute 1/18ths popping up where I edited your quote for the truth above.
Let's say the winner is door 1, thus the host cannot open door one. Let's assume that you stay with your initial choice.
The host opens door 2, so you either chose 1 or 3. that's a 50% chance of you being right
The host opens door 3, so you either chose 1 or 2. That as well is a 50% chance of winning.
Yes, and that's for each subset case when the winner is door one. THAT CUTS YOUR CHANCES IN HALF IF DOOR ONE IS THE CORRECT DOOR, SEE ABOVE ABOUT 1/18THS.
I'll admit, you had me second guessing myself, and this was a very good topic and discussion and really got me thinking, but I'm pretty confident now that I'm right.
EDIT: Banditcom--Our school's Calc 3 class is advanced (senior and prolly some juniors), and its like a college class. They always take fridays off with lunch and go bowling for 2 periods. XD
EDIT: Banditcom--Our school's Calc 3 class is advanced (senior and prolly some juniors), and its like a college class. They always take fridays off with lunch and go bowling for 2 periods. XD
I cant wait until I am in Calc 3 :O.
I took Calc 2 last semester. It was a 5 credit course, meaning every morning... attendance was optional, which is a rarity here. I went only 2-3 times a week. I aced the class. heh... it was much easier than Calc 1.
I'm not wrong. It doesn't matter what your initial guess is if one incorrect one is automatically eliminated and you are given a second chance. You are making your decision based on which door he opens, not which door you picked initially. Thus, you are picking from one correct door and one incorrect door. It's Ockham's razor, your complicated answer is clouding the situation.
edit: and the lottery is still a terrible example. Suppose that you have to pick 3 numbers, zeros inclusive. that's 1000 possibilities. The state then says that it's not 998 possibilies and that yours and one other are the only ones that are still left. Are you saying that you will change to the other number because you think your chances will be 999x better to win on that number?
No you ARE wrong. Stats is simple yet complicated. Read my lottery example. Tell me how the first numbers that were picked are now 50% chance of being right because there are only 2 sets now. You can't. (period)
Comment