Campbell Ritchie wrote:The Monty Hall game is by no means difficult to program. What probabilities did people expect?
Campbell Ritchie wrote:Doesn't the host only offer the change when the contestant chooses the poor prize?
[edit]No, I think I was wrong there.
Campbell Ritchie wrote:The Monty Hall game is by no means difficult to program. What probabilities did people expect?
Mike Simmons wrote:MvS caused additional confusion with her poorly-specified version of the problem (actually from a reader, but she continued it and never noticed the error), which persists in this very thread. Specifically, it's important to say that the host will always behave as described - it isn't just something that happened on one occasion.
Mike Simmons wrote:The above Wikipedia article also notes...
Mike Simmons wrote:Anyway, I retract the "persists in this very thread" part - sorry about that.
Stephan van Hulst wrote:I wish I still had that program somewhere. It was one of the first projects I wrote for myself in Java.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Liutauras Vilda wrote:Those who read wikipedia article, and still found it hard to understand how that works, I wrote a simpler version to explain that.
Junilu Lacar wrote:Here's the core of my simulation logic: If you pick the car, you win if you stay, otherwise you win if you switch. That's it.
Stephan van Hulst wrote:What I like about your example Fred, is that most people would probably still intuitively say that it doesn't matter, and that the final choice has a 50% chance of picking the door with the car.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Junilu Lacar wrote:Thanks, Stephan, for putting in the effort. At least I can take comfort in the fact that I didn't come up with the most complicated solution on my first go around.
Junilu Lacar wrote:there's a strong tendency for us to eventually (almost immediately) think "Why do we have to limit it to three?"
...
Does this resonate with anyone?
Junilu Lacar wrote:What I found was that it's an exercise in simplification and clear thinking.
Liutauras Vilda wrote:Junilu, please don't reveal your code yet.
Stephan van Hulst wrote:Then I thought, it's a hobby project, I'll overengineer the crap out of it if I want to.
There are three kinds of actuaries: those who can count, and those who can't.
Junilu Lacar wrote:
Junilu Lacar wrote:2. In my opinion, it doesn't make the simulation any less correct to just pick two random numbers and compare them. It still boils down to the two key random picks: which door the contestant chooses and which door the car is behind. As pointed out before, this is because of the hard rule that the host knows where the car is and they will always open a door with a goat behind it.
I am Arthur, King of the Britons. And this is a tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|