Skip to content

A Monte Carlo Simulation of the Monty Hall problem

Notifications You must be signed in to change notification settings

jacobbeasley/montyhall

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Monty Hall Problem Simulation

This simulates the monty hall problem and proves that switching does increase your odds of winning because the new set you are picking from now has a higher probability of being a car than the previous set did.

Sample Output

Total Simulations: 100000
Total Wins With No Switch: 33321, or 33%
Wins With Switch Strategy: 66607, or 67%

About

A Monte Carlo Simulation of the Monty Hall problem

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages