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 α\alpha has false-positive probability at most α\alpha when the null hypothesis and test assumptions hold; an exact-size test attains α\alpha. If mm independent exact-size tests are conducted at level α\alpha 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.

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

Family-wise error rate for independent exact-size tests (size = 0.05) as the number of tests grows


FWER=1−(1−α)m\text{FWER} = 1-(1-\alpha)^{m}


The structure of the formula is worth reading rather than memorising. (1−α)(1-\alpha) is the chance one exact-size test stays non-significant under its null; (1−α)m(1-\alpha)^m is the chance all mm do, assuming independence; and one minus that is the chance at least one slips through.


For tests known only to be valid at level α\alpha, 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\alpha = 0.05 with no correction:


FWER=1−(0.95)3=1−0.857=0.143\text{FWER} = 1-(0.95)^{3} = 1-0.857 = 0.143


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 α\alpha, the Bonferroni correction tests each hypothesis at the stricter level α∗=α/m\alpha^{*} = \alpha/m.


It is deliberately conservative: it guarantees the family-wise rate is at most α\alpha 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 α\alpha

Multiple unadjusted tests, report the best

Inflated to the FWER

Optional stopping on p<0.05p < 0.05

Can be inflated, and may go uncounted

Bonferroni correction

Held at or below α\alpha



Which of the following research practices is the clearest example of p-hacking?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

The term replication crisis, as used in modern science, mainly refers to the observation that:

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

A researcher tests 4 independent, unrelated hypotheses on the same dataset, each an exact-size test at α=0.05\alpha = 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 %.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors