All examples By author By category About

tonmcg

Bayesian Statistics

This line graph shows the results of a running a simulation numerous times on the probability of winning (or losing) the Monty Hall door switch game. The blue line represents the probablity of winning the game if the contestant switches doors after being shown the "booby prize" door. The orange line shows the probability of losing if the contestant switches doors.

The game is based on classic Bayesian statistics. I wrote a Python script to run the simulation 1,000 times and output the probabilities of winning and losing over each simulation.