Answered step by step
Verified Expert Solution
Question
1 Approved Answer
For this computational activity, you are to simulate two different contestant approaches to the Monty Hall Problem and construct a claim as to whether one
For this computational activity, you are to simulate two different contestant approaches to the Monty Hall Problem and construct a claim as to whether one approach yields a statistically higher probability of sending the contestant home with the car versus the goat - note: going home with the car is the desirable outcome. Approach #1 - Stay with the initial door choice. After you select a door, and Monty Hall opens a different door revealing a goat behind it, and then asks you if you would like to change your initial guess, always say 'no thank you Monty I will stick with my original selection. For example, you initially select Door 1, Monty shows you a goat behind Door 2, and asks if you would like to switch, you stick with your initial choice of Door 1. Approach #2 - Always switch your choice to a door other than your initial guess. After you make your initial door selection, and Monty Hall opens a different door revealing a goat behind it, you always then change your guess to the door which he did not show you. For example, you initially select Door 1, Monty shows you a goat behind Door 2, and asks if you would like to switch, you change from your initial choice of Door 1 to Door 3. Your task is to write a program that simulates each of the two approaches to the Monty Hall problem one-million times. When the user presses run, your program will run the simulation and both print out a text summary of the results from each approach to the Python console and also produce some form of graphical output representing the results from the two approaches. Using PyCharm, you will need to import one additional library, just as you did for numpy and matplotlib - the random2 library. Under File Settings Project Project Interpretor select the P' button to add random2. Then in your python program should have a line reading o import random2 For this computational activity, you are to simulate two different contestant approaches to the Monty Hall Problem and construct a claim as to whether one approach yields a statistically higher probability of sending the contestant home with the car versus the goat - note: going home with the car is the desirable outcome. Approach #1 - Stay with the initial door choice. After you select a door, and Monty Hall opens a different door revealing a goat behind it, and then asks you if you would like to change your initial guess, always say 'no thank you Monty I will stick with my original selection. For example, you initially select Door 1, Monty shows you a goat behind Door 2, and asks if you would like to switch, you stick with your initial choice of Door 1. Approach #2 - Always switch your choice to a door other than your initial guess. After you make your initial door selection, and Monty Hall opens a different door revealing a goat behind it, you always then change your guess to the door which he did not show you. For example, you initially select Door 1, Monty shows you a goat behind Door 2, and asks if you would like to switch, you change from your initial choice of Door 1 to Door 3. Your task is to write a program that simulates each of the two approaches to the Monty Hall problem one-million times. When the user presses run, your program will run the simulation and both print out a text summary of the results from each approach to the Python console and also produce some form of graphical output representing the results from the two approaches. Using PyCharm, you will need to import one additional library, just as you did for numpy and matplotlib - the random2 library. Under File Settings Project Project Interpretor select the P' button to add random2. Then in your python program should have a line reading o import random2
Step 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