ECON 410 · Econometrics II: Causal Methods and Time Series

Replication, Data Mining and Research Honesty

How honest researchers can still fool themselves with many tests, and the habits that make findings worth trusting.

Key takeaways

  • A 5% significance level means that even when nothing is going on, about 1 test in 20 will look significant by chance.
  • Running many tests, then reporting only the winners, is data mining or p-hacking, and it produces false findings.
  • Journals tend to publish striking results, so published findings overstate real effects (publication bias).
  • Replication, meaning checking a result with the same or new data, is how science corrects itself.
  • Pre-registering a plan, sharing data and code, and reporting every test you ran make results more trustworthy.

Imagine a student who wants to show that a certain breakfast cereal makes people better at math. She collects data on 20 traits of the cereal eaters: age, sleep, height, favorite color, shoe size, and so on. She tests each trait for a link with math scores. One of them, shoe size, shows a result that is "statistically significant." She writes a paper called "Big Feet Beat Fractions."

Is she a cheat? Not necessarily. She may have followed every rule in the statistics textbook. And yet her result is probably nonsense. Run enough tests, and some will come up significant by luck alone. This lesson explains why, how it quietly shapes real research, and what habits make a result worth believing. The tools in this whole course, from experiments to difference-in-differences, are only as good as the honesty of the people using them.

What a p-value really says

Recall the logic of a significance test. You assume nothing is going on, called the null hypothesis, and ask how surprising your data would be if that were true. The p-value is the chance of seeing a result at least this extreme if the null were true. By common convention, a p-value below 0.05 is called "statistically significant."

Pause on what that means. A threshold of 0.05 says: if there is truly no effect, we will mistakenly declare one in 5% of tests. That mistake is a false positive. For a single, planned test, a 5% risk is reasonable. The trouble starts when the same data answers many questions.

A p-value is also not the probability that the finding is true. It says nothing about how likely the idea was in the first place. A claim that cereal boosts math through a plausible chain deserves more trust than a claim that shoe size does, even if both have p = 0.04.

The multiplication problem

Suppose all 20 of the student's tests are really about nothing, and each has a 5% false-positive chance. What is the chance that at least one comes up significant?

Work it backwards. The chance that one test does not cry wolf is 1 − 0.05 = 0.95. If the tests are independent, the chance that all 20 stay quiet is 0.95 multiplied by itself 20 times:

0.95²⁰ ≈ 0.3585

So the chance that at least one test comes up significant is:

1 − 0.3585 = 0.6415, or about 64%

More likely than not, a "discovery" appears out of pure noise. With 100 tests you would expect about 5 false alarms on average (100 × 0.05). The more doors you try, the more likely one is unlocked by accident.

Chance of at least one false alarm, by number of tests
1 test 5% 5 tests 22.6% 10 tests 40.1% 20 tests 64.2% 50 tests 92.3% 1 test 5% 5 tests 22.6% 10 tests 40.1% 20 tests 64.2% 50 tests 92.3%

Hypothetical example: the numbers are made up to show the method, not a quote or an average.

The values come from 1 − 0.95ⁿ. For 5 tests that is 1 − 0.7738 = 0.226, for 10 it is 1 − 0.5987 = 0.401, and for 50 it is 1 − 0.0769 = 0.923. Fifty tests on pure noise nearly guarantee a headline.

Data mining, p-hacking and the garden of forking paths

Data mining means searching a dataset for patterns without a prior plan. Done openly, it is a fine way to generate ideas to test later. Done secretly and reported as if the finding were planned, it misleads. When the aim is specifically to push a p-value below 0.05, it is called p-hacking.

P-hacking does not need to be a villain's trick. It often grows from many small, reasonable-seeming choices:

  • Drop a few outliers that look odd.
  • Try a slightly different set of control variables.
  • Split the sample by gender, age or region and look at each part.
  • Try a log of the outcome, or a different time window.
  • Stop collecting data when the result first crosses 0.05.

Statisticians call the sum of these choices the garden of forking paths. At every fork, the researcher picks a path that seems sensible after seeing which path gives a clean result. Each path alone is defensible. Taken together, they behave like running many tests, while the paper reports only the one that worked.

Forking paths multiply the tests you ran
All or split? 2 choices Sample Few or many? 2 choices Controls Keep or drop? 2 choices Raw or logged? 2 choices Outliers Outcome One dataset, one question The honest plan has one path One dataset, one question The honest plan has one path Outliers: Keep or drop? 2 choices Controls: Few or many? 2 choices Sample: All or split? 2 choices Outcome: Raw or logged? 2 choices

Even three yes-or-no choices make 2 × 2 × 2 = 8 different analyses. Add a few more forks, and you reach dozens, with no single moment that felt like cheating.

Publication bias: the missing studies

There is a second filter after the first. Journals and readers like surprising, significant results. Quiet results, "we found nothing," are less often submitted and less often accepted. This is publication bias, also called the file-drawer problem, since the null results stay in the drawer.

Here is a worked example. Say 200 teams each study a treatment that truly has zero effect. With a 5% false-positive rate, about 200 × 0.05 = 10 studies find a significant result. Roughly half of those are in the positive direction, about 5. If only the 5 "positive" studies are published, a reader sees five papers saying the treatment works and none saying otherwise. The literature looks like solid support for something that does nothing.

The same pattern also inflates real effects. If only the studies that get large estimates become significant, the published average sits above the true one. This is sometimes called the winner's curse: the studies that win the publication race are partly the lucky ones.

Replication: checking the work

