P-Hacking Made Easy

Introducing Mixed-Strategy Equilibria: Payoffs vs. Probabilities (Eggleston)
December 23, 2022
Microeconomics for Business: Writing Assignments on Porter’s Five Competitive Forces (Staveley-O’Carroll)
July 21, 2023

Using a public data set of Major League Baseball salaries and on-field statistics, this paper runs regressions for all possible combinations of the selected control variables to generate statistically significant but spurious results, a practice known as “p-hacking.” This overt, deliberate, and systematic p-hacking leads to many counterintuitive results that can help students think carefully about variable selection, causality, and parsimony. In addition, this paper provides an R script that students can easily modify to fit data sets of their choosing.


James Herndon

Download


Herndon, J. (2023). P-Hacking Made Easy. Journal of Economics Teaching, 8(3), 173-193. DOI: 10.58311/jeconteach/d09c7366b1439d6cd0f16a520fedbde8ce64af60


Want to be notified of articles when they are released? Subscribe to our newsletter!