The Monty Hall problem is a probability puzzle that revolves around a game show scenario with three doors, one of which hides a desirable prize.
In the Monty Hall problem:
- The participant initially chooses one of three doors.
- The host, who knows where the prize is, opens one of the other two doors to reveal a non-prize (a goat).
- The participant is then given the choice to keep their original choice or change to the other unopened door.
The counterintuitive result is that changing doors increases the chances of winning the prize.
- Simulates up to 10,000 rounds of the Monty Hall problem.
- Provides a comparison of outcomes between the
change
andkeep
options.
- Clone the repository to your local machine
git clone https://github.com/beckerfelipee/Mont-Hall-Problem-Solver.git
- Navigate to the project directory
cd Mont-Hall-Problem-Solver
- Run the program
python main.py
After running the simulation, the program will display the outcomes, showing how many times the change option resulted in success compared to the keep option.