What is p-hacking, and why does it produce so many false scientific findings?
P-hacking is when researchers, often unintentionally, analyse data in many different ways and then report the version that gives a "statistically significant" result. It's one of the main reasons some published findings fail to replicate.
A quick refresher
A common threshold is p < 0.05. Roughly, that means: if there were truly no effect, results at least this extreme would turn up less than 5% of the time by chance. So even when nothing is going on, about 1 in 20 tests will cross the line by luck alone.
How p-hacking happens
Each of these seems innocent on its own:
- Testing many outcomes and reporting only the one that "worked"
- Collecting more data and checking again until p dips below 0.05
- Removing "outliers" after seeing the results
- Trying different control variables or subgroups ("it works for women under 40!")
- Choosing between several reasonable analyses after peeking at the data
Statisticians sometimes call this the garden of forking paths: with enough choices, you can almost always find a path to significance.
Why it matters
If you run 20 independent tests on pure noise, the chance at least one hits p < 0.05 is around 64%. Publish only that one, and you've reported a false positive that looks rigorous.
What helps
- Pre-registration: stating hypotheses and analysis plans before collecting data
- Registered reports: journals agreeing to publish based on the methods, regardless of the result
- Sharing data and code
- Replication studies and treating single surprising findings with caution
Discussion:
- How can non-experts tell when a headline finding might be a product of p-hacking?
- Should journals publish more null results?
Comments · 4
A simple demo: test 20 unrelated variables against an outcome and at a 5 percent threshold you'll expect about one false positive by chance alone.
The 1-in-20 point makes sense, but how do pre-registration and corrections for multiple comparisons deal with it in practice? Do they fully solve the problem, or just reduce it?
Short version: run enough tests and something will look significant by chance. Deciding the analysis plan before seeing the data is the simplest protection.
The "dead salmon" fMRI study is a classic joke on this: a dead fish showed brain activity until they corrected for multiple comparisons.