Science's answer to all this is replication. People use the word in two ways, and the difference matters.

  • Reproduction (or computational replication): taking the original data and code and checking that you get the same numbers. It tests whether the work was done and reported correctly.
  • Replication in the full sense: running the study again, with new data or a new sample, to see whether the finding holds.

A reproduction can catch coding slips, such as a column of numbers that was misaligned or a variable that was coded backwards. A fresh replication can catch the luck problem, since a false positive from a lucky sample will usually not show up again.

In recent years, many fields, including psychology and economics, have run large projects that tried to repeat published findings. The common result is that a meaningful share failed to replicate, or replicated with smaller effects. The details vary a lot by field and by project, so treat any single percentage with care, and look at the specific project if you need the numbers.

A fix: pre-registration, and a stricter threshold

There are practical remedies. Here is what careful researchers do:

Careless and careful research habits
Risky habits Decide the analysis after seeing results Report only the tests that worked Tweak until p drops below 0.05 Keep data and code private Trustworthy habits Pre-register the plan and tests Report every test that was run Label exploratory results as exploratory Share data and code for others to check VS Risky habits Decide the analysis after seeing results Report only the tests that worked Tweak until p drops below 0.05 Keep data and code private Trustworthy habits Pre-register the plan and tests Report every test that was run Label exploratory results as exploratory Share data and code for others to check

Pre-registration means writing down your hypotheses, sample and analysis before seeing the outcome data, and posting it in a registry. In economics, the American Economic Association runs a registry for randomized trials. It does not forbid exploration; it separates what was planned from what was found afterward.

For many tests, you can also use a stricter cutoff. The simplest is the Bonferroni correction: divide the threshold by the number of tests. For 20 tests at the 5% level, the new cutoff is 0.05 ÷ 20 = 0.0025. Now a p-value must be below 0.0025 to count. The chance of at least one false alarm across all 20 drops to about 5% instead of 64%. The method is blunt and can miss real effects, but it is easy to understand, and more refined versions exist.

Also report effect sizes and confidence intervals, not only stars of significance. A result can be statistically significant yet tiny in the real world, and a big sample can make trivial differences look significant.

A common mistake: thinking honesty only means no lying

The deepest lesson is that you do not need to lie to mislead. You can be sincere and still fool yourself, because you see what you hope to see and keep digging until a result appears. So honest research is partly about building habits that protect you from your own wishes.

A related mistake is the opposite one: deciding that no result can be trusted. That is too far. A finding that is predicted in advance, comes from a clean design, matches theory, and appears in several studies is on solid ground. Your own study of the topic should aim to be that kind, and the final lesson, designing your own empirical study, shows how. Beware too of results that seem too good: when a prediction model boasts an extraordinary fit, ask how many models were tried before it.

Words to know

Null hypothesis the starting claim that nothing is going on, which a test tries to find evidence against.

p-value the chance of seeing data at least this extreme if the null hypothesis were true.

False positive declaring an effect when there truly is none.

p-hacking trying many analyses until one crosses the significance line, then reporting it as if planned.

Publication bias the tendency for journals to publish significant results over null ones, distorting the visible evidence.

Replication repeating a study, with the same or new data, to check whether the finding holds.

Pre-registration recording your hypotheses and analysis plan before seeing the outcome data.

Check yourself

  1. What does a significance level of 5% promise about false positives when there is truly no effect?
  2. If you run 10 independent tests on pure noise at the 5% level, what is the chance that at least one is significant? Use 0.95¹⁰ ≈ 0.5987.
  3. What cutoff does the Bonferroni correction give for 25 tests at an overall 5% level?
  4. Explain how publication bias can make a harmless treatment look helpful in the journals.
  5. What is the difference between reproduction and full replication?
  6. Explain why checking many control variables and reporting the best result is a problem even if each check seems reasonable.
Show the answers
  1. About 5% of tests on a true null will wrongly come up significant, which is a 1-in-20 false alarm rate.
  2. 1 − 0.5987 = 0.4013, so about 40%.
  3. 0.05 ÷ 25 = 0.002.
  4. Some studies of a useless treatment will be significant by luck, and if only those get published, readers see support but no null results.
  5. Reproduction reruns the original data and code to check the numbers, while full replication gathers new data or a new sample to see whether the finding holds.
  6. Each extra check acts as another test, so the chance of a lucky false positive rises, and reporting only the best one hides how many tries it took.

A free self-study program written for 4Economics with AI writing tools and not reviewed line by line by a person. It is not an accredited degree and awards no credit. Check anything you rely on against a textbook or primary source. Report an error.

In this unit: Time series and more

  1. Stationarity, Unit Roots and Spurious RegressionWhy two unrelated trending series can look strongly linked, and how to tell a series that settles down from one that wanders.10 min
  2. Autoregressive and Moving Average ModelsTwo simple recipes for a series with memory, one that remembers its past values and one that remembers past surprises.11 min
  3. Cointegration and Vector AutoregressionsHow two wandering series can share a stable long-run link, and how to model several series that influence each other.11 min
  4. Maximum Likelihood in Plain EnglishPick the parameter values that make the data you actually saw the most probable, the idea behind many modern estimators.10 min
  5. Machine Learning and Economics: Prediction Versus CauseMachine learning is superb at predicting, but predicting an outcome and finding its cause are different jobs.10 min
  6. Replication, Data Mining and Research HonestyHow honest researchers can still fool themselves with many tests, and the habits that make findings worth trusting.10 min
  7. Designing Your Own Empirical StudyPlan a study from question to write-up, choosing a design, checking the sample size and guarding against your own bias.11 min

In the news