Note 6
Bayes in natural frequencies
There is only a one in a million chance of a match, so it must be him.
This is the most expensive reasoning mistake in this notebook. It has helped put innocent people in prison, and it can be taken apart with one division.
Imagine a crime in a city of 10 million, with no other evidence yet. A DNA profile from the scene matches a man on a database, and the lab says only one person in a million would match by chance. What is the chance he is innocent? Many people say one in a million, and English appeal judges have had to warn courts against exactly that slip.
Now count. A city of 10 million contains about ten people who would match by chance, plus the real culprit, somewhere around eleven in all. If the match is all you have, this man is one of about eleven, so there is roughly a 9 percent chance that he is the one, and a 91 percent chance that he is not. The one-in-a-million figure was perfectly correct. It was the answer to a different question.
Two questions that sound the same
The lab’s number is the probability of a match given innocence. The jury wants the probability of innocence given a match. Swapping them is called the prosecutor’s fallacy, or transposing the conditional.
A quick way to feel the difference: almost all popes are Catholic, but very few Catholics are popes. The chance of being Catholic given you are the pope is near 1. The chance of being the pope given you are Catholic is about one in a billion. Nobody confuses those two, because the sizes of the groups are obvious. With DNA and diseases they are less obvious, and that is the whole difficulty.
Of course, in real cases the match does not arrive alone. There may be a witness, a motive, a location. All of that is why you should not treat the 1 in 11 as a final answer either. The lesson is that the match shrinks the pool of suspects; the other evidence has to do the rest.
The idea behind the sums
Thomas Bayes, an eighteenth-century English minister, gave us the formal rule, published after his death in 1763. Its content can be put in a sentence: what you should believe afterwards depends on what you believed beforehand and on how much more likely the evidence is if you are right than if you are wrong.
That is the whole of it. The “beforehand” is the prior. The “afterwards” is the posterior. Any time you ask “how often would I see this evidence either way?” you are reasoning in a Bayesian manner, even if the word has never crossed your lips.
For most purposes you do not need the equation. You need what Gerd Gigerenzer calls natural frequencies: pick a round number of people and follow them down a tree. Here is the screening test from the previous note again.
A tree like this needs four steps:
- Start with a crowd of a round size that avoids fractions.
- Split it by the prior: how many have the thing, how many do not.
- Split each branch by the test: how many of each group give the evidence you actually saw.
- Look only at the branches showing your evidence. Divide the true ones by all of them.
The tree shows 1 true positive and about 10 false ones, which makes roughly 1 chance in 11, the same answer as the DNA story and for exactly the same reason.
Updating twice
The posterior from one piece of evidence is the prior for the next. Say the first test (99 percent sensitive, 99 percent specific, base rate 1 in 1,000) comes back positive. From the earlier note, that leaves 99 true and 999 false positives. Now all 1,098 people take a second test that is independent of the first.
Two positives lift the chance from 9 to about 91 percent. That is why repeat tests are so powerful, on one essential condition: their errors must be independent. If whatever fooled the first test will fool the second in the same way (the same cross-reacting substance, the same lab slip) then the second result adds little or nothing. “Independent” is doing a lot of work in that sentence.
For readers who enjoy it, the shortest form of Bayes uses odds. Multiply your prior odds by the likelihood ratio, which is how many times more likely the evidence is if the thing is true.
A real case: Sally Clark
In 1999 Sally Clark, an English solicitor, was convicted of murdering her two baby sons. A paediatrician, Sir Roy Meadow, told the court that the chance of two cot deaths in such a family was about 1 in 73 million. The conviction was overturned on appeal in 2003, after evidence emerged that had not been disclosed at trial, and she died in 2007.
The statistics were wrong twice. The figure came from squaring a single-death rate, which assumes two deaths in a family are independent. Yet shared genes or shared surroundings could make a second death more likely after a first. And the number was then liable to be heard as the chance of her innocence, which is the prosecutor’s fallacy. What matters is a comparison: how rare are two sudden deaths from natural causes, and how rare is a double infant murder? Both are extremely rare. The Royal Statistical Society issued a public statement in 2001 criticizing the use of the figure.
Where priors come from, and why people argue
Base rates are sometimes a known quantity, like the prevalence of a disease. Other times they are a judgment: how likely was this new drug to work before the trial? How likely is a stranger’s story? Two reasonable people can start from different priors and, given the same evidence, end in different places, though enough good evidence pulls them together.
Being honest about this is better than the alternative, which is having a prior and not admitting it. Extraordinary claims need extraordinary evidence because their prior is low. That is the same arithmetic as the rare disease, applied to a press release.
What to ask
- How common was this before the evidence arrived?
- How often would this evidence appear if the claim were false?
- Has someone quoted the chance of the evidence, given innocence, as if it were the chance of innocence, given the evidence?
- Are the pieces of evidence really independent, or do they share a cause?
The test results calculator lays out a frequency table for any prevalence and test you give it.
Goes with: Base rates and test results, What a p-value is and is not.