P-Hacking and Replication
Compare estimates across analysis choices and test a selected specification on independent simulated data.
The simulator randomly assigns 320 people to two labels. The labels have no effect on outcomes. Different analysis choices can still yield different estimates and p-values.
Analysis choices
Vary the outcome, subgroup, exclusion rule, or model on the same simulated dataset.
Specification curve
The chart compares estimates across the same dataset.
The full specification curve
All 96 analyses use the same experiment. Each dot is an estimated effect; its line shows the 95% confidence interval for that single analysis. The outlined dot is the selected result.
Why these results are not 96 independent experiments
The same simulated people appear in many analyses, so the results are related. The four outcomes are different measures on a common index-point scale; choosing a different outcome or subgroup can change the question being answered. The confidence intervals and p-values are calculated one analysis at a time. They do not account for searching across 96 alternatives.
Independent replication
We generated an independent sample of 320 new simulated people and randomly assigned the same empty group labels. Again, no treatment exists, and both groups’ scores come from the same process. Your chosen outcome, subgroup, exclusions, and statistical model are applied unchanged.
One experiment with three arms
Each arm enrolls 1,000 accounts. The primary outcome is 30-day conversion. Control converts 200 accounts, Offer A converts 242, and Offer B converts 252. Both planned contrasts use the same control. Choose the family and see which two-sided pooled z tests reject at a family alpha of 5%.
For k arms, there are k − 1 control contrasts or k(k − 1)/2 pairs. For m independent true nulls, the chance of at least one false positive at unadjusted alpha is 1 − (1 − α)m. Shared controls or metrics generally create dependence. Bonferroni and Holm control family-wise error under arbitrary dependence. Šidák’s exact calculation assumes independence. Benjamini–Hochberg controls the expected false-discovery proportion under its usual independence or positive-dependence conditions.
Specify which primary contrasts and outcomes can drive the decision, label supporting metrics and exploratory subgroups, and lock the horizon and analysis before reading outcomes. If multiple metrics can independently trigger the same decision, include them in the family. Use prespecified sequential inference if outcome data can stop the test early. Carry the planned testing level into binary-outcome sizing.