In [1]:
%matplotlib inline
import matplotlib.pyplot as plt
import numpy as np
from numpy import mean

# stats60 specific
from code import monty_hall
figsize = (8,8)

Monty Hall Problem (Let's Make a Deal)

  • A fun and famous little example of probability.

  • Setup (there are variations):

    • Contestant chooses among 3 doors (keep doors unopened), one of which has a car behind it.
    • Host (Monty Hall) opens one of the other two doors and allows the contestant to change doors if they want.
    • Monty ALWAYS opens a door that has no car behind it.
    • When choosing among possible doors to open, Monty chooses randomly.
In [2]:
monty_hall.examples['noswitch']
Out[2]:

Similar Notebooks