Part VII · Chance & data Chapter 47 of 60
Probability
Intuition on trial: seven cases of faulty reasoning about chances, at the gaming table, in a TV studio, in a doctor’s surgery and in a courtroom. We’ll learn to compute probabilities and to recognise the traps that caught gamblers, professors and juries.
Builds on: 46 · Graphs
You will learn
- compute probabilities through equally likely outcomes and with the rules of addition and complement
- find a conditional probability and turn it round with Bayes’ formula
- recognise the traps: the prosecutor’s fallacy, the gambler’s fallacy, false independence
- prove that a walker who moves at random along a line will certainly come home
The last chapter ended with a walker who picks a road at random at every crossroads of an infinite grid city. Will they get home? George Pólya answered this in 1921, and the answer sounds strange: in the plane the walker returns “with probability one”, even though it’s easy to draw a path that takes them further and further away. To understand what such words mean, we first need to agree on what probability is, and learn not to take intuition at its word.
Intuition about chances has let everyone down: gamblers, doctors, judges and professors of mathematics. So this chapter is set out as a trial, and the defendant is intuition. In each case it puts forward an argument that seems obvious. We’ll hear it, test it by calculation and by experiment, and pass sentence. The cases move from the gaming table to the TV studio, the doctor’s surgery and the courtroom, where the price of a mistake is years of someone’s life. The last case is the walker’s.
Case one: the unfinished match
In the summer of 1654 Blaise Pascal and Pierre de Fermat exchanged a few letters about games of chance. The questions had been put to Pascal by an acquaintance, the writer and gambler Antoine Gombaud, known as the Chevalier de Méré. One of them was older than Pascal himself. Two people play until one has three wins, each game is even, and $64$ pistoles are at stake. At $2 : 1$ the match had to be broken off. How should the stake be divided fairly?
Intuition’s testimony was recorded back in 1494 by Luca Pacioli: divide in proportion to the games won, $2 : 1$, that is, about $42.7$ and $21.3$ pistoles. In the mid-sixteenth century Niccolò Tartaglia pointed out that the rule is absurd. If a match to a hundred wins is broken off at $1 : 0$, by Pacioli’s rule the whole stake goes to the leader, though they’re nowhere near winning.
Pascal and Fermat looked not to the past but to the future. The leader needs one more win, the one trailing needs two. So the match will be decided within at most two more games. Fermat proposed playing both games in the mind, even if the first already decides everything. There are four outcomes, all equally likely: the leader wins both, the first, the second, or neither. The one trailing needs two wins in a row, which is one outcome out of four. The leader takes the match in three cases out of four, and it’s fair to give them $\frac34$ of the stake: $48$ pistoles against $16$. Pascal, who calculated differently, got the same answer.
Gilles de Roberval, an acquaintance of Pascal’s, objected: the second game is fictitious, since if the leader wins the first nobody will play on. Pascal’s reply: the extra game changes nothing about who wins the match, but it makes all the outcomes equally likely. And with equally likely outcomes, anyone who has read the chapter on combinatorics can count chances.
An experiment with a random result is described by its sample space $\Omega$: a list of all possible outcomes, drawn up so that each time the experiment is performed exactly one of them occurs. An event is any set of outcomes; it has occurred if one of its outcomes came up. For Pascal’s match $\Omega = \{\text{LL}, \text{LT}, \text{TL}, \text{TT}\}$ (L stands for a win by the leader, T for a win by the one trailing), and the event “the leader won the match” is $\{\text{LL}, \text{LT}, \text{TL}\}$.
If all $n$ outcomes of an experiment are equally likely, the probability of an event $A$ is the share of outcomes in which it occurs. This is the classical definition; the general one, for experiments without equally likely outcomes, will be given by the axioms a little further on.
A match to three wins, each game even, and the score is $2 : 0$. What share of the stake is it fair to give the leader?
The leader needs one more win, the one trailing needs three. The match will be decided within at most three games. Play all three in the mind: there are $2^3 = 8$ outcomes, and the one trailing wins the match in only one of them, by winning three in a row. The leader is due $\frac78$ of the stake.
The code of law
The classical definition is fine as long as the outcomes are equally likely. But a coin may be bent, and there may be infinitely many outcomes, as for a walker who walks for ever. In 1933 Andrey Kolmogorov boiled probability down to three rules that every sensible way of counting chances obeys. The whole theory is derived from them.
Each event $A$ is assigned a number $P(A)$ such that
- $P(A) \ge 0$ for every event $A$;
- $P(\Omega) = 1$: some outcome is bound to occur;
- if the events $A$ and $B$ are mutually exclusive, that is, have no outcomes in common, then $P(A \cup B) = P(A) + P(B)$.
The classical definition obeys these rules: a share is never negative, the share of all outcomes is one, and the shares of non-overlapping groups add up. Here $A \cup B$ means “$A$ or $B$ occurred”, $A \cap B$ means “both occurred”, and $\bar A$ means “$A$ didn’t occur”. The notation $A \subset B$ means that every outcome of the event $A$ also belongs to $B$ (some books write $A \subseteq B$).
For any events $A$ and $B$
- $P(\bar A) = 1 - P(A)$;
- if $A \subset B$, then $P(A) \le P(B)$; in particular, always $P(A) \le 1$;
- $P(A \cup B) = P(A) + P(B) - P(A \cap B)$.
The trick is to cut events into mutually exclusive pieces: for such pieces the third axiom lets us add probabilities.
The first consequence looks modest, but it’s the one that works most often. Computing the probability of “at least one” is hard: there are many cases. But “none” can usually be counted at once. Pascal passes on to Fermat a complaint of the Chevalier de Méré. He knew that betting on at least one six in $4$ rolls of a die pays, while betting on at least one double six in $24$ rolls of two dice doesn’t. Yet by an old gamblers’ rule the chances should be the same: $4 : 6 = 24 : 36$. De Méré concluded that arithmetic contradicts itself.
Example
A six fails to come up in one roll with probability $\frac56$, and in four rolls in $5^4 = 625$ outcomes out of $6^4 = 1296$. So at least one six comes up in $1296 - 625 = 671$ outcomes; that’s the “$671$ against $625$” of Pascal’s letter, $P \approx 0.518$. A double six fails to come up in one roll of two dice in $35$ outcomes out of $36$, in $24$ rolls in $35^{24}$ outcomes out of $36^{24}$. At least one double six comes up with probability $1 - \left(\frac{35}{36}\right)^{24} \approx 0.491$, a little under a half. Arithmetic is fine; it was the rule of proportions that was wrong.
Case two: three doors
In 1990 a reader of the American magazine Parade sent Marilyn vos Savant’s column a problem modelled on the TV game show “Let’s Make a Deal”, hosted by Monty Hall. In front of you are three closed doors. Behind one is a car, behind the other two are goats. You choose a door. The host, who knows what’s where, opens one of the other two doors, and there’s a goat behind it. He always opens a door with a goat and always offers you the chance to switch. Should you switch?
Intuition’s testimony: two closed doors are left, the car is behind one of them, it’s fifty-fifty, there’s no point switching. Vos Savant answered: switch, it doubles your chances. The magazine received about ten thousand letters, nearly a thousand of them from people with PhDs, and most of the writers insisted she was wrong. According to a colleague’s recollection, Paul Erdős, the great combinatorialist, didn’t believe it either until he saw a computer simulation.
The verdict: switching pays; if you switch, you win the car in two games out of three. The easiest way to see it is this. Someone who switches loses only if they picked the car straight away, and that happens in one game in three. In all the others the host, by removing the only remaining goat, shows you himself where the car is. With a hundred doors it’s clear without any calculation: you poked at one door at random, the host opened ninety-eight empty ones and left exactly one of the others closed. Sticking with your first choice means believing you guessed right with a chance of one in a hundred.
But the widget shows something else too: when the host is forgetful and has revealed a goat by chance, switching no longer helps; it really is fifty-fifty. Same doors, same goats, different answer. So what matters is not only what we saw but also how that information reached us. To sort this out we need probability recalculated in the light of new information.
The conditional probability of an event $A$ given $B$ is the share that $A$ takes up inside $B$: out of all outcomes we keep only those where $B$ occurred, and look at what fraction of them also have $A$. Notation: ${P(A \mid B)}$, read “the probability of $A$ given $B$”.
Suppose the car is equally likely to be behind any of the three doors, you chose door $1$, and the host, knowing the arrangement, opens a door with a goat out of the other two, choosing at random if both have goats. If he opened door $3$, the car is behind door $2$ with probability $\frac23$ and behind your door $1$ with probability $\frac13$.
The trick is to draw probabilities as areas: the whole square has area $1$, and a conditional probability is the share of one area inside another.
The forgetful host is drawn the same way, except that in every strip he opens door $3$ with probability $\frac12$, the second strip included. We throw away the piece “opened $3$, and the car was there”: by assumption a goat was behind the door. Two pieces of $\frac16$ remain, and the chances even out. The knowledgeable host passes you information by his choice; the forgetful one doesn’t.
There are four doors, with a car behind one. You chose a door; the knowledgeable host opened one of the other three, an empty one, and offers you a switch to either of the two remaining closed doors. You switch to one of them at random. What’s the probability of winning the car?
With probability $\frac14$ the car is behind your first door, and by switching you lose. With probability $\frac34$ it’s behind one of the three other doors; the host opened an empty one, so the car is behind one of the two remaining closed doors, and you pick the right one with probability $\frac12$. By the multiplication rule $\frac34 \cdot \frac12 = \frac38$. That’s more than the $\frac14$ you get without switching.
Case three: a positive result
The next case is heard in a doctor’s surgery. The psychologist Gerd Gigerenzer gave this problem to doctors on training courses. A woman of about fifty goes for routine breast cancer screening. It’s known that about $1\,\%$ of women her age have breast cancer; if cancer is present, mammography detects it in $90\,\%$ of cases; if it isn’t, the scan still gives a false alarm in $9\,\%$ of cases. Her scan is positive. What should she be told?
What’s the probability that a woman with a positive scan really has cancer?
Of $1000$ women, $10$ are ill, and $9$ of them get a positive scan. Of the $990$ healthy ones, about $89$ get a false alarm. There are $9 + 89 = 98$ positive scans, and only $9$ of them belong to women who are ill: roughly one in eleven.
According to Gigerenzer, about a fifth of the doctors chose the right answer, and many said $80$–$90\,\%$. Their mistake is the same as the jury’s in the last case. The probability of a positive scan given the disease is one thing; the probability of the disease given a positive scan is quite another, and they differ tenfold.
The case is decided by a number that’s usually forgotten: the share of people who are ill before screening. There are a hundred times more healthy people, and even rare errors among them add up to a crowd of false alarms. Gigerenzer advises counting not in percentages but in natural frequencies: “out of a thousand women…”. Then the problem can be solved on your fingers.
The quality of a test is described by two probabilities. Sensitivity is the share of ill people for whom the test is positive: ${P(+ \mid \text{ill})}$. Specificity is the share of healthy people for whom the test is negative: ${P(- \mid \text{healthy})}$. The mammography in the problem has a sensitivity of $90\,\%$ and a specificity of $91\,\%$: $9\,\%$ false alarms.
Let $H$ be an event with $0 < P(H) < 1$ (a “hypothesis”), and $E$ an event with $P(E) > 0$ (“evidence”). Then
$$P(E) = P(H)\,P(E \mid H) + P(\bar H)\,P(E \mid \bar H), \qquad P(H \mid E) = \frac{P(H)\,P(E \mid H)}{P(E)}.$$The same trick as with the doors: probabilities are areas in a square of area $1$. The multiplication rule turns each area into width times height.
A repeat test changes the picture. After the first positive scan the probability of cancer is no longer $1\,\%$ but $9\,\%$, and it becomes the prior for the second test. If the second scan is positive too, and the errors of the two scans are independent, Bayes’ formula gives about $50\,\%$. That’s why a positive screening result is a reason for a precise examination, not a diagnosis. The proviso about independent errors is serious: if the alarm is caused by a feature of the tissue’s structure, a repeat scan will repeat it.
$2\,\%$ of people have a disease. A test detects the disease in $95\,\%$ of those who have it and gives a false positive for $5\,\%$ of healthy people. The test came back positive. What’s the probability that the person is ill? Give the answer as a fraction or as a decimal to two places.
Take $10{,}000$ people. $200$ are ill, and $190$ of them test positive. $9800$ are healthy, and the false alarms are $5\,\%$ of them, that is, $490$. There are $190 + 490 = 680$ positives, and $190$ of them are ill: $\frac{190}{680} = \frac{19}{68} \approx 0.28$.
Case four: a shared birthday
In the chapter on combinatorics the pigeonhole principle guaranteed a shared birthday only in a group of $367$ people. But it was promised there that with just $23$ people a match happens more often than not. Intuition objects: there are $365$ days in a year and only $23$ people, where would a match come from?
Assume everyone is born on any of the $365$ days with equal chances and independently of the others; forget about 29 February. A match means “at least one pair”, and we already know that “at least” is more easily counted through the complement.
The probability that among $n \le 365$ people at least two were born on the same day is $1 - \dfrac{365 \cdot 364 \cdots (365 - n + 1)}{365^n}$.
We’ll compute the probability that all the birthdays are different using the classical definition; a match is its complement.
Why does intuition go wrong? It tries the problem on itself: is there someone born on the same day as me? Among $22$ other people that happens with probability $1 - \left(\frac{364}{365}\right)^{22} \approx 0.06$. But any pair can match, and $23$ people form $\binom{23}{2} = 253$ pairs. Each pair matches with probability $\frac1{365}$, and although the pairs aren’t quite independent, $\left(1 - \frac1{365}\right)^{253} \approx 0.50$ is a good approximation to the chance that no pair matches. Curiously, the same $253$ turns up in the “selfish” question too: for someone to share your birthday with probability over a half, you need $253$ other people.
What’s the probability that five random people have birthdays in five different months? Assume all months are equally likely. Give the answer as a fraction or to two decimal places.
The same scheme as the birthday problem, only with twelve “days”: $\frac{12 \cdot 11 \cdot 10 \cdot 9 \cdot 8}{12^5} = \frac{95{,}040}{248{,}832} = \frac{55}{144} \approx 0.38$. So with probability about $0.62$ two of the five were born in the same month.
Case five: black twenty-six times
According to a well-known story, on 18 August 1913 at the casino in Monte Carlo the roulette ball fell on black twenty-six times in a row. Somewhere after the fifteenth time the gamblers rushed to bet on red: after such a run red was “bound” to come up. They raised their stakes with each new black and lost, legend has it, millions of francs.
Intuition’s testimony: the law of large numbers promises that red and black come up equally often, so after a long run of black the wheel has to “make up” with red. The verdict: roulette has no memory. Each spin of the ball is physically unconnected to the previous ones, and on a wheel with a single zero red comes up with probability $\frac{18}{37}$ always, after any run. This mistake has a name: the gambler’s fallacy.
The events $A$ and $B$ are independent if $P(A \cap B) = P(A) \cdot P(B)$. When $P(B) > 0$ this is the same as ${P(A \mid B) = P(A)}$: knowing that $B$ occurred doesn’t change the chances of $A$.
So how do the frequencies even out? Not by compensation but by dilution. If, after twenty extra blacks, the wheel is spun another million times, those twenty don’t go anywhere, but against a million they become invisible: the share of black approaches $\frac{18}{37}$, though the difference in numbers may even grow. What exactly the law of large numbers promises we’ll state precisely and prove in the next chapter.
A fair coin was tossed five times, and it came up heads five times. What’s the probability that the sixth toss is heads too?
Tosses of a fair coin are independent, and the probability of heads on each is $\frac12$ whatever the history.
Independence is never “obvious”: either the design of the experiment ensures it (a coin, a roulette wheel, a die), or it has to be checked. If an ace has been taken from the pack and not put back, drawing a second ace is harder: the events are dependent. If a family has a hereditary disease, the illnesses of two brothers are dependent too. Here’s where the independence mistake was once made in a courtroom.
You can take your own problem, about dice, urns, tests or a series of trials, step by step through the solver: it will draw a tree of outcomes and explain which formula it chose and why.
Case six: Sally Clark
This case isn’t a textbook exercise. In December 1996 the eleven-week-old son of the English solicitor Sally Clark, Christopher, died suddenly. In January 1998 her eight-week-old son Harry died in the same way. Sally Clark was charged with murdering both children. In 1999 a jury found her guilty, and she was sentenced to life imprisonment.
One of the prosecution’s arguments was a number. The paediatrician Professor Roy Meadow told the court that sudden unexplained infant death (sudden infant death syndrome, SIDS, or cot death) in an affluent non-smoking family like the Clarks happens in about one case in $8543$. And two such deaths in one family, in one case in $8543 \cdot 8543$, that is, about one in $73$ million. The number sounded like a verdict: this doesn’t happen, so it’s murder.
There are two mistakes in this reasoning, and we’ve already examined both.
The first: false independence. Squaring the probability is allowed only if the two deaths are independent. But brothers share genes, a home and circumstances, and if one such death has already occurred in a family, the risk of a second is noticeably higher than average. The figure of $73$ million is an underestimate, many times over.
The second, and the main one: the conditional probability turned round. Even if the number were right, it’s $P(\text{two deaths} \mid \text{innocent})$, the probability of the evidence given innocence. But the jury needs $P(\text{innocent} \mid \text{two deaths})$. These are different numbers, as in the mammography case. A mother murdering two infants is also an exceptionally rare event. When something very rare has happened, you shouldn’t compare the chances of one explanation with one, but the chances of two explanations with each other. This follows directly from Bayes’ formula: the ratio of the posterior probabilities of two hypotheses equals the ratio of their prior probabilities times the ratio of the probabilities of the evidence under each.
The prosecutor’s fallacy is mistaking the probability of the evidence given innocence for the probability of innocence given such evidence: from “such a coincidence rarely happens to an innocent person” one concludes “so they’re almost certainly guilty”.
In 2004 the mathematician Ray Hill estimated both probabilities from data on families in England and Wales. By his calculation, before the other evidence is considered, two sudden deaths in one family were several times, roughly $4.5$ to $9$ times, more likely than two murders. The number presented in court pointed in the opposite direction to what the data implied.
In 2000 Clark’s first appeal was dismissed. In 2001 the Royal Statistical Society issued a statement: the figure of “one in $73$ million” was obtained incorrectly and presented in a way that invites the prosecutor’s fallacy. In January 2003 the Court of Appeal quashed the conviction. The main ground was that the prosecution hadn’t disclosed to the defence test results pointing to a bacterial infection in Harry. But the court also noted that the vivid statistic might have had a strong effect on the jury. Sally Clark spent more than three years in prison. She never recovered from the ordeal and died in 2007. After her case, other convictions of mothers built on similar arguments were reviewed in England.
DNA is found at a crime scene. A random match with it occurs in one person in a million. A suspect was found by searching a database, and their profile matched; there’s no other evidence. The city has five million inhabitants. What’s the probability that the suspect is innocent?
Natural frequencies: among five million innocent people the profile will match about five on average, plus the offender. Someone found by the match alone is equally likely to be any of these six, and the probability of their innocence is about $\frac56$. Other evidence could, of course, change everything.
The rarity of a piece of evidence proves nothing by itself. You have to ask how likely it is under each explanation and compare the explanations with each other. The probability of “the evidence given innocence” and the probability of “innocence given the evidence” are different numbers, and they must not be confused.
Case seven: the walker
Back to the walker from the last chapter, but first let’s put them on a line. They stand by their home at the point $0$ and every minute toss a coin: heads is a step to the right, tails a step to the left. Will they ever get home?
A random walk is a motion in which each next step is chosen at random, independently of the past ones. The simplest walk on a line takes steps of $+1$ and $-1$ with probabilities $\frac12$. In the plane the walker picks one of four directions at each crossroads, in space one of six, with equal chances.
There are any number of paths that take the walker away for ever: for example, always to the right. So the question isn’t whether they can fail to return but what the probability is. There are $2^{2n}$ paths of length $2n$, all equally likely. The walker hasn’t returned in the first $2n$ steps if their path never touches zero after the start. How many such paths are there?
The probability that in the first $2n$ steps the walker never returns to $0$ equals $\dfrac{1}{2^{2n}}\dbinom{2n}{n}$, the same as the probability of being at $0$ exactly at step $2n$. It tends to zero, so the walker on a line returns home with probability $1$.
The trick is the reflection principle, which we already used to count well-formed bracket words: a bad path, reflected up to its first touch of the axis, turns into a path that’s easy to count.
It remains to show that this probability tends to zero. Write $a_n = \frac{1}{2^{2n}}\binom{2n}{n}$. It’s convenient to rewrite it: in $(2n)!$ collect the odd factors and the even factors separately, and the product of the even ones is $2 \cdot 4 \cdots 2n = 2^n\,n!$. After cancelling,
$$a_n = \frac{(2n)!}{n!\,n!\,2^{2n}} = \frac{1 \cdot 3 \cdot 5 \cdots (2n - 1)}{2 \cdot 4 \cdot 6 \cdots 2n}.$$$a_n < \dfrac{1}{\sqrt{2n + 1}}$ for all $n \ge 1$.
The trick is to bound not $a_n$ but its square: then each fraction can be replaced by a product of two neighbours, and everything cancels. For each $k \ge 1$ we have $\frac{2k - 1}{2k} < \frac{2k}{2k + 1}$: after multiplying by the denominators this is $(2k - 1)(2k + 1) < (2k)^2$, that is, $4k^2 - 1 < 4k^2$. Multiply both sides by the positive number $\frac{2k - 1}{2k}$: $\left(\frac{2k - 1}{2k}\right)^2 < \frac{2k - 1}{2k} \cdot \frac{2k}{2k + 1}$. Multiply these inequalities together for $k = 1, 2, \ldots, n$. The left side becomes $a_n^2$. The right side is the product $\frac12 \cdot \frac23 \cdot \frac34 \cdot \frac45 \cdots \frac{2n - 1}{2n} \cdot \frac{2n}{2n + 1}$, in which each numerator cancels with the denominator of the previous fraction, leaving $\frac{1}{2n + 1}$. So $a_n^2 < \frac{1}{2n + 1}$, and $a_n < \frac{1}{\sqrt{2n + 1}}$.
Now the proof of the theorem is complete. The event “the walker never returns” is contained in the event “hasn’t returned in the first $2n$ steps” for every $n$, and by the second consequence of the axioms its probability is at most $a_n < \frac{1}{\sqrt{2n + 1}}$. A number that’s smaller than every positive number and not less than zero is zero. The walker returns with probability $1$. But the return can take a long time: after $10{,}000$ steps about one walker in a hundred and twenty-five still hasn’t come back ($a_{5000} \approx 0.008$).
Pólya proved more. In the plane the walker also returns with probability $1$, only even more slowly: the widget shows that after ten thousand steps only about three quarters have come back. But in a three-dimensional city of cubes they get home only with probability about $0.34$, and almost two thirds of the walkers leave for ever. The Japanese mathematician Shizuo Kakutani is credited with the joke: a drunk man will find his way home, but a drunk bird may get lost for ever. For the plane and space counting paths no longer helps; we’ll need a new tool, the average number of returns. The proof awaits us in the next chapter.
Where next
The walker on a line is certain to return. But how long will we have to wait? Write down how many steps it took them to return for the first time, repeat the walk a thousand times and average. The average won’t settle down: now and then there’s a walk of millions of steps, and each such walk drags the average up. With a die it’s the other way round: you can’t guess a single roll, but the average score over ten thousand rolls will almost certainly be between $3.4$ and $3.6$.
Which averages settle down, and which don’t? Why does a sum of many random numbers almost always add up to the same bell curve, whatever it’s made of? And what does it mean that a room of $23$ people “on average” contains $0.69$ pairs with a shared birthday? To answer, we’ll stop talking about events and start talking about random numbers. That’s the subject of the next chapter.