Monty Hall Problem - But with 4 doors and two opportunities to switch

  • Thread starter x^2
  • Start date
  • #1
x^2
21
1
I had a question regarding a variation of the infamous Monty Hall problem. Assume four doors instead of the standard three. There is still one car and three goats, and of course the objective is to select the door with the highest probability that it is hiding a car.

You select a door. The game host reveals a joke door. You are given the opportunity to switch your selection to one of the remaining two doors. The game host then reveals a second joke door. You are given another opportunity to switch doors. Should you do it?

I think yes - regardless of the decision of your first selection, by the time of the second selection two doors have been revealed and only your selection and a final door remain. If I understand the probability correctly the door you have selected has a 1/4 probability of hiding a car. The remaining door has a 3/4 probability of hiding the car. But does the intermediate selection somehow effect this problem in a manner I have yet to recognize?
 

Answers and Replies

  • #2
Mensanator
105
0
Finding out is a doddle.


Code:
import random
hist = {'won':0, 'lost':0}
for i in range(10000):
  game = ['c','g','g','g']
  p = game.pop(random.choice(range(4)))
  game.remove('g')
  game.remove('g')
  # always switch
  p = random.choice(game)
  if p == 'c':
    hist['won'] += 1
  else:
    hist['lost'] += 1
print(hist)

## trial run
##  {'won': 7527, 'lost': 2473}
 

Suggested for: Monty Hall Problem - But with 4 doors and two opportunities to switch

  • Last Post
Replies
7
Views
641
  • Last Post
7
Replies
212
Views
9K
Replies
89
Views
6K
  • Last Post
Replies
10
Views
667
  • Last Post
Replies
2
Views
603
Replies
7
Views
1K
  • Last Post
Replies
8
Views
585
  • Last Post
Replies
3
Views
1K
  • Last Post
Replies
2
Views
1K
  • Last Post
Replies
0
Views
567
Top