0
$\begingroup$

Suppose you're on a game show, and you're given the choice of three doors: Behind one door is a car; behind the others, goats. You pick a door, say No. 1 [but the door is not opened], and the host, who knows what's behind the doors, opens another door, say No. 3, which has a goat. He then says to you, "Do you want to pick door No. 2?" Is it to your advantage to switch your choice?

This is Monty Hall problem, and we know that a switching strategy really does win two out of three times on the average. But is it possible to simulate it in Matlab?

  • 3
    It is. What are your problems in simulating that - do you want somebody to write you the code?2012-05-31
  • 0
    I mean is it convincing? And is it practicable?2012-05-31
  • 3
    It is (both convincing and practicable)2012-05-31
  • 0
    It might be even more convincing to sit down and think about the problem for 2 minutes. Most likely you don't even have to write the code afterwards any more.2012-05-31
  • 0
    @Fabian: it may be faster to write a code :)2012-05-31
  • 0
    I can read python, would you please give me a little hint about coding?2012-05-31

5 Answers 5