The Monty Hall Puzzle

There are many probability paradoxes, but the Monty Hall Puzzle is much the greatest of these, provoking more head scratching and bafflement than any other.

It is easy to state. Monty Hall hosted a TV quiz show “Let’s Make a Deal”, in which a contestant has to choose one of 3 doors: behind one of these is a sports car, whereas the other two both contain a goat. (Some discussions of the puzzle – and there are many – speak of ‘a large prize or smaller prizes’, but they can be dismissed as non-canonical; the goats are essential.) There is no other information, so the contestant has a 1 in 3 chance of guessing correctly. Let’s say, without loss of generality, that they pick door 1.

But Monty doesn’t open it straight away. Instead he opens one of the other 2 doors – let’s say it’s door 3 – and shows that it contains a goat. He then offers the contestant a chance to switch their choice from the original door 1 to door 2.

Should the contestant switch? Or stick? Or does it make no difference?

That’s the question. I suggest you think about it before reading on. What would you do?  Bear in mind that the pressure is on, you are in a spotlight with loud music building up tension, and Monty is insistent for an answer. Putting the contestant under pressure makes good television.

Several arguments are put forward – often vehemently

  1. You should switch: the odds were 1/3 that door 1 was the winner, and 2/3 that it was one of the other doors. You now know the car isn’t behind door 3, so all that 2/3 collapses onto door 2. Switching doubles your chance from 1/3  to 2/3.
  2. There’s no point in switching: all you actually know, discarding the theatricality, is that the car is either behind door 1 or door 2, so the odds are equal.
  3. But you should switch! Suppose there were 100 doors rather than 3. You choose one, and Monty opens 98 others, revealing 98 goats, leaving just one of the non-chosen doors unopened.  You’d surely want to switch to that door he’s so carefully avoided opening.

Thought about it?  OK, the answer is that there is no answer. You don’t yet have enough information to make the decision, as you need to know Monty’s strategy. Maybe he wants you to lose, and only offers you the chance to switch because you’ve chosen the winning door. Or maybe he’s kind and is offering because you’ve chosen the wrong door. (There’s a pragmatic let-out which says that if you don’t know whether to switch or stick you might as well switch, as it can’t do any harm – we can close that bolthole by supposing that Monty will charge you a small amount, $10 or so, to change your mind.)

OK, let’s suppose we know the rules and they are

  1. Monty always opens another door.
  2. He always opens a door with a goat and offers the chance to switch. If both non-chosen doors contain goats he chooses either at random.

Now we have enough information. We can analyse this using frequentist probability, which is what we learnt at school.

 Suppose we did this 1800 times ( a nice large number with lots of useful factors). Then the car would be behind each door 600 times. Alright, not exactly 600 because of the randomness of the process, but the law of large numbers ensures it will be close.

A door is then chosen – this is also random so in each of the 3 x 600 cases door 1 will be chosen in only 3 x 200 times. The other cases can now be discarded as we know they didn’t happen. 

For the 200 cases where the car is behind door 1,  Monty will open door 2 and door 3 100 times each. We know he didn’t open door 2, so only 100 cases survive. But all 200 cases with the car behind door 2 survive, as for them he is sure open door 3. When the car is behind door 3 he is never going to open it. So of the original 1800 instances, door 1 is chosen and door 3 is opened in 300 cases, of which 200 involve a winning door 2 and only 100 have door 1 as the winner. Within this sample the odds are 2:1 in favour of door 2. You should switch!

You can also show show this using Bayes’ theorem. Maybe I’ll write about Bayes’ theorem another time.  For the moment, let’s just accept that when you have data, prior probabilities are multiplied by the likelihood of getting that data, subject to overall normalisation.

The initial probability is 1/3 for each door.

P1=P2=P3=1/3

The ‘data’ is that Monty chose to open door 3.  If the winner is door  2, he will certainly open door 3. If it is door 3, he will not open it. If it is door 1, there is a 50% chance of picking door 3 (and 50% for door 2). So the likelihoods are   1/ 2 , 1 and 0 respectively, and after normalisation

P1‘ = 1/ 3         P2‘ = 2/ 3         P3‘=0

So switch! It doubles your chances. 

If you think that’s all obvious and are feeling pretty smug, let’s try a slightly different version of the rules:

  1. Monty always opens another door.
  2. He does this at random. If it reveals a car, he says ‘Tough.” If it contains a goat, he offers a switch.

The frequentist analysis is similar: starting with 1800 cases, if door 1 is chosen then that leaves 600, with 200 for each door being the winner. Now he opens doors 2 and 3 with equal probability, whatever the winning door may be. If it’s door 1, 100 survive as before. If it’s door 2, this time only 100 survive, and in the other hundred he opens door 2 to show a car. For door 3 there are no survivors as he either reveals a goat behind door 2 or a car behind door 3, neither of which has happened. So in this scenario there are 200 survivors, 100 each for doors 1 and 2. The odds are even and there is no point in switching.

