Hacker News new | ask | show | jobs
by Sandman 4215 days ago
Hmm.. I don't think there's a difference. In two out of three cases, one of the remaining two doors contains a car. If the host opens the one that does, ok, bummer, you lost. But if not, there's a good chance that the other door contains a car. Remember that you always had only one in three chances of choosing the right door, this doesn't change.
1 comments

There is a difference. Write a simulation in your favorite language. You'll be forced to decide whether the door with the car ever gets revealed to the contestant. In those cases does the contestant get to switch and win the car? Or did you just throw those cases out in your code? If so, you made an assumption that isn't aways stated clearly in the problem.
But your question was if the host chooses a door at random and reveals a goat. Which means it doesn't matter if he had knowledge or not. You told us the outcome. If you were writing a computer simulation there would be no rgn for the host picking his door. The host would always open the door with the goat, same as if he knew since you already told us he opens the door with the goat.
See my cousin comment[0] about this, I think you're getting tripped up with the idea of the host's "knowledge" mattering. That's a distraction here, what's important is the probabilities.

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.

[0] https://news.ycombinator.com/edit?id=8664771

The premises of the riddle in both cases is that the host reveals a goat. There is no randomness. The fact that there was a chance the host might show a car doesn't matter. He showed a goat. The probability of the host showing a goat in both cases is 1.

I understand the math. I know what the op was trying to say. But they worded it wrong. The 2nd riddle is the same as the first.

There are two separate things here. First, the premise of the riddle. Second, the procedure of the game show (as fictionalized within the riddle).

If "... and shows you a goat" is a part of the procedure of the game show, there is additional information imparted by the host's selection compared to the situation where "... and shows you a goat" is an artifact of the particular play through the game that is being described in the riddle and the procedure by which that situation was arrived at did not incorporate knowledge of where the car was.

The question is phrased ad-hoc. We know the host picked a goat in both scenarios. Decision time. Do we switch or no? It didn't ask: "On an infinite timeline where the host might not always pick the goat, should we switch and if so when?" Which I think is what op was trying to say.
> The probability of the host showing a goat in both cases is 1.

Are you familiar with the concept of prior probability? The premise of the meta-riddle is that both hosts showed a goat, but one host could have not shown a goat. So there must be a difference in the information conveyed by that goat.

Again, there isn't anything special about this problem, it's just how probabilities work. Respectfully-- there are a number of different people trying to explain this to you in different ways, and you can verify it on Wikipedia. Are you positive you do understand the math?

He does in this single instance, but in order to calculate the probably you need to consider all the possible cases. Does the case where opens the door with the car calculate in? Why or why not? Seriously, write the simulation to calculate the probabilities. It makes the assumptions very obvious.
You don't need to because you're asking what is the probability of winning by switching once the goat has been revealed. We want to know:

(# of possible worlds in which we win after switching) / (all possible worlds in which we are shown a goat after the initial pick)

vs

(# of possible worlds in which we win without switching) / (all possible worlds in which we are shown a goat after the initial pick)

in this case 2/3 vs 1/3. We are only considering the cases where a goat has been shown so what happens when a goat isn't shown or what the host's intentions are when a goat is show is irrelevant.

But 1 in 3 times the host opens a door with a car. That changes the probabilities. Or are you assuming this never happens? Why?
Let's suppose we are doing a computer simulation.

1. We simulate a million trials where the contestant chooses one of three door, one of which has a car and two a goat

2. We simulate the host randomly choosing one of the remaining doors to open.

3. We discard all trials that resulted in a car. We are left with the number of trials that resulted in a goat and store that number in a variable 'total'

4. In the remaining trails we switch and reveal what was behind the door. We store the number of times we saw a car in a variable called 'wins'.

5. The probability of winning after switching is 'wins' / 'total'

It doesn't matter how many times the host shows a car because those trials are discarded.

You told us he opens the door with the goat. All cases consist of the host opening the door with a goat after you have picked.
But it matters whether you have the guarantee or not.

If the host picked at random and happened to get a goat, it is 1/2 vs 1/2. If the host picked a door he knew had a goat, it's 2/3 vs 1/3.

Again, write the simulation. It shouldn't take you 5 minutes.

You do have a guarantee. The premises of #2 above is that the host shows a goat.
You didn't write the simulation.