Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Forking paths lab1 of 5
this pill does nothing looks at 1 thing 5 in 100 fooled looks at 10 things 39 in 100 fooled

the story

How many labs say a useless pill works?

A pill does nothing. 1,000 labs test it. A test is fooled by luck about 1 time in 20, so a lab that looks at one thing is fooled 5 times in 100.

But a lab can measure many things: mood, sleep, memory. If it prints any one that looks real, how many labs are fooled?

each lab measures 10 things moodsleepmemoryenergyfocushunger it prints any one that looks real ? in 100 labs say a useless pill works

guess first

Each lab looks at 10 things. How many say it works?

39%of 1,000 labs say the pill works

606 found nothing 394 said it works

run it

Let each lab look at more things. Watch the false alarms.

10 looks

Each square is 10 labs, out of 1,000. Red squares are labs that said the useless pill works, green found nothing. The counts are exact.

every look is one more ticket nonononononoWINnonono 1 win in 20 tickets, by luck alone 10 tickets: a win is likely

why it grows

Every look is one more ticket in the same raffle.

Each look has a 1 in 20 chance of a fluke. Nobody has to cheat. A lab only has to look at many things and print the one that came up.

the working

One look stays quiet: 100 − 5 = 95%10 looks all quiet: 0.95 × itself 10 times= about 60%At least one fluke: 100 − 60 = 40%Counted: 394 ÷ 1,000 = 39%
10 outcomes measured two worlds:a useless pill, a real pill false alarm: says it works, it does not real catch: says it works, and it does we want few alarms, many catches which rule?

your call

10 outcomes. Which rule gives few false alarms and real catches?

PsychologyResearch methods: p-hacking and the replication crisis

The forking paths

A thousand labs test a pill that does nothing. How many publish that it works?

A thousand labs test a pill that does nothing, and each measures several outcomes before writing up the one that came up. The middle panel counts the labs that announce it works. The right panel asks the same labs to catch a pill that really helps. Three tabs apply three reporting rules to identical data.

try this Drag Outcomes each lab looks at from 1 to 20, then switch tabs and watch Labs that announce it works.

10

Mood, sleep, memory, reaction time: a study can measure many things about one pill. Researchers call each choice a researcher degree of freedom, and a paper usually reports only the path it took. The tabs below are three rules for which result gets printed. All three run on the same thousand data sets.

The first labs, pill does nothing

Each row is one lab. A finding here is always a fluke.

  1. 1nothing foundp = .159
  2. 2nothing foundp = .108
  3. 3nothing foundp = .218
  4. 4nothing foundp = .050
  5. 5nothing foundp = .101
  6. 6nothing foundp = .186
  7. 7nothing foundp = .067
  8. 8"works", on outcome 8p = .011
  9. 9nothing foundp = .163
  10. 10nothing foundp = .205
  11. 11"works", on outcome 2p = .016
  12. 12nothing foundp = .177
  13. …and 988 more labs: 392 of them also "found" it

Labs that announce it works

39%394 of 1,000 labs, all false alarms

The arithmetic predicts 40%. The 5% everybody assumes holds only for one planned look.

If the pill really helps

44%of labs headline the outcome that really moved

Same labs and same noise, but now the pill shifts outcome 1 by a modest amount. One planned look catches it about half the time.

The working

Where the share of labs that announce it works comes from, redone every time you move the slider or switch rule.

  1. One look, at a pill that does nothinga flukequieteach dot is one look at one outcomeAny single outcome comes up by chance 1 time in 20, with nothing there at all. 1 ÷ 20= 5%
  2. All 10 looks stay quiet60%0%100%Each look stays quiet 19 times in 20. All 10 quiet is that chance multiplied by itself 10 times.= about 60%
  3. At least one flukea fluke somewhereall quieteach dot is one lab in a hundredWhatever is not all quiet has a fluke somewhere, and this lab reports it. 100 − 60= about 40%
  4. Counted, in this runsay it works394found nothing606Of the 1,000 simulated labs, 394 announced that the pill works. 394 ÷ 1,000= 39%

Why report whatever came up lands where it does

Each lab measures several things about the same pill and writes up whichever one cleared p < .05. Each single look has a one in twenty chance of a fluke, and the chances stack: with ten looks, about four labs in ten find something in a pill that does nothing. Nobody lied. Every number in every paper is real. The rule for choosing which number to print is what broke.

The tradeoff: This rule costs nothing to follow and feels like thoroughness. It pays twice: false findings climb with every extra look, and when the pill really works, the lab often headlines a louder fluke instead of the outcome that actually moved.

Five percent is a promise about one look

"p < .05" means one thing. If the pill does nothing, a single planned test comes out this extreme by chance about one time in twenty. It says nothing about a paper whose authors tried ten things and printed the one that worked. Each look is another ticket in the same raffle.

The chances multiply. The chance that ten honest looks all come up empty is 0.95 multiplied by itself ten times, about 0.60. So about 40% of labs see at least one fluke. At twenty looks it is about 64%. The slider shows the simulation landing on that curve.

Nobody has to cheat. Measuring more than one thing is normal, and so is deciding afterwards which analysis looks most sensible. In 2011 three psychologists used exactly these choices to "show" that listening to a Beatles song made students younger. They reported that combining four common choices pushed the false-alarm rate above 60%.

The fixes are not free. Raising the bar for every look keeps the false alarms down and loses real effects. Writing the plan down first keeps both numbers honest and gives up the surprises. That trade is why the field moved to preregistration rather than to ever-stricter thresholds.

Limits of this model

The outcomes here are independent. Real outcomes are often related (sleep and mood move together), so ten real looks inflate the false rate less than ten independent ones. This lab shows the upper end. The direction is the same either way.

The real effect is a teaching value. It is sized so one honest test catches it about half the time. Real effects in psychology vary, and many are smaller, which makes the cost of the stricter bar larger, not smaller.

A thousand labs is a sample, not the formula. The panels count real simulated labs, so they wobble a point or two around the arithmetic printed beside them. The noise is drawn from a fixed hash, so every visit and every tab sees the same thousand labs.

This lab does not model publication. In the real record, journals mostly printed the labs that found something and the rest stayed in a drawer. That filter makes the published share of false findings worse than any number on this page.

Sources

Three panels and a slider. On a narrow screen the panels stack. Nothing animates or plays on its own.

the lesson How Psychology Knows What It Knows
The whole idea this lab came from, told start to finish.

on the path Module 1 of 2 in Psychology: How the Mind Works
The lessons, boards and videos around this lab, in reading order.

Board: Decision-Making Under Uncertainty

next lab The work_mem dial
Your sort spills to disk. Give it more memory and it stops. Why does nobody set work_mem to a gigabyte?