The Wayback Machine - https://web.archive.org/web/20231126142642/https://www.geeksforgeeks.org/puzzle-6-monty-hall-problem/
Open In App
Related Articles

Puzzle 6 | (Monty Hall problem)

Improve Article
Improve
Save Article
Save
Like Article
Like

Suppose you’re on a game show, and you’re given the choice of three doors: Behind one door is a car; behind the others, goats. You pick a door, say No. 1, and the host, who knows what’s behind the doors, opens another door, say No. 3, which has a goat. He then says to you, “Do you want to pick door No. 2?” Is it to your advantage to switch your choice?
 

220px-Monty_open_door.svg

Solution: There are two cases here :

  1. Switching
  2. Not switching

Case 1 :

If we know we are switching, we need to select a door which has a goat in order to win the car. As we select a door having a goat, the host should only open the door that have the another goat so the remaining door has a car which we get by switching.

So, probability of selecting a door which has a goat is 2/3 as 2 doors out of 3 have goats. Therefore probability of winning a car by switching is 2/3.

Case 2 :

If we know we are not switching, we need to select a door which has a car in order to win the car. 

So probability of selecting a door which has a car is 1/3 as 1 door out of 3 has car. Therefore probability of winning a car by not switching is 1/3.

As probability of winning a car by switching is higher than not switching. It is advantage to switch.

Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Last Updated : 14 Sep, 2023
Like Article
Save Article
Similar Reads