# The Monty Hall problem

I've just rediscovered the so-called Monty Hall problem. Deliciously simple, yet rather counter intuitive.

The scenario is such: you are given the opportunity to select one closed door of three, behind one of which there is a prize. The other two doors hide "goats" (or some other such "non-prize"), or nothing at all. Once you have made your selection, Monty Hall will open one of the remaining doors, revealing that it does not contain the prize. He then asks you if you would like to switch your selection to the other unopened door, or stay with your original choice. Here is the problem: Does it matter if you switch?

The solution is left as an exercise for the reader.