Question: Please help. Must be in python. and then repeat the process for each of the remaining values of n in the set of n's 3.
Please help. Must be in python.
and then repeat the process for each of the remaining values of n in the set of n's 3. Monty Hall Problem (chapter 31 exercise 4). In a game show a prize is placed behind one of three closed doors, labeled A. B, and C. You then choose one of the doors. After you have made your choice, Monty opens one of the doors, and shows you that there is no prize behind it. Monty will NEVER open the door you pick, and he will NEVER open a door that has a prize behind it. He gives vou the choice of staying with your original choice or changing. Write a program to simulate one round of the Monty Hall Problem, and then run it at least 100 times to determine the probability of winning if you change your choice and if you stay. Note: (Students who have not had a course in probability can skip this note; it is not needed to solve the problem. The remainder of this page is here to convince doubters as to the correct answer.) This problem can be solved exactly. Let P(A-1/3. P(B) = 1/3, and P(C) 1/3 be the probabilities that the prize is behind doors A, B, or C. Let x be your choice. Suppose you initially choose x A. Since your choice is independent of where the prize is, then the conditional probabilities are P(A|x = A) = 1/3 Monty is only going to open a door that does not have a prize behind it, and will not open your door (GIVEN). Let y denote the door that Monty picks to open. If there is a prize behind your door, he can open either of the other doors. If there is a prize behind a door that you did not select, he must open the third door. Thus
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
