"With enough comparisons, the bell curve will hand you significance by accident. The replication crisis is what happens when this is mistaken for discovery."
The Mechanism
Under a true null hypothesis, ~5% of statistical tests come up p < 0.05 by random chance alone (the Type I error rate at α = 0.05). If you run 20 independent tests against the null, expectation is one of them will be 'significant' even though nothing real is happening.
'P-hacking' is exploiting this — explicitly or accidentally — by running many tests, choosing the one that hit p < 0.05, and reporting only that one. The reported p-value is technically correct for the single test it describes. The selection process — looking at many and reporting one — is the problem. The published p-value omits the fact that the researcher rolled the dice many times before reading the result.
The Common Forms
- Trying many outcome measures: 'we measured 15 different things; one was statistically significant.' Unsurprising.
- Trying many subgroups: 'overall no effect, but in left-handed women aged 30-40 there was a p < 0.05 result.'
- Trying many model specifications: 'using these covariates and excluding these outliers, the effect becomes significant.'
- Stopping data collection when results favor you: 'we ran the study until p crossed 0.05 and then stopped.'
- The 'garden of forking paths': researchers make many small analytical decisions that, together, amount to running many implicit tests — even without intending to p-hack.
The Multiple-Comparison Correction
The fix, when you must run many tests, is to correct the threshold for the number of comparisons. The Bonferroni correction is the simplest: if you run M tests, lower your per-test threshold to α/M. So 20 tests, individually at α = 0.05/20 = 0.0025 each. This is conservative; better procedures (False Discovery Rate, Benjamini-Hochberg) exist for high-dimensional settings.
Pre-registration is the social fix: announce in advance what you will measure, how you will measure it, and what test you will run. Then any 'exploratory' analysis is labeled as such and cannot masquerade as confirmatory.