Skip to the page

Statistics and experiments · senior

Peeking, novelty, SRM, Simpson and many comparisons

Experiment results can be wrong even with a good p-value: looking every day, novelty, a broken split, mixed groups, or too many segments. A senior analyst checks for each before reading the result.

The notes

What you must know

  • Peeking: a p-value is valid for one look at a sample size fixed in advance. Stopping at the first day below 0.05 finds false winners far more often than 5%.
  • Fixes: fix the size and the end date; look early only for bugs and guardrails; or use methods built for repeated looks (group-sequential tests with alpha spending such as O'Brien-Fleming, or always-valid p-values such as mSPRT). Bayesian stopping rules also inflate wrong calls unless designed for it.
  • Novelty: a lift that fades (12% in week one, 1% in week three) is often curiosity. Plot the lift by days since each user's first exposure and split new and returning users. Change aversion works the other way.
  • Sample ratio mismatch (SRM): check the split with a chi-square goodness-of-fit test on the counts before reading metrics. With 10 lakh users, 5,12,400 against 4,87,600 is far too uneven to be luck. The groups no longer compare like with like.
  • Usual SRM causes: exposure logged only after a component loads, a crash before logging in one variant, bots filtered differently, a redirect that loses users, a hashing bug. Usually fix and restart.
  • Simpson's paradox: the new page can be better in every tier and worse overall when it was shown mostly to the lower-converting tier. Trust the within-tier comparison when tier affects both who saw the page and how they convert. In a randomised test the tier mix would be almost equal, so an uneven mix means assignment was broken.
  • Many comparisons: with 120 comparisons at the 5% level, about 6 false positives are expected. Bonferroni divides 0.05 by the number of tests; Benjamini-Hochberg controls the share of false discoveries.
  • A found segment is a new hypothesis for a follow-up test with that segment as the primary metric. Planned segments are fine.

The red pen

Common traps: mistake → fix

  • Mistake: Looking at the result every day is harmless

    Fix: it is harmless only if nobody acts on it.

  • Mistake: It is only 1.2% off the split, so it is fine

    Fix: at this size the split test says the assignment is broken.

  • Mistake: Segment p = 0.02 out of 120 is a real win

    Fix: it is what noise looks like; it fails Bonferroni and Benjamini-Hochberg.

Easy to hard

Questions interviewers ask, easy to hard

  1. Why is it a problem to stop a test the first day p is below 0.05?
  2. What is a sample ratio mismatch and what do you do?
  3. A new page is better in every tier and worse overall. What is going on?
  4. One of 120 segments shows a big win. Do you launch for that segment?
  5. A banner lift is 12% in week one and 1% in week three. What do you recommend?

Explain it out loud

Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.

Practise by voice

Your first interview is free

Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.

Start your free interview