Skip to content
Marketing Measurement Science

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.

The first experiment was selected to make an apparent discovery possible. New experiments are sampled randomly and may produce no significant finding.

Analysis choices

Vary the outcome, subgroup, exclusion rule, or model on the same simulated dataset.

The scan checks every combination and picks the positive result with the smallest p-value. You can also explore the choices yourself.
Analysis trail1 of 96 examined
Two-sided p-value
—
Calculating
Difference
—
95% CI
—
Included
—
A p-value below 0.05 can appear even when no one received a treatment. If you try many analyses and report only the best result, that p-value leaves out the search.

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.