by throwaway283719 · 12y ago · 0 comments
> There are two doors with goats and one with a car. You choose one door from the three. The host selects one of the doors with a goat from the remaining two doors, and opens it. Should you switch doors if given the chance?
has a different answer than this one
> There are two doors with goats and one with a car. You choose one door from the three. The host chooses one of the remaining two doors at random and opens it, showing a goat. Should you switch doors if given the chance?
In the first example the hosts choice is either forced (if you chose a goat initially) or doesn't make a difference (if you chose a car).
In the second example, the host could have opened a door with a car because he was choosing the doors at random. Given that he didn't, your estimate of the probability that you have chosen the car should increase - in fact, it should increase to 1/2, and switching doesn't make any difference.
To me, this is the really interesting thing about the Monty Hall problem - the knowledge and intentions of the host are important in the correct solution to the problem! So there are two ways to come up with the answer "it doesn't matter if you switch" -
1. You understand the problem in the first sense above, and your intuition leads you to an incorrect answer.
2. You understand the problem in the second sense above, and you are correct that it doesn't matter whether you switch or not.
If you're a mathematician you don't tend to introduce any additional assumptions unless they are stated. Assuming the host has knowledge of what is behind all of the doors (or at least where the car is) changes everything. Some wordings of the question include it, others don't.
Of course a non-mathematician might assume things about the game show host based on their knowledge of game show hosts but a mathematician is entirely correct to simply take the question at face value and not inject additional unstated assumptions. Otherwise what is preventing them from putting in other completely wacky assumptions like "the host wants you to win the car and knows you know about the monty hall problem and is using reverse psychology"?
> There are two doors with goats and one with a car. You choose one door from the three. The host may select one of the doors with a goat from the remaining two doors, and open it. Should you switch doors if given the chance?
Now the probability can be anything from 0 to 1, depending on what makes the host tick...
Considering the usual ambiguity in the problem formulation, the only safe reply is "It depends".
Specifically, the host in the first formulation never reveals a car, even if she wants to. The host in the second formulation reveals a car roughly 1/3 of the time, even if she'd rather not. Thus, intuitively, it makes sense that the former leaks information about the place of the car, and the latter doesn't. [0]
Of course that's just a rewording of your point, based on my sense that "knowledge and intentions" are concepts that apply readily to game show hosts, but awkwardly to rule-following systems in general.
[0] To the extent that revealing something can not leak information about it...
Edit: To elucidate my quibble further, as a third formulation: "The host chooses one of the two remaining doors at random, which, by coincidence, is always a goat." I assert we should always switch: The intention of the host is the same as in the second case, but the behavior of the system, magically known to us, is that of the first. We make decisions based on that.
But really, it has to do with the information content of the actions of the host.
Proofs are built with an adversarial mind set. Always assuming the worst possible case and proving that a theorem holds in all conditions. The "hand of god" (or in this case the game show host) doesn't move to make theorems easier to prove. That isn't the universe works!
Two game shows, two hosts, both reveal a goat. The random host revealed a goat with 1/3 probability; the canonical host revealed a goat with 1 probability.
We know that both hosts revealed a goat. We also know (for the purposes of this problem) that they had different likelihoods of doing so before the fact.
Does it make intuitive sense to you that the prior probability of an event could affect how you react to it? That's all that's going on here.
If I was in a culture where gameshow hosts behaved differently the question would have different priors and a different answer.
What if all gameshow hosts shot contestants immediately after they won? Would you be better of switching? No, you'd be dead, so you didn't "win" the car. Completely silly example but it shows why this can't be taken seriously as a mathematical question with probabilities without injecting additional assumptions (unless of course it is stated clearly but then I bet few mathematicians would get tripped up).
[1] http://www.nytimes.com/1991/07/21/us/behind-monty-hall-s-doo...
In the second case, you now know that you are not in one of the states of the world where the host accidentally opened a door that had a car behind it. They could have opened a door with a car, but they didn't. That gives you some information - it stands to reason that since they didn't open a door with a car, it was probably a bit more likely that they would pick a door with a goat, which makes it more likely that there are two goats than that there is one car and one goat, which is equivalent to saying that it's a bit more likely that you have already chosen the car.
Of course, i was wrong :D
The simulation testing the four possible scenarios:
#!/usr/bin/env ruby
def run_games(monty_knows:, change_choice:)
options = [:goat1, :goat2, :car]
total_games = 0
wins = 0
100000.times do
choice = options.sample
monty_choice = (options - [choice, (:car if monty_knows)]).sample
# Don't consider cases where Monty shows a car.
next if monty_choice == :car
if change_choice
choice = (options - [monty_choice, choice]).first
end
total_games += 1
wins += 1 if choice == :car
end
wins / total_games.to_f
end
puts 'Monty knows & keep choice: %.2f' %
run_games(monty_knows: true, change_choice: false)
puts 'Monty knows & change choice: %.2f' %
run_games(monty_knows: true, change_choice: true)
puts 'Monty ignores & keep choice: %.2f' %
run_games(monty_knows: false, change_choice: false)
puts 'Monty ignores & change choice: %.2f' %
run_games(monty_knows: false, change_choice: true)
Sample output: Monty knows & keep choice: 0.33
Monty knows & change choice: 0.67
Monty ignores & keep choice: 0.50
Monty ignores & change choice: 0.50
So, in the case of Monty picking at random, even if we ignore the cases where he picks the car, your chances of winning do not improve by changing your first choice or not.After verifying that the simulation makes sense, i tried to figure out why it makes sense.
In an information theory kinda way, it makes sense that if Monty picks at random then he is not providing any new information: you are just being shown what was behind a random door you didn't choose and you can't choose now. But that explanation is not intuitive to my brain.
I found it more intuitive to actually draw a decision tree with the possibilities and their probabilities. The tree is actually very simple:
With the Always Change Door strategy:
car (1/3) -> LOSE (Monty always reveals goat,
/ we change and we always lose)
first choice
\ goat (1/2) -> WIN (we change to the
\ / car door)
goat (2/3) -> Monty choice
\
car (1/2) -> IGNORE
The probability of winning is 1/3 (2/3 * 1/2).With the Always Keep Door strategy:
car (1/3) -> WIN (doesn't matter what Monty chooses)
/
first choice
\ goat (1/2) -> LOSE (we keep our
\ / goat-hiding door)
goat (2/3) -> Monty choice
\
car (1/2) -> IGNORE
Same tree, but with win and lose cases inverted. The probability of winning is also 1/3.In conclusion, my intuition sucks. Thanks for showing me so!
Self-doubt is a quantity often found wanting among smart people, computer programmers, and especially among the intersection ;)