4 ms·
You want to have an ugly argument with other developers, bring up the Monty Hall problem. People who are wrong will not let it go. We had it beaten into us not
by hinkley 7y ago
You want to have an ugly argument with other developers, bring up the Monty Hall problem. People who are wrong will not let it go.
We had it beaten into us not to use truth tables to solve problems in college, because it doesn't scale. But the Monty Hall problem has a finite set of states you can easily write on a piece of paper. And then you'll see that it jumps from 2/6 successes to 3/6.
I tried to replicate that table under duress once (see initial comment) and I couldn't get it sorted. I should try it again and write it down this time.
Edit: Why do work when you can find someone else who already has:
https://www.statisticshowto.datasciencecentral.com/probability-and-statistics/monty-hall-problem/ https://www.statisticshowto.datasciencecentral.com/probabili...
and particular to my statement, this table:
https://www.statisticshowto.datasciencecentral.com/wp-content/uploads/2014/12/monty-hall-problem2.png https://www.statisticshowto.datasciencecentral.com/wp-conten...
When switching the number of lose scenarios is lower than a naive expectation of outcomes.
- nothrabannosir 7y agoDon’t have the debate; just break out a deck of cards and simulate 30ish rounds. Should be done in 10 minutes, or however small p needs to become for the winds to shift. Then, answer questions.
- hinkley 7y agoYou damn kids and your Monte Carlo’s. When I was a kid we did everything deterministically and we were grateful! And we didn’t have no fancy tablets either. You wanted a mobile computer, you had to steal a cart from Larry. And Larry didn’t like people stealin’ his carts, no sir.
- tantalor 7y ago> We had it beaten into us not to use truth tables to solve problems in college Wait, really? When did you go to college? In mid 2000s, we used truth tables every day studying boolean algebra, logic gates, circuits, etc.
- hinkley 7y agoLogic classes, sure. It's not a coincidence they're called Truth Tables. Statistics? (and this is a statistics problem) no.
- anon1m0us 7y ago> And then you'll see that it jumps from 2/6 successes to 3/6. It jumps to 4/6! Even better.
- fortran77 7y agoYou are 100% wrong. Your odds go up to 2/3 if you switch. Not 1/2. Please stop spreading this misinformation. Leave the math up to the experts.
- hinkley 7y agoGosh, we’re all really impressed down here, I can tell you. People argue about whether the odds go up at all, not about how much they go up.
- deleted 7y ago[deleted]
- dang 7y agoThis comment breaks the HN guidelines. Attacking someone is not the way to correct errors. Please review https://news.ycombinator.com/newsguidelines.html https://news.ycombinator.com/newsguidelines.html and don't post like this to HN.
- michrassena 7y agoI was skeptical after hearing the correct answer, and just couldn't wrap my head around it. I'm no developer, but I wrote a simple Python program to simulate multiple plays of the game. It seems to be human nature to argue a problem like this even when one has the tools to solve it.
- shadowgovt 7y agoReasoning through Monty Hall was my freshmen year introduction to the power of computing simulation. I couldn't get my mind to accept the explanation. So I coded it and ran the simulation 100,000 times. I got about 50,000 instances where switching won the prize. Biases confirmed. ... until I found the bug in my code where Monty was allowed to open the door containing the car as the one showed to the player. Fixed the bug, and switching won the prize in about 66,666 instances.
- AstralStorm 7y agoThat is the exact unstated symmetry breaking assumption. Just figuring this out will point you in direction of uneven chances.
- hawkice 7y agoIt's 4/6 after the switch, not 3/6.
- daveFNbuck 7y agoYou have to be careful with the truth table method. It's easy to get it wrong, as your events might not have equal probability. For example, we'll label the three doors P, L, R, for the prize door, the leftmost goat door and the rightmost goat door. This gives possibilities 1. You choose P, Monty chooses L - switching loses 2. You choose P, Monty chooses R - switching loses 3. You choose L, Monty chooses R - switching wins 4. You choose R, Monty chooses L - switching wins This seems to indicate that switching gives you a 50/50 likelihood of winning. In fact, this is the correct truth table to use if Monty doesn't know which door has the prize. In that case, these are all equally likely. Instead, if he does know where the prize is and won't open that door, this truth table is misleading because the cases where switching loses are less likely. If you choose L, he'll definitely choose R, but if you choose P, he has two options to split the probability. Similarly, if you model Monty as not knowing what's behind the doors, then the truth table you're thinking of doesn't work. Either way, the truth table on its own isn't convincing. The thing I find more clear is using Bayes' rule, as it shows exactly how the model of Monty's behavior affects the probability that switching is beneficial. Let H be the event that your door has a prize and G be the event that Monty shows you a goat door. Then P(H|G) = P(G|H) * P(H) / P(G). Obviously, P(H) = 1/3 and (assuming Monty must pick a door other than yours) P(G|H) = 1, so it just comes down to what P(G) is. If he always shows a goat, then P(G) 1 and you should switch. If he doesn't know what's behind the doors, it's 2/3 and it doesn't matter whether you switch. If he knows but prefers to spoil the prize, it's 1/3 and you definitely have the prize door.
- Scarblac 7y agoBut you have two cases where you choose P, and only one case for each other choice. No wonder you do better than expected.
- daveFNbuck 7y agoThe problem with this logic is that it applies regardless of how we model Monty, and not every model of Monty has you doing better than expected. This reasoning is just as wrong as expecting that your chances are 50/50 in the standard form of the problem.
- nkrisc 7y ago> You want to have an ugly argument with other developers, bring up the Monty Hall problem. People who are wrong will not let it go. Which is funny because that's a group that's very capable of simulating it for themselves.