by 22c · 5y ago · 0 comments
I guess I need to read up on the Monty Hall problem again, because I always thought it was 1/2 chance if you switch (vs 1/3 chance if you don't).
100 doors, 1 car, 99 goats. Pick a door. All doors open (with goats except 1) ... Do you think you picked the 1/100 door with the car, or that it's the other only one left standing.
If Your first choice was lucky and two goats remained in other gates than Monty does not change anything by showing You the goat in one of them (it't the same as if Monty selected random gate).
Things becomes intresting if You was unlucky and selected Goat. Monty MUST show You the other goat (because there is only one available for him to select). And thus he introduces information to otherwise random selection (it stops beeing random).
And by doing this he eliminates for You conditional possiblity of selecting second goat when You selected one in first round (and in this conditional scenariu swiching is sure bet which changes the overall odds to 2/3)
It's a 1/2 chance if you pick after the second door is opened, regardless of switching.
It's a 2/3 chance if you pick before the second door is open and switch after the second door is opened.
I recommend reading again, because I don't want to write up the logic.
Of a bigger concern is that this was not true on "Let's Make a Deal". The problem assumes that Monty always offered the option to switch. In reality, he did not, and the offers were not random. That corrected for the issue to a large degree in practice.
The basic argument is. If you don't switch, you have 1/3 chance of winning. So if you do switch you have 1/3 chance of losing. Hence if you switch you have 2/3 chance of winning.
How the door you switched too went from 1/3 chance to double is the hard part to explain. But it must be the case.
If you start the game with the intention of switching, you have a 2/3 chance of being successful because the winning strategy is to miss the car on your first pick.
Regardless of your intended plan, you only had a 1/3 chance of picking correctly the first time, so switching gets you a 2/3 chance.
When you choose initially, you have a 1/3 probability of getting the right one, leaving a 2/3 probability that the car is on one of the other two.
The host reveals one of the other two. So that 2/3 probability applies to the remaining door. Here is a short C implementation that made it very clear to me...
#include <stdio.h>
#include <stdlib.h>
int doround () {
int car = rand() % 3;
int firstchoice = rand() % 3;
// host reveals one of the goat doors
if (car == firstchoice) {
// you changing to the other door after the reveal is a loss
return 0;
}
if(car != firstchoice) {
// you changing to the other door after the reveal is a win
return 1;
}
}
int main(int argc, char** argv) {
int wins=0;
for (int round=0; round < 1000; round++){
wins+=doround();
}
printf("Worked in %d of %d rounds\n", wins, rounds);
}I thought through it again, and I'm angry now.
At least I'm not alone (got this link from the article): https://web.archive.org/web/20140413131827/http://www.decisi...
Goat. | Car. | Goat.|.
Goat. | Goat. | Car.|.
The above tables shows all possible distribution of car and goats. If the initial choice was Door A, then you only have 1/3 probability. But after B/C door is opened the probability increases to 2/3 if switched.
The clue is that the host will always open the door with a goat.