Are you hiding, somewhere behind those eyes? -- Icehouse, Electric Blue

Monty Hall and the Door of Probability

I felt like writing something else this week. As it happens, no episodes of War of the Worlds aired during March of 1989 or 1990, and I’d planned to insert a gap of a few weeks in my own schedule there, to cover things like the Asylum movie and ALF and maybe the final episode of Webster. But there’s two more episodes of season one and one more of season two before that happens, and I feel like digressing now instead.

The Monty Hall Problem is a probability puzzle that’s in a class of problems that are unusual in just how ridiculously hard it is to make your brain believe the right answer despite how simple it is. When columnist Marilyn vos Savant presented the correct solution (With the caveat that the specific phrasing of the puzzle she used contained a significant point of ambiguity) to the puzzle in a 1990 column for Parade magazine, she was inundated with thousands of letters — many from PhDs — insisting she was wrong. Many of the writers were real assholes about it. Ridiculously famous mathematician Paul Erdős, famously, refused to believe the correct answer, even with formal mathematical proof, until he saw the result verified in computer simulation. I happened to overhear some people discussing the puzzle recently, and as usual, someone got it wrong and could not be convinced of the right answer.

The puzzle is this:

You are a contestant on $FAMOUS_GAME_SHOW. The host, $WELL_KNOWN_TELEVISION_PERSONALITY presents you with a choice of three doors. Behind one of these doors is a BRAND NEW CAR(!), while behind the other two are goats. You are asked to select one of the three doors. After you have made your selection, the host opens one of the unselected doors, revealing a goat. He offers you a choice: open the door you initially selected and claim the prize behind it, or switch your selection to the remaining closed door. What course of action should you choose?

Picture courtesy of Wikipedia If you haven’t already heard this one, you almost certainly think that it makes no difference whether or not you switch: the car is equally likely to be behind either door. But given that, whether or not you possess the comparatively rare gift of statistical literacy, you almost certainly possess basic English literacy to have worked out that if that were the answer, this would hardly be a famous brain teaser.

The answer, of course, is that you should always switch. The probability that switching is the right strategy depends on certain assumptions not present in the way I phrased the question, but there’s actually only one non-standard assumption you can make where switching is a bad idea (The one where Monty is an asshole and wouldn’t have opened the door had your initial choice been incorrect). Well, okay, switching is also a bad idea in the non-standard assumption that you’d rather win a goat than a car. Fair enough. My family already owns two cars, but zero goats. Some people think that clarifying the standard assumptions also makes the analysis more intuitive, but I don’t: the assumptions primarily impact the question “What’s the best general strategy on this game show?” rather than the question-as-asked, “What do you, the player, do next?”

These assumptions, for clarity, are:

  • Monty always opens a door and offers a switch
  • Monty never reveals the car when he opens a door
  • If the player’s initial choice is the car, Monty chooses the door he will open at random

That third one in particular I think just makes things more complicated. It’s necessary to close a loophole where you might be able to deduce some extra information from which door Monty opens: if Monty has a preference for lower-numbered doors, then Monty opening door number three means you should absolutely switch — but, crucially, you should still switch even if he doesn’t. The other two conditions don’t actually apply in the specific case specified, since Monty did open a door and didn’t reveal a car. Removing them can reduce the probability that you should switch, but not below 50:50.

That’s why those assumptions are so often claimed to make the problem easier to understand. But the thousand letters to Marilyn don’t bear this out: most of the letter-writers intuited those constraints but still got it wrong. Marilyn herself suggested that the problem would be more intuitive if you cranked the numbers up: make it a million doors, and have Monty open 999,998 of them. Do that, and the magical power of big numbers makes your brain change the question it’s asking from “Which door is the car behind?” to “Did I choose right the first time?”. But it turns out that when you increase the numbers, people are more likely to switch, but they still don’t believe the probability changes.

I’ll spare you the formal proof of the answer for the moment. The reason I’m writing this is that I wanted to share with you how I came to believe the answer. The math of the answer, I got right away. The problem was, it didn’t feel right. It felt like a glitch in the Matrix, or like Scotty’s solution to the Kobyashi Maru: a weird math thing that didn’t map to reality, like imaginary numbers. Or real numbers, for that matter.

I had a hard time explaining this to people. And by “people” here, I’m taking some liberties, because I mostly mean “mathematicians”. They couldn’t read it any way other than, “I don’t understand the math.” But I understood the math. What I couldn’t understand was reality.

But that million-door variant of the problem reminds me of another probability question I used to have a hard time with. The flipped coin question. Imagine you have a fair coin, and you flip it nine-hundred-ninety-nine thousand, nine-hundred-ninety-nine times, and it comes up heads each time. What are the odds that it’ll come up heads on the next flip?

I find it completely intuitive that the answer is ½. And when you phrase it the way I did, I hope most people agree. But there’s a whole family of similar questions where the math is exactly the same, but people will fall prey to a gambler’s fallacy and become convinced that the coin is due. It’s all about the law of averages: a tossed coin coming up heads a million times in a row is astronomically unlikely. One more heads flip, and it will happen. Therefore, the odds of getting that last heads flip must also be astronomical.

That’s ridiculous, of course. But the usual explanation for why it’s ridiculous never felt quite satisfying to me: “Because how could it not be 50:50? It’s not like those past coin flips have some magical power to change the probability of the next one.” It’s true, but it doesn’t address the “law of averages” thing that makes it feel wrong.

The answer that satisfied me is this: your belief that getting a million heads in a row is astronomically unlikely is arbitrarily privileging the number “a million”. Because it’s big and round. Because you know what else is astronomically unlikely? Flipping heads nine-hundred-ninety-nine thousand, nine-hundred-ninety-nine times in a row. And you’ve already done that. The punchline is this: how much more astronomical are the odds of a million heads compared to the odds of nine-hundred-ninety-nine thousand, nine-hundred-ninety-nine? Exactly twice. The way I look at it is this way: you’ve already used up most of the “unlikely” getting the first nine-hundred-ninety-nine thousand, nine-hundred-ninety-nine heads. And the “amount” of “unlikely” you’ve got left to get to a million is exactly fifty-fifty.

Credible mathematicians would say I’m being obtuse. It’s fifty-fifty because each coin toss is an independent event with independent probability and that’s the end of it. But there’s the rub, right? Why is each coin toss “independent”? Mathematically, each coin toss is independent because the probability of flipping heads on flip N+1 is the same regardless of the outcome of flip N. But this is just begging the question (And for possibly the only time in my life, I think I am using the phrase “begging the question” in its pedantically correct sense): the odds are the same because the flips are independent, and the flips are independent because the odds are the same. Remove the abstraction of mathematics, and you get at a more reasonable explanation: the flips are independent because a coin, being a slug of metal, neither remembers nor cares what the outcome of the last flip was.

What always made me uncomfortable, then, was the context switch: the simple answer can be expressed as elegant, pure, abstract mathematics, right up until you get to the bit where we simply have to take for granted that coin tosses are independent events. It just feels wrong for math to throw up its hands at that point and say, “Because it’s a coin, dumbass!” Especially when you frame it in a context like, “We’re one flip away from a million heads in a row,” because “A million heads in a row” sure doesn’t sound like an independent probability. On account of it isn’t: P(one million) = 2-1,000,000; P(one million|999,999)=2-1.

And indeed, once I made the mental switch to the notion of having “already used up” the improbability, the whole thing made a kind of actual sense to me, rather than just being a series of mathematical formulae that I knew on account of I’d read them in a book and remembered them. That coin isn’t due: it whittled away at the improbability slowly, over the course of the previous almost-a-million flips. Put another way, if you do the coin-flip experiment in 21,000,000 parallel universes, there’s only one where you get heads a million times, and many where you don’t — but if you know that you got the first 999,999, then you aren’t in most of those universes: you’re in one of two (Or maybe both of two. Quantum mechanics is weird).You can apply that paradigm to other things as well. Larry Niven once famously declared that an ear of corn was more likely to father a child with Lois Lane than Superman was, meaning that out of all possible universes, a Kryptonian would be sufficiently genetically similar to a human for cross-breeding to be possible in an infinitesimal percentage of them. But this fails to consider that it’s already an infinitesimal percentage of said universes where Kryptonians would be sufficiently similar to humans that Lois would even be willing to try (You may, as the mood strikes you, include or exclude those universes where Lois is just Into That Sort of Thing). It’s not “tiny number out of nigh-infinite number”, it’s “tiny number out of very-slightly-less-tiny number”.

Let me get back to Monty Hall. I slipped the key observation to the problem in a few paragraphs back without calling attention to it. Did you catch it? People get the Monty Hall problem wrong because they don’t approach the question that was asked. Most people hear the problem and approach it as “Which door is the car behind?” But that’s not the question that was asked: the question was “Should you switch?”, which is to say, “Did you pick the right door on the first try?” The answer to that question is very obviously, “Probably not.”

Where I always got hung up was the idea that the solution lay in what you knew when you made your initial choice, versus what you know afterward. People kept trying to explain it to me that way, and it just sent me astray, thinking that the glitch in the Matrix lay somewhere in the vicinity of, “Had I known it wasn’t door number 3 when I chose door number 1, I’d have chosen door number 2 instead.” But that’s nonsense.

Here’s the magic thing, and why I don’t think that restating the standard assumptions about Monty’s behavior actually helps people understand the paradox. What Monty does has no impact on the input to the question. Monty isn’t giving you actual new information you can use to make a better guess, as people think. If he were, then it reduces to just making a new guess and this time it’s out of two rather than out of three, and, yeah, the odds are even. But what Monty is actually doing by opening a door is nothing more than distracting you from the actual offer he’s made: switch, or not-switch.

Here is when I finally “got it”, when I finally moved beyond understanding the math to actually seeing how the physical reality of the problem worked, and stopped thinking it was some kind of weird Schrödinger’s goat thing. Let’s just remove Monty from the equation altogether:

You are a contestant on $FAMOUS_GAME_SHOW. The host, $WELL_KNOWN_TELEVISION_PERSONALITY presents you with a choice of three doors. Behind one of these doors is a BRAND NEW CAR(!), while behind the other two are goats. You are asked to select one of the three doors. After you have made your selection, the host opens one of the unselected doors, revealing a goat. He offers you a choice: open the door you initially selected and claim the prize behind it, or switch your selection to the remaining closed door bet against yourself: your door will remain closed, and instead, you’ll get what’s behind both other doors. What course of action should you choose?

I submit that this variation is mathematically identical to the standard problem (plus or minus one goat). All Monty’s doing when he opens one door is finding a misleading way to explain that your choices are between “Get the car if you picked right initially” and “Get the car if you picked wrong initially”. That’s all you’re being asked. And there’s no variation of the assumptions where what you’re being asked it to “pick again with new information”: you’re only ever being asked whether you think your first guess was right or wrong. In some of the variations, Monty’s behavior might be encoding a hint about the answer to that question, but it’s never changing the question. For all mathematicians like to say that the problem is people not understanding probability, it’s actually a problem of people not understanding the question.

Remove the obfuscating detail of Monty opening one door and offering to let you have the other, and suddenly, it all becomes clear: the second choice is not to pick a door, but to reject one. That’s why switching wins two-thirds of the time.

And hey, worst case, you get two goats.

Image by Mark Katzenberger. Some rights reserved
Image by Mark Katzenberger. Some rights reserved

Program Note

By popular request of her mother’s doctors, my daughter has rescheduled her arrival for tomorrow morning. There may be some interruptions to the normal programming schedule over the next few weeks.

New Doctor Who posts will still be dropping on Saturday at least through the beginning of April, but there might be some slippage after that. Tomorrow’s War of the Worlds post has been bumped back to next week for a special post.

 

Program Note

From my Askimet stats:

  • May 2015: 326 spam comments
  • June 2015: 466 spam comments
  • July 2015: 590 spam comments
  • August 2015: 617 spam comments
  • September 2015: 935 spam comments
  • October 2015: 1,029 spam comments
  • November 2015: 4,933 spam comments
  • December 2015: 22,932 spam comments
  • January 2016: 31,898 spam comments

So yeah. I think the amount of spam incoming may be once again edging up to the point where it’s causing my (admittedly somewhat flakey) web host’s database server to crash.

To keep my blog on the air, I’ve dialed the spam retention window WAY back. So if you happen to comment and it gets flagged as spam, it might no longer exist when I go to check on it. Sorry for the inconvenience.

