statable Statistics for study and research

How does a false alarm arise without anyone cheating? (p-hacking, researcher degrees of freedom, HARKing, several outcomes)

In brief

False alarms often arise not from deceit but from many small decisions made after looking at the data: collecting more, excluding values, merging groups, choosing another outcome. Every possibility is a further test. Anyone who reports only the striking one runs a much higher risk than the stated 5%.

An example by hand

A study measures 3 outcomes on the same people and tests each one separately at the 5% level. In reality there is no effect. A single test stays quiet with 95%, all three stay quiet with 0.95 · 0.95 · 0.95 = 0.857. The opposite, at least one false alarm, has the remaining 14.3%.

In general, for m independent tests: risk = 1 − 0.95^m. With 5 outcomes it is 22.6%, with 20 outcomes 64.2%. At 14 outcomes the risk is already above 50%: a coin toss whether the study "finds" something.

Where the freedoms hide

What raises suspicion

How it works in Statable

  1. Under "Learning" open the unit "Recognising p-hacking": first "Work it out yourself", then "Try it out" in the learning lab "Random experiments" with an urn of 5 red and 95 blue balls from which 20 draws are made.
  2. For several comparisons in one analysis choose a correction (Bonferroni or Holm for the pairwise comparisons), and state the number of comparisons run in the report.

What is often misunderstood

For specialists

The formula 1 − (1 − α)^m assumes independent tests; with several tests on the same data it is only an approximation. The Bonferroni correction α : m keeps the familywise error rate at most at α, even for dependent tests, and is rather conservative. The basic problem remains: the actual number of researcher degrees of freedom is often unknown, even to the researchers themselves. That is why an analysis fixed beforehand helps most; a correction afterwards can only count the tests that are known.

Sources

Simmons, J. P., Nelson, L. D. & Simonsohn, U. (2011). False-positive psychology. Psychological Science, 22, 1359-1366. Wasserstein, R. L. & Lazar, N. A. (2016). The ASA statement on p-values: context, process, and purpose. The American Statistician, 70, 129-133.

Take away

  • With m independent tests without an actual effect the false alarm risk is 1 − (1 − α)^m, not α.
  • Researcher degrees of freedom work even without intent: every decision after looking at the data counts.
  • A report needs the number of outcomes, tests and decisions, not only the striking hit.
  • Remedy: fix the plan beforehand, state the number of tests, correct the level, mark what came afterwards as exploratory.

Related

Open in Statable