ScratchData LogoScratchData
Back to scratchtc3's profile

Monty Hall Problem Simulator

SCscratchtc3•Created October 15, 2017
Monty Hall Problem Simulator
0
0
4 views
View on Scratch

Instructions

Press space to start. Enter the number of games you want to simulate. You can ignore the answer and choice variables, they go by too fast to read. The win variable tells you how many times you won, and the lose variable tells you how many times you lost.

Description

This is a "simulator" of the Monty Hall Problem. If you don't know what it is, it's a statistics puzzle where you try to find an object behind 3 doors. To get more info, I recommend this Numberphile video. https://www.youtube.com/watch?v=4Lb-6rxZxx0 You should watch it, because then what I'm saying won't make sense. In this simulator, it tests the optimal strategy, to switch each time. In theory, you should win 2/3rds of the time, and lose 1/3rd of the time. If you use small numbers like 10, it won't be like that. If you use larger numbers like 1,000,000, it will show. I made this after thinking and trying to play this game with my dad, only to realize it's a bit slow. My computer can run about 100,000 games/second, so it has an obvious advantage to the person test method. This would be a great party game if you're playing with people who don't know the optimal strategy.

Project Details

Project ID179984869
CreatedOctober 15, 2017
Last ModifiedOctober 16, 2017
SharedOctober 15, 2017
Visibilityvisible
CommentsAllowed