The Thing About Sheepdogs

If you had a sheepdog who ripped the throat out of a sheep on the assumption it was really a wolf, you’d have it put down. The first time it happened.

If your sheepdogs mistook sheep for wolves on a regular basis, or even just did it, say, two or three times a year, you’d fire your dog trainer.

And no one would call you unreasonable. No one would demand apologies to the sheepdog’s family. No one would go on Fox News and describe the sheep’s death as an unavoidable tragedy where no one was to blame. No one would go digging up dirt on the sheep, or suggest that the sheep brought it on themselves by acting aggressively.

If it turned out that it was pretty much only ever the black sheep your sheepdogs mistook for wolves, no one would say that it wasn’t about color.

And if you decided to plant a tree in memory of the sheep, no one would vandalize it.

In case you missed it…

To accompany today’s article on The Great Martian War, I’ve put together this:

History Documentary Pitch Generator

A sample:

wotwii02In 1912, the RMS Titanic struck an iceberg in the North Atlantic, and sunk, among the mistiest occurrences of recorded history. Or so it seemed. Now, 3D printing and a new-age religion challenge long-held assumptions, and may just rewrite the story of the Titanic forever.

http://trenchcoatsoft.com/cgi-bin/history.cgi?id=q24.5gcp111

Programming Note

So here’s the deal. I actually have a Captain Power post all queued up and ready to go. For reals.

But as it turns out, Halloween is happening this week. So I was thinking that instead of doing that post today, I’d like to do a special Halloween post instead. And since I’m doing a special Halloween post, I’m going to do it on Halloween October 30. For reasons.

And because this is pretty much the fastest I am capable of writing, I am going to move Article Day to Wednesday for a bit after that to give me a chance to build the buffer back up.  So check this space on November 5 for my analysis of “Gemini and Counting”, and stay tuned this Thursday for a special Halloween Treat.

See you then…

Sister Sister

Dear Maddy:

Congrats and good luck. It’s not easy being the older sibling, believe me I know. There’s going to be like three years where you’re totally going to want to do stuff with this awesome little sidekick, and she’s not going to be old enough to be any use at all. And then suddenly you’re going to want to start doing things where a three-year-old would be a total drag to have around, and there she’ll be insisting she gets to come with you. And because you’re bigger, you’re not going to be allowed to hit her, no matter how much she deserves it.

Even worse, over the next few years, you’re going to be doing all sorts of amazing things. Reading. Writing. Drawing pictures that actually look like things. But however impressed Mommy and Daddy are, five minutes later, your sister is going to burp, or smile, or urinate on something, and they’re going to be every bit as impressed by that, and all she did was roll over. Everyone will be all like “Awww! She’s so cute!” to her, and all like “Yeah, that’s nice whatever,” to you.

But I’ll tell you what. Some day, probably about thirty years down the road, you’re going to have the distance and perspective and have gotten your life all together, and you’ll be able to look at your sister, and it’s going to turn out that she’s pretty okay. And just maybe a little bit of that “pretty okay” is going to be because she learned a thing or two from growing up with a good big sister.


Dear Abby:

Congrats and welcome! It’s not easy being a younger sister. If you don’t believe me, ask your mother. The first three years or so, pretty much all you are ever going to want to do is have fun with your big sister, but she’s going to be all “Let’s go walk upright and leverage our sense of object permanence,” while you’re all like “I can no longer see mommy, and am therefore concerned that she doesn’t exist.” And then when you finally sort out things like hand-eye coordination and stairs, she’s still going to be all “Aww, we don’t want to take the baby along!”

Even worse, every single accomplishment you have over the next decade or so, she’ll have gotten there first. You’re going to burp, or roll over, or sing, and everyone will be all excited, sure, but then someone’s going to say, “Of course, Maddy was already doing that by the time she was two.” Anything you have trouble with, it’ll be all “Maddy had such an easier time with that,” or worse, “Why can’t you be more like your sister?”

But I’ll tell you what. Some day, probably about thirty years down the road, you’re going to be a grown-up, having a fantastic life, and it isn’t going to matter one whit that you did it a couple of years behind your sister. And if you’re very lucky, maybe one day your big sister is going to find a way to tell you that she’s proud of you.

Love,

Uncle Ross