JavaScript, life

The Monty Hall Problem

The Monty Hall problem is a brain teaser loosely based on the American television game show “Let’s Make a Deal” and named after its original host, Monty Hall.

I wrote a little web app that show you what is the right choice with a simulator. It’s a bit hard to explain the correct solution as it’s going against ‘common’ sense.

More Details

  • There are 3 doors, behind which are two goats and a car. Something like that: |🚗|🐐|🐐|
  • You pick a door (call it door A). You’re hoping for the car of course.
  • Monty Hall, the game show host, examines the other doors (B & C) and always opens one of them with a goat.
  • Here’s the game: Do you stick with door A (original guess) or switch to the other unopened door?
    Does it matter?

Surprisingly, the odds aren’t 50-50.
If you switch doors you’ll win 2/3 of the time!

(!) Monty isn’t open the doors randomly… (he won’t open the door with the car) and by that he is adding information to the table.

Feel free to play and have fun.

 

Advertisement
Standard

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s