© Beau Nouvelle 2019
B. NouvelleSimulations in Swift 5https://doi.org/10.1007/978-1-4842-5337-3_2

2. The Monty Hall Problem

Beau Nouvelle1 
(1)
Victoria, Australia
 

The Monty Hall Problem gets its name from a TV game show that originated in 1963 named Let’s Make a Deal. The problem is a counterintuitive puzzle where you have the opportunity to choose from one of three closed doors. Two doors have a goat behind them, and one has a car. The aim is to pick a door with the car.

After you make a selection, instead of opening the door you chose, the host will open one of the remaining doors. Monty knows what’s behind each door, so he always chooses one with a goat behind it. He then asks if you want to keep your original choice, or switch to the other closed ...

Get Simulations in Swift 5: Design and Implement with Swift Playgrounds now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.