Replication Crisis and P-hacking
Replication Crisis and P-hacking
The replication crisis is the observation that a large share of published, statistically significant findings fail to reproduce when independent researchers run the study again. It is not mainly a story about fraud. Most of it follows from ordinary practices that quietly break the assumptions a p-value depends on.
Chief among them is p-hacking: analysing data many different ways, trying subgroups, adding or dropping covariates, removing outliers, collecting a few more participants and re-checking, until some p-value falls below 0.05, and then reporting that result as though it had been the single pre-planned test.
Why this inflates false positives
A valid test at level α has false-positive probability at most α when the null hypothesis and test assumptions hold; an exact-size test attains α. If m independent exact-size tests are conducted at level α while all nulls are true, the probability that at least one is falsely significant is the family-wise error rate:
Twenty independent exact-size hypothesis tests, each with size 0.05 under its null, on data for which every null hypothesis is true. The dashed line marks the 0.05 significance threshold; the red point is one test falling below it.
Family-wise error rate for independent exact-size tests (size = 0.05) as the number of tests grows
The structure of the formula is worth reading rather than memorising. (1−α) is the chance one exact-size test stays non-significant under its null; (1−α)m is the chance all m do, assuming independence; and one minus that is the chance at least one slips through.
For tests known only to be valid at level α, this formula is an upper bound rather than necessarily an equality.
Worked example
A lab runs 3 independent, unrelated exact-size tests at α=0.05 with no correction:
So there is roughly a 14% chance of at least one “significant” result from pure noise, nearly three times the advertised 5%, after only three tests.
To hold the overall rate at α, the Bonferroni correction tests each hypothesis at the stricter level α∗=α/m.
It is deliberately conservative: it guarantees the family-wise rate is at most α whether or not the tests are independent, at the cost of reduced power to find effects that are genuinely there.
Less severe alternatives exist, such as controlling the false discovery rate (the expected proportion of false discoveries among discoveries under the procedure's assumptions), which is useful when thousands of tests are run at once.
Where the hidden tests come from
The dangerous version of multiple testing is the version nobody counts. Trying four outcome measures and selecting the one that worked gives four tests.
By contrast, checking the data after every ten participants creates one look at each checkpoint reached until stopping; the number of looks depends on when the analyst stops and need not be four.
These researcher degrees of freedom never appear in the write-up, so the reported p-value is computed as though a single planned test had been performed.
Optional stopping deserves particular attention because it feels so reasonable. With ordinary unadjusted fixed-sample p-values recalculated as data accumulate, repeated peeking can inflate the chance of crossing 0.05 under a true null; as uncapped looks continue, that probability approaches 1.
The p-value wanders, and the analyst is waiting for it to wander low. A planned sequentially valid design calibrates its stopping rule to keep the probability of ever crossing at or below its target; fixing the sample size in advance is another option.
Practice | Effect on the true error rate |
|---|---|
Pre-registration, one planned valid test | At or below α |
Multiple unadjusted tests, report the best | Inflated to the FWER |
Optional stopping on p<0.05 | Can be inflated, and may go uncounted |
Bonferroni correction | Held at or below α |
The term replication crisis, as used in modern science, mainly refers to the observation that:
A researcher tests 4 independent, unrelated hypotheses on the same dataset, each an exact-size test at α=0.05, without any correction for multiple comparisons. Assuming all 4 null hypotheses are actually true, what is the probability (as a percentage) that at least one test is falsely declared statistically significant? Give your answer to one decimal place.
Give your answer in %.