Popular recipes by markcannoli http://code.activestate.com/recipes/users/4174766/2010-08-25T20:02:17-07:00ActiveState Code Recipesmonty hall problem (Python)
2010-08-25T20:02:17-07:00markcannolihttp://code.activestate.com/recipes/users/4174766/http://code.activestate.com/recipes/577374-monty-hall-problem/
<p style="color: grey">
Python
recipe 577374
by <a href="/recipes/users/4174766/">markcannoli</a>
(<a href="/recipes/tags/game/">game</a>, <a href="/recipes/tags/statistics/">statistics</a>).
</p>
<p>Monty_Hall is a gameshow host that proves that it is statistically better to switch when offered the chance after getting additional knowledge in a fair game. The caveat is "statistically better", which means any single trial can have unsupporting results. But "statistically better" is exactly where the fist-fights at bars and family reunions start, so no matter the single trial outcomes.</p>