The question a p value answers
Suppose an instructor wants to know whether retrieval practice (quizzing yourself) beats rereading. Forty students are randomly split: 20 use retrieval practice and 20 reread. Everyone takes the same quiz. Scores vary a lot from student to student, with a standard deviation of about 10 points.
Press the button to run the study. Each dot is one student.
The two group averages differ. But they would differ a little even if the learning method did nothing at all, because each group is a random handful of students. The p value asks one narrow question:
Imagine running this exact study thousands of times in a world where the learning method makes no difference, and recording the gap (as a t statistic) each time. Most gaps land near zero and big ones are rare. The curve below is the outline of that pile of results. The shaded tails hold the share of those imaginary studies with a gap at least as big as yours, and that share is the p value.
Notice what the p value assumes: it is calculated inside a world where the null hypothesis is true. It tells you how surprising your data would be in that world. It does not tell you whether you are in that world.
When nothing is going on
Now let's imagine that the learning method really makes no difference: retrieval practice and rereading produce exactly the same average score. The null hypothesis is true. Now run the study again and again, with new students each time, and record every p value.
Before you start, guess: if nothing is going on, will most p values be large, like .80 or .90?
With enough studies, the bars level out. When the null hypothesis is true, every p value between 0 and 1 is equally likely. A p of .03 is no rarer than a p of .63.
So about 5% of studies come in under .05 even though nothing is going on. That 5% is α (alpha), the false alarm rate you agree to accept when you use .05 as your cutoff. It is a property of the procedure, decided before any data come in.
The dance of the p values
Now let's imagine that retrieval practice really does help. The size of the benefit is set by d, the difference between the average quiz scores for the two learning methods, measured in standard-deviation units (d = 0.5 means 5 quiz points, because the standard deviation is 10 points). Replicate the identical study many times and watch where p lands.
Every replication is the same study of the same real effect, yet p jumps around wildly. With d = 0.5 and 20 per group, one run can give p = .002 and the next p = .40. Only about a third come out significant, because the study has low power: the chance of detecting a real effect of this size.
Two lessons follow. First, a single p value is a noisy measurement; it would likely be quite different if you ran the study again. Second, p above .05 does not mean there is no effect. Here the effect is real in every run, and most runs still miss it.
Now look at the right side. Each line is one study's estimate of the difference in quiz points, with its 95% confidence interval: the range of differences the data are reasonably consistent with. The estimates dance too, but each interval shows how uncertain its own study is. With 20 students per group the intervals are wide, and that is the honest answer: these studies can't pin the effect down precisely. Over many replications, about 95% of the intervals include the true difference (the green line).
An interval that just crosses zero and one that just misses it look almost the same, yet their p values fall on opposite sides of .05. Try more students per group and watch the intervals shrink.
Same effect, different sample size
"Significant" sounds like "important," but p mixes together two things: how big the difference is and how many people you measured. Leave the observed difference at a single fixed value and change only the sample size.
The effect never changed, yet p slid from "nothing here" to "highly significant" just by adding students. With 5,000 students per group, a difference of half a quiz point comes out significant. With only a handful of students, a large difference can fail to reach .05.
That is why a p value is no substitute for the effect size and its confidence interval. Ask "how big is it?" separately from "how surprising is it under the null?"
A p value is not the chance the result is a fluke
Here is the most common misreading: "p = .05 means there is only a 5% probability that this result happened just by chance." It sounds right, and it is wrong. It answers a different question from the one the p value answers.
Reading the notation. P( ) means "the probability of." The vertical bar | means "given that" or "assuming." So P(significant | null true) reads "the probability of getting a significant result, assuming the null hypothesis is true." The order matters: P(A | B) and P(B | A) are usually different numbers, and that difference is the whole point of this step.
The second number depends on things the p value knows nothing about: how often the hypotheses a field tests are true to begin with, and how much power the studies have. Picture 1,000 studies and count.
The same 1,000 studies, one square each
Try a field where few tested ideas pan out (10%) with typical power (35%): more than half of the significant results are false alarms, even though α is 5%. Raise the base rate or the power and the share drops. The p value never changes in any of this. Only the posterior does.
The same mistake happens in everyday reasoning. Most people with measles have spots, so P(spots | measles) is high. That does not make P(measles | spots) high, because spots have many other causes. Flipping a conditional probability requires the base rate.
So what is "the probability this happened by chance"? It is P(null true | data). A p value cannot give you that number, because it was calculated by assuming the null is true. Getting a posterior probability takes a prior, which is what Bayesian analysis adds.
You got p = .04. How sure can you be?
The last step lumped every significant result together, from p = .0001 up to .049. But a researcher holds one particular p value. What fraction of studies that land in a narrow range, like .04 to .05, were testing a null that was true?
This uses the base rate and power you set in the last step. You can change them here too.
Set the base rate to 50%, a coin flip, and power to 80%. A result between .04 and .05 still comes from a true null about a quarter of the time, far more than 4 or 5%. A p value just under .05 is weaker evidence than most people think.
Smaller p values are stronger evidence; compare the "below .001" range. But at no setting does the p value itself equal the chance that the null is true.
Calculated for a two-sided test of a normally distributed statistic; the real effect is assumed to be the same size in every study.
True or false?
Each statement below is about a study that found p = .03, unless it says otherwise. Mark each one. Most of these misreadings show up regularly in published papers and textbooks.
What to remember
A p value is
- The probability of data at least this extreme, assuming the null hypothesis and every other assumption of the test.
- Equally likely to be anything from 0 to 1 when the null is true.
- Noisy: it can change a lot when the same study is repeated.
- Driven by both effect size and sample size.
A p value is not
- The probability that the null hypothesis is true.
- The probability that the result happened "just by chance."
- The probability that a replication will succeed.
- A measure of how big or important the effect is.
- Proof of no effect when it is above .05.
To get the probability that a hypothesis is true given the data, you need a prior probability and Bayes' rule, as in the tree in step 5. A p value answers the reverse question: how probable the data are given one hypothesis.
Further reading
- Greenland, S., Senn, S. J., Rothman, K. J., Carlin, J. B., Poole, C., Goodman, S. N., & Altman, D. G. (2016). Statistical tests, P values, confidence intervals, and power: A guide to misinterpretations. European Journal of Epidemiology, 31, 337–350.
- Wasserstein, R. L., & Lazar, N. A. (2016). The ASA statement on p-values: Context, process, and purpose. The American Statistician, 70, 129–133.
- Cumming, G. (2008). Replication and p intervals: p values predict the future only vaguely, but confidence intervals do much better. Perspectives on Psychological Science, 3, 286–300.
- Colquhoun, D. (2014). An investigation of the false discovery rate and the misinterpretation of p-values. Royal Society Open Science, 1, 140216.
- Gelman, A., & Stern, H. (2006). The difference between "significant" and "not significant" is not itself statistically significant. The American Statistician, 60, 328–331.