Answered step by step
Verified Expert Solution
Question
1 Approved Answer
help must be in python 2.7 3. Monty Hall Problem (chapter 31 exercise 4). In a game show a prize is placed behind one of
help must be in python 2.7
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 you 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 be your choice. Suppose you initially choose x = A. Since your choice is independent of where the prize is, then the conditional probabilities are 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 prizeStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started