Question
There are three doors, one with a valuable prize and the other two with joke prizes. The player chooses a door that he believes hides
There are three doors, one with a valuable prize and the other two with joke prizes. The player chooses a door that he believes hides the real prize. Once he chooses, one of the doors is open to reveal a joke prize. (The door that is open does not display the real prize nor is the door that the player has chosen.) The player is then offered another choice, to stay with his original choice or switch to the other door that is still unopened. After the player decides, both remaining doors are open to reveal the other joke prize and the real prize. The player wins the prize that is behind the door he ultimately selected. If the player selected the door with the real prize, the player wins.
This game will serve as a computer simulation to calculate the true probabilities for each selection scenario. This game has revealed a peculiar set of probabilities. Most statisticians claim that after the first door is open, the player has a 1 out of 2 chance (50%) of winning the real prize no matter whether he switches doors or not. However, Monty Hall, the shows original host noticed that the odds of winning the real prize were doubled (2 out of 3 (66%)) if the player switched doors. While this is statistically and logically counter-intuitive, computer simulations indicated that Mr. Hall was correct. Hopefully, we will be able to test this by collecting data from people playing your game web sites.
Using this code, create a php page that collects the data in a MYSQL database:
Monty Hall's Lets Make A Deal
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