3 ms·
Reasoning 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 cod
by shadowgovt 7y ago
Reasoning 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.