>>The problem with your code is you don't take into account the information gained by opening the wrong door. Once the door is opened it's a whole new problem. In your code the door that is opened could have the boat behind it but we have already established that that's not true. The answer is 50/50 chance so it doesn't matter. Any math/statistics majors out there that can settle this ;)
>
>I already did, both answers are correct to different problems :)
>
>Christof (and others) are treating it as a "conditional" probablity problem, that is, "how do the odds change if something occurs?" That is what the original problem (as I've seen it posed) was. There is also an "independent" problem in which the past is irrelevant, as others interpreted it. So, the answer depends on a very exact statement of the problem, otherwise the solution can vary...
I don't know if I agree, but that's not really important. Quite possibly I have presented the problem in such a way that either answer could be correct. How would you state the problem that only the 2/3rd's would be the correct answer.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement