Note 13
What a p-value is and is not
The study found a statistically significant effect.
Few phrases do so much work on so little understanding. In ordinary English, “significant” means important. In statistics it means something more modest and rather odd: the data would be unusual if nothing were going on. An effect can be significant and trivial, and a real effect can fail to be significant. Let us see what the thing actually says.
A coin in a pub
A friend tosses a coin ten times and gets nine heads. You begin to wonder about the coin.
The logic goes like this. Assume the boring explanation: the coin is fair. This assumption is called the null hypothesis. Now work out how often a fair coin would give a result at least as extreme as yours. If that is very rare, then either something rare has happened or the boring explanation is in trouble.
There are 210 = 1,024 equally likely sequences of ten tosses. Ten of them have exactly nine heads and one has ten heads. That is 11 sequences, a chance of about 1.1 percent. Since nine tails would have made you just as suspicious, you count both ends and get 22 in 1,024, about 2.1 percent. That is the p-value.
Stated carefully: if the coin is fair, a result at least this far from five heads would turn up about 2 percent of the time.
Every word there matters. The p-value assumes the null hypothesis and asks about the data. It is a statement about how surprising your result is under one specific assumption.
What it is not
Here is where almost everyone slips, including, in surveys of the matter, many who teach it. A p-value of 0.02 does not mean:
- There is a 2 percent chance the coin is fair. That is the opposite conditional, the same swap as the prosecutor’s fallacy. If your friend borrowed the coin from your own pocket five minutes ago, you might still be nearly sure that it is fair, and rightly so.
- There is a 98 percent chance the result is real.
- The result would replicate 98 percent of the time.
- The effect is large or matters.
In 2016 the American Statistical Association took the unusual step of issuing a formal statement on the subject, written up by Ronald Wasserstein and Nicole Lazar in The American Statistician. In substance it said that p-values can indicate how incompatible the data are with a specified model. It also said that they do not measure the probability that a hypothesis is true, that scientific conclusions should not rest only on whether a p-value passes a threshold, that proper inference requires full reporting and transparency, that a p-value does not measure the size or importance of an effect, and that by itself a p-value is not a good measure of evidence.
Where 0.05 came from
Largely from R. A. Fisher, whose Statistical Methods for Research Workers (1925) treated a 1-in-20 result as a convenient point at which to take notice. He used it as a rough guide for what deserved a second look, and there is no natural law behind it. A result with p = 0.049 is scarcely different in strength from one with p = 0.051, though the first gets into a journal and the second gets “failed to reach significance”, or its sadder relative, “a trend towards significance”.
Significant is not the same as big
The p-value mixes up two things: how big the effect is and how much data you have. With enough people, anything is significant.
An invented diet that makes people 100 grams lighter would be “significantly” better in a study of this size. Nobody would thank you for it. And it works the other way. A small study can miss a large effect, returning p = 0.3 for a treatment that really works. It is not evidence that the treatment does nothing, only that this study could not tell.
So look for the effect size with its uncertainty, usually a confidence interval. “Blood pressure fell 7 points, give or take 2” is more use than “p < 0.001”, and it contains the p-value’s information as well.
How many significant findings are real?
This is the base rate argument of the test results note again, with hypotheses in place of patients. Imagine a field in which 1 in 10 of the ideas tested are true, studies catch 80 percent of true effects (that catch rate is called power), and the threshold is 0.05.
| Significant | Not significant | Total | |
|---|---|---|---|
| True effect | 80 | 20 | 100 |
| No effect | 45 | 855 | 900 |
| Total | 125 | 875 | 1,000 |
Of 125 significant results, 45 are false alarms. That is 36 percent, and this is with honest researchers who ran one analysis each. “5 percent” is the chance that a null effect looks significant. It is not the chance that a significant result is null. John Ioannidis’s 2005 essay “Why Most Published Research Findings Are False”, in PLOS Medicine, built on this kind of arithmetic and added bias and low power, which push the share higher.
That is why surprising significant results deserve the most doubt. A startling claim has a low prior, so it sits in a row like the bottom one. And the ways that researchers can accidentally inflate the rate are the subject of the note on multiple comparisons.
Reading one in the wild
Here is a rough translation guide for a single, honest, pre-planned analysis:
| Report | Rough meaning |
|---|---|
| p = 0.30 | Data are quite compatible with no effect, or with an effect the study is too small to see |
| p = 0.04 | Worth a second look; weak on its own |
| p = 0.001 | Hard to explain by chance alone; other explanations still open |
| “Not significant” | Not evidence of no effect, unless the interval is narrow around zero |
| p < 0.05, no effect size | Ask how big it is |
“Chance alone” is the only explanation a p-value addresses. A tiny p-value says nothing about confounding, bias or a broken thermometer. It would happily give a very small value to a badly chosen sample.
What to ask
- How big is the effect, in units that matter to a person?
- What does the interval around it look like?
- What was the null hypothesis, and was anybody seriously proposing it?
- How plausible was this before the study?
- How many other things were tested along the way?
- Has it been repeated by someone else?
Goes with: Confidence intervals, Multiple comparisons and p-hacking, Bayes in natural frequencies.