Using Bayes’ theorem gives (of course) the same result. The prior probabilities are still all  1/ 3.  The likelihood for Monty to pick door 3 and reveal a goat is  1/ 2 for both door 1 and door 2 concealing a car, and zero for door 3.  Normalising

P1‘ = 1/ 2         P2‘ = 1/ 2         P3‘=0

and theres no point in switching.

So a slight change in the rules switches the result. The arguments 1 to 3 are all suspect.  Even the 3rd argument (which I personally find pretty convincing) is not valid for the second set of rules. If Monty opens 98 doors at random to reveal 98 goats this does not make it any more likely that the 99th possibility is the winner.

If you don’t believe that – or any of the other results – then the only cure is to write a simulation program in the language of your choice. This will only take a few lines, and seeing the results will convince you where mathematical logic can’t.

So the moral is to be very wary of common sense and “intuition” when dealing with probabilities, and to trust only in the results of the calculations. Thank you, Monty!

 

 

 

 

The Legacy of Stephen Hawking

Few great scientists are famous to the general public, but Stephen Hawking achieved rock star status, thanks to his best selling ‘Brief History of Time’, and to the epic saga of his struggle not merely to survive but to master the disease that struck him – his inspirational refusal to give in to the unfair twists of fate.   But the man or woman in the street would claim no knowledge of his scientific achievements: what it was that made his reputation in the scientific community, enabling him to write and speak to the public with such authority.

Although there was a lot of solid first rate work that gave him a reputation in the specialised community of cosmologists, the big item was undoubtedly his development of the theory of Hawking Radiation (as we now call it).  This was a complete paradigm shift, revolutionising our ideas of black holes, but based on a simple and understandable concept. 

Black holes – at the time they were just an oddity predicted by equations, today they are matter of fact items of galactic astronomy – occur when a body is so massive that its escape velocity is more than the velocity of light, so nothing can escape its gravitational pull.  Such black hole will accumulate matter as it falls into it, never to re-emerge: it will just get more and more massive forever, or until the end of the universe.  

Hawking took this description from General Relativity, and linked it to the picture of the vacuum that comes from particle physics. At the quantum level the vacuum is not empty but abuzz with virtual particle-antiparticle pairs (predominantly electrons and positrons) being created out of nothing and then re-merging into nothing. Hawking pointed out that in a very strong gravitational field, such as you get just outside black holes, one of these particles could fall down into the gravity well, giving the other enough energy to become real. The surface of a black hole will radiate electrons and positrons (“Hawking Radiation”), losing energy and mass as it does so. It will not exist forever, but will evaporate.  Our whole concept of black holes changed: they are not just gobblers of everything, but dynamic objects that can be formed and also destroyed.

As well as its own intrinsic importance, his proposal showed how cosmology and particle physics could be fruitfully combined. Previously the former, which involves physics at the largest scale, had been very separate from the smallest-scale physics of the latter.  Theoretical physicists might specialise in General Relativity or Quantum Field Theory, but very few worked on both, and never at the same time.  Today that’s all changed, and our attempts to understand the earliest stages of the big bang, and the most fundamental laws of nature, are framed using combinations of microscopic and megascopic physics.

So he wasn’t just the author of ‘that book by that wheelchair guy’, as Homer Simpson put it, or the character that enabled Eddie Redmayne to win his Oscar. He revolutionised our ideas about black holes and their role in the universe, and he showed the way to a combination of the physics of the very small and the very large which is being carried forward today. That is his gift to us and future generations.

   

Beginning of a blog

This is actually my third blog.

The first was at the general election in 2010, when I was standing as the Lib Dem candidate in Macclesfield. It was early days for social media campaigns and look pretty primitive now. It includes a passionate Liberal Democrat pledge to abolish student fees – subsequent events made me feel pretty sick about that. I didn’t quit the party, but it was close.

The second charted events in the Huddersfield Accelerator Institute, and it gave way of recording a lot of the things we did. I got some of the students to write some of the posts, which was good.  It’s not clear if anyone ever read it, and all the university blogs seem to have dropped out of sight in a recent web reorganisation.

So this, my third, is a retirement project. (Well, it’s better than taking up golf or buying a motorbike.) As any researcher will tell you, the urge to find out about things is closely linked to a ‘mission to explain’ need to share them with other people.  Before retirement, teaching students gave me that outlet.  This is a substitute.  When I’ve understood (by hard struggle or by blinding insight) something in physics, or statistics, or whatever, this will give me a platform to tell others about it.

Of course there’s no guarantee that anyone will read it – there is so much published on the web. But I can only try, and see what happens.