Note 15
Multiple comparisons and p-hacking
Researchers tested the supplement, and it worked for women over 50 who took it in the morning.
The oddly specific finding is the giveaway. Nobody starts a study in the belief that a supplement will help women over 50, but only in the morning. A sentence like that usually means someone looked at many subgroups, and this is the one that lit up.
The arithmetic of looking
The usual 0.05 threshold means that when nothing is going on, a test will cry wolf about one time in twenty. That rate applies to one test. Run more and the chance of at least one false alarm climbs quickly.
The webcomic xkcd made the definitive joke about this in a strip called “Significant”. Scientists test jelly beans for a link to acne, find none, test twenty separate colours, and get a hit for green. The newspaper reports that green jelly beans are linked to acne, 95 percent confidence, and it does not mention the other nineteen.
A real and delightful demonstration came from Craig Bennett and colleagues, who put a dead Atlantic salmon in an fMRI scanner, showed it photographs of people in social situations, and asked it to judge their emotions. Without correction for the many thousands of brain locations being tested, the analysis found “active” regions in the salmon’s brain. The paper won an Ig Nobel Prize. Its serious point was that a whole field needed to apply the correction routinely.
You do not have to run twenty tests
Andrew Gelman and Eric Loken call the subtler problem the garden of forking paths. Researchers need not be cheats, and they need not knowingly run dozens of analyses. They just make reasonable choices after seeing the data, each of which might have gone another way.
- Which outcome? Weight, waist, body fat or blood sugar?
- Which subgroup? Everyone, or men, or those over 50?
- Should the outliers go? Which ones?
- How long a follow-up? Six weeks or twelve?
- Which variables to adjust for?
- Stop collecting data now, or get a few more?
Each fork is defensible. Given a different data set they would have gone differently, and that is the point. An analysis that bends towards whatever looks interesting has the same false-alarm problem as twenty separate tests, even if only one is ever run.
The deliberate form of it, trying things until p falls under 0.05, is called p-hacking. In their 2011 paper “False-Positive Psychology”, Joseph Simmons, Leif Nelson and Uri Simonsohn showed how far it can go. Using a real experiment with real participants and a handful of common flexible choices, they obtained a “significant” result that listening to the Beatles’ “When I’m Sixty-Four” made people younger. Not feel younger: be younger, by date of birth. They also ran simulations in which a few such choices raised the false-positive rate from 5 percent to over 60.
A related trick is HARKing, hypothesizing after the results are known (a term from Norbert Kerr, 1998). You see the pattern, then write the paper as though you predicted it. It is like the Texas sharpshooter who fires at the side of a barn and then paints the target around the tightest group of holes.
Then publication makes it worse
Even with honest, single-test studies, the published record gets distorted. If twenty labs test something useless, one will find an effect by chance. That lab writes it up; the other nineteen, with their dull nulls, put theirs in a drawer. This is called publication bias, or the file drawer problem, and the reader sees only the one.
Effects published in this way also tend to be overstated. If only results that pass a bar get seen, then a small study will clear it only by overestimating, so the first report of an effect is often the largest. This is sometimes called the winner’s curse.
In 2015 the Open Science Collaboration reported in Science on their attempts to repeat 100 published psychology experiments. About 97 percent of the originals had reported significant results; about 36 percent of the replications did. The replication effects averaged about half the size of the originals. Interpret that with care, because a failed replication is one more noisy study. It was still a striking result, and similar projects in other fields followed.
Defences
Correction. The simplest is the Bonferroni correction: divide your threshold by the number of tests. Twenty tests at an overall 0.05 means each must reach 0.0025. It is blunt, because it reduces your power to catch anything real. Methods such as the false discovery rate of Benjamini and Hochberg (1995) are gentler and are common in genomics, where one study may compare thousands of genes at once.
Preregistration. Write down the hypothesis, the outcome and the analysis before you look, and file it publicly with a date. Clinical trials have had to be registered to get into leading medical journals since the mid-2000s, and registries such as ClinicalTrials.gov let you compare what was planned with what was published. Outcomes that quietly change between registration and paper are a warning sign.
Registered reports. A journal agrees to publish on the basis of the question and method, before the result is known. That removes the file drawer.
Replication. A hypothesis found by exploring is fine as a hypothesis. Test it on fresh data, and let it win or lose there.
Separate exploring from confirming. Exploration is how science finds things. Trouble comes only when an exploratory finding is reported as if it were a confirmed one. A careful paper labels which is which.
How to spot it from the sofa
- A narrow subgroup or a strange combination in the headline.
- A p-value just under 0.05, particularly several in the same paper.
- A surprising finding from a small study, with no replication.
- An outcome you would not have picked first.
- Lots of measures collected, and only a few discussed.
- The phrase “exploratory”, which is honest. Its absence, when the analysis is clearly exploratory, is less so.
If you could ask the authors
- How many things did they look at, in total?
- Was this analysis planned in advance, and can you see the plan?
- Did they correct for looking in many places?
- Has anyone tried it again with new data?
- Why this subgroup? Is there a reason other than that it came out?
Goes with: What a p-value is and is not, Large numbers, coincidence and the gambler’s fallacy.