CS计算机代考程序代写 mh = MonteHall(DoesntMatter)

mh = MonteHall(DoesntMatter)
runsim(mh, verbose = true)
runsim(mh)

doesntMatter = repeat(MonteHall(DoesntMatter), NormalStats, 1000)
stay = repeat(MonteHall(Stay), NormalStats, 1000)
switch = repeat(MonteHall(Switch), NormalStats, 1000)

mean(doesntMatter)
mean(stay)
mean(switch)

confint(doesntMatter)
confint(stay)
confint(switch)