Math & Statistics

A/B Test Pitfalls: Peeking & Novelty

Avoiding severe statistical traps like peeking, novelty effects, and sample ratio mismatches in A/B experiments.

🔴 advanced5 min readexperimentation
A/B Testing pitfalls corrupt experimental validity and lead teams to ship bad product features. Continuous Peeking (checking p-values daily without sample size correction) inflates false positive rates from 5% up to 30%+. Novelty and Primacy Effects cause temporary metric spikes or drops that fade over time. Sample Ratio Mismatch (SRM) occurs when the actual user split ratio deviates from the expected control/treatment assignment, signaling severe technical logging bugs.

Top 4 A/B Testing Pitfalls

                          A/B EXPERIMENTATION PITFALLS
┌──────────────────────────┬──────────────────────────┬──────────────────────────┬──────────────────────────┐
│  1. CONTINUOUS PEEKING   │ 2. SAMPLE RATIO MISMATCH │    3. NOVELTY EFFECT     │   4. SPILLED OVERLAY     │
├──────────────────────────┼──────────────────────────┼──────────────────────────┼──────────────────────────┤
│ Checking p-values daily  │ Observed user split (e.g.│ Temporary metric spike   │ Treatment users interact │
│ and stopping early       │ 52/48) breaks expected   │ driven by user curiosity │ with Control users,      │
│ inflates false positives.│ 50/50 ratio.             │ that fades over weeks.   │ corrupting independence. │
└──────────────────────────┴──────────────────────────┴──────────────────────────┴──────────────────────────┘

1. Continuous Peeking (The P-Hacking Trap)

If you pledge to run a 14-day test, but check p-values every morning and stop the moment p < 0.05:

Your true False Positive Rate jumps from 5% to over 30%!

Random metric fluctuations naturally dip below 0.05 temporarily. If you stop the test at that exact moment, you are harvesting false positives.

Fix: Pre-commit to fixed sample size N, or use Sequential Testing frameworks (mSPRT / mAB) that adjust alpha boundaries dynamically for continuous monitoring.

2. Sample Ratio Mismatch (SRM)

You set up a 50/50 experiment split. After 7 days, you observe:

A Chi-Square test returns p < 0.0001 for the split ratio.

This is a Sample Ratio Mismatch. It means your assignment mechanism is broken:

  1. Treatment variant crashed low-end Android phones before logging events.
  2. Redirect scripts dropped slow network users in Treatment.

Rule: If SRM is detected, the entire experiment is invalid. Do not analyze metrics until assignment bugs are fixed!

3. Novelty & Primacy Effects

Fix: Compare New Users (who never saw the old design) against Existing Power Users.

Say this out loud

A/B testing pitfalls ruin experiment decisions. Peeking at p-values daily without sequential corrections inflates false positives to over 30%. Sample Ratio Mismatch (SRM) indicates broken user assignment, invalidating all results. Novelty effects create temporary curiosity spikes. Always pre-calculate sample sizes, run SRM Chi-Square checks first, and segment cohorts to verify true long-term impact.

Follow-ups to expect

Check yourself

Question 1 of 3

Why does checking p-values daily and stopping an A/B test early as soon as p < 0.05 (Continuous Peeking) ruin test validity?

More in Math & Statistics

See all →
Bayes’ Theorem4 minCentral Limit Theorem4 minLaw of Large Numbers4 min