Repeat the Monty Hall experiment now with 10 doors. Recall the game is as follows:
Step 1: you choose one door at random.
Step 2: Monty opens 8 (out of 9 doors) that do not have the prize.
Step 3: you either switch or don't switch.
Set up the experiment two functions "monty_10doors_noswitch" and "monty_10doors_switch" (these functions will have no input values):
```{r}
monty_10doors_noswitch <- function(){
}
monty_10doors_switch <- function(){
}
Use your two functions and the replicate function to compute the empirical probablility of winning for the two experiments.
Compare your answers with the actual theoretical predictions.
1
Expert's answer
2020-10-07T22:25:49-0400
Dear nati, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order
Comments
Leave a comment