Chapter 4 Section 1 Exercise 11

Simulate the Monty Hall problem. Carefully state any assumptions that you have made when writing the program. Which version of the problem do you think that you are simulating?

Stay Strategy

## Using the stay strategy, the win percentage was 33.9%

Switch Strategy

## Using the switch strategy, the win percentage was 67.7%

Random Strategy

## Using the random strategy, the win percentage was 48.7%

Inspiration for this solution came from R-bloggers - Monty Hall by Simulation in R.

Article

Simulation Function