Question: python [15] Consider a game where the contestant is presented with three doors. Behind one of the doors is a car (the prize'), behind the

 python [15] Consider a game where the contestant is presented with

python

[15] Consider a game where the contestant is presented with three doors. Behind one of the doors is a car (the prize'), behind the other two are goats. The contestant chooses a door, but the host (who knows where the prize is) opens one of the other two doors (never revealing the prize). The contestant is now given the choice of switching to the other door. Create a simulation that plays the game N times (input by the user ), using each of the two strategies (switch door selected or not switch door selected). Estimate the chance of winning for each of the two strategies as a ratio of wins to the total number of attempts N. Run the simulation and report your results for N = 10000 and N = 100000 games

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!