Learning Rooms/□ Level 4 · Systems Engineer/Research methods
P-Hacking: Crash Course Statistics #30
CrashCourse · Length: see YouTube · captions on YouTube · nothing loads until you press play
By the end you can…
- Explain how flexible analysis choices inflate false-positive rates.
- Apply a Bonferroni correction and compute expected false discoveries.
- Recognise p-hacking and HARKing and state the remedies.
Watch it all: no segment has been checked by hand for this video yet.
1.Predict before you press play
You test 20 independent metrics, none with a real effect, at α = 0.05. Chance of at least one 'significant' result?
Pick one before you press play. A wrong guess is fine: it is what makes the video stick.
2.See the idea first
Play with this diagram for a minute. It gives you something to hang the video on.
Loading the interactive…
Can't use the diagram? Read a description instead
The forking-paths simulator runs 400 seeded studies in which there is no real effect. Switches add analysis choices (three outcomes, outlier removal, subgroups, peeking). A bar shows the share of studies reporting a 'significant' finding against a marked 5% line. With all switches on it is far above 5%; a Bonferroni switch brings it back near 5%.
3.Watch, actively
Walks through how trying many analyses and reporting the one that worked manufactures false positives, and what pre-registration does about it.
Length: see YouTube · captions on YouTube · source
Nothing loads from YouTube until you press play.
Watch for…
- → Match each p-hacking tactic in the video to a switch in the simulator.
Pause whenever you like. Rewatching a hard minute is a good habit, not a failure.
Can't stream it? Read the idea instead
Try enough analyses, outcomes or subgroups and one will look significant by chance alone. Reporting only that one manufactures a false positive. Pre-registering the analysis, or correcting for the number of tests, keeps the error rate honest.
What the video covers (our own note, written when we verified it): Walks through how trying many analyses and reporting the one that worked manufactures false positives, and what pre-registration does about it.
Written by Tactiverge in our own words, not a transcript. The full lesson below explains the idea without the video.
Read it instead
- Lesson: Module check: forking paths and multiple comparisons · The full lesson explains the idea in text, worked examples and diagrams, with no video needed.
- Engineering Atlas: Multiple comparisons and the garden of forking paths · A team that tunes a gripper on ten metrics and celebrates the one that improved may simply have found the noise.
- Field Guide: Outliers and honest data · A short reference entry on the same idea.
Jot down one thing that surprised you and one question you still have.
4.Practise what you just saw
These come from the lesson that use this video and are checked on the server. Wrong answers get a hint and another try.
Practice 1 · a fresh version every time
A team tests m = 40 sensor tweaks and, unknown to them, none has any real effect. Each test uses α = 0.01. How many "significant" results should they expect purely by chance?
Practice 2
Ten independent null tests at α = 0.05. Probability of at least one false positive? (Give 0–1.)
Practice 3
After seeing data, a learner writes the introduction as if the subgroup effect they found was the original hypothesis. This is…
Practice 4
Checking the p-value after every 5 runs and stopping when p < 0.05 is a problem because…
5.Try it yourself
No simulation models this idea yet. The lesson below has an interactive diagram instead.
6.Where engineers use it
Tuning a robot on many metrics and seeds and reporting the best combination is the engineering version of p-hacking; held-out test conditions are the engineering version of pre-registration.
From the applied view in the lesson Module check: forking paths and multiple comparisons. Checked by automated tests only.
7.Build something with it
Follow-up project
List every analysis choice in your capstone (metrics, exclusions, subgroups, stopping). For each, fix it in the pre-registration or mark it exploratory. If you have several primary tests, state your correction.
Where this video lives
- Module check: forking paths and multiple comparisons · Level 5, week 33
In the course catalogue: RES-520 Reproducible experiments and inference
The video is by CrashCourse, embedded from YouTube with privacy-enhanced mode and never autoplayed. The room around it (prompts, notes, practice, projects) is Tactiverge's, written with AI assistance and checked by automated tests only.