A/B testing for PMs: hypotheses, significance, guardrails, pitfalls
Design, run and read experiments like a PM, including the pitfalls that make results lie.
On this page
A/B testing is how product teams turn opinions into evidence. You don't need to be a statistician, but you do need to design a sound experiment, know what "statistically significant" means, and avoid the classic traps that make results misleading.
Why interviewers ask this
"How would you test this feature?" and "The test showed a 2% lift, would you ship it?" are common analytics and execution questions. Interviewers check whether you can write a clear hypothesis, choose the right metrics, think about sample size and duration, and interpret results with judgement, including when not to trust a winning result.
The framework
1. Write a hypothesis
"If we [change], then [metric] will [improve], because [reasoning about user behaviour]." The because matters: it tells you what you'll learn even if the test fails.
2. Choose metrics
- Primary metric: the one decision metric, chosen in advance.
- Secondary metrics: help explain why.
- Guardrails: must not get worse (revenue, retention, latency, unsubscribes, complaints).
3. Design the test
- Unit of randomisation: user, session, device, or for marketplaces sometimes city or time period (to avoid spillover between groups).
- Sample size and duration: depends on baseline rate, the minimum effect you care about, and traffic. Run for at least one or two full weeks to capture weekly cycles.
- Ramp-up: start at 1–5% to catch bugs, then go to full allocation.
4. Understand significance in plain English
- A p-value below 0.05 means: if the change truly had no effect, there'd be less than a 5% chance of seeing a difference this big by luck.
- A confidence interval shows the plausible range of the true effect. "+2% (−0.5% to +4.5%)" crosses zero, so it isn't conclusive.
- Statistical significance isn't practical significance. A real but tiny lift might not justify the complexity.
5. Watch for pitfalls
- Peeking: checking daily and stopping when it looks significant inflates false positives. Decide the duration upfront.
- Multiple comparisons: test 20 metrics and one will "win" by chance.
- Novelty effect: users click new things because they're new; the effect may fade.
- Sample ratio mismatch: if a 50/50 split comes out as 52/48, something is broken in assignment.
- Network effects: in social products and marketplaces, test and control users interact, contaminating results.
- Simpson's paradox: an overall result can reverse within segments.
6. Decide
Ship, iterate or kill, based on the primary metric, guardrails, and long-term considerations.
Worked example
Question: "We tested a new checkout page. Conversion rose from 3.0% to 3.2%, p = 0.03. Average order value dropped 4%. Would you ship it?"
Sample answer:
"Not yet. I'd want to understand the tradeoff first.
Is the result real? p = 0.03 suggests the conversion lift is unlikely to be chance, if we didn't peek and ran for the planned duration. I'd check the sample ratio and whether the test ran across full weeks.
What's the net effect? Revenue per visitor = conversion × average order value. Before: 3.0% × 100 = 3.00. After: 3.2% × 96 = 3.07. So revenue per visitor is up about 2%. That's positive, but smaller than the headline conversion lift.
Why did order value drop? Maybe the new page removed the 'frequently bought together' module, so people buy fewer add-ons. I'd check items per order and add-on attach rate. If that's the cause, I'd try a variant that keeps the simplified checkout and restores add-ons.
Long-term effects? Are the extra converters lower-quality buyers, with more returns or less repeat purchase? I'd look at return rates and 30-day repeat purchases, at least directionally.
Decision: if revenue per visitor is significantly up and returns are stable, I'd ship and immediately test the add-on variant. If the revenue gain isn't significant, I'd iterate first rather than ship a change that might be revenue-neutral while complicating the page."
Common mistakes
- No hypothesis, just "let's see what happens".
- Picking the primary metric after seeing the results.
- Stopping early when the result looks good.
- Ignoring guardrails or the economics (conversion up, revenue down).
- Testing changes too small to ever reach significance with your traffic.
Interviewer tips
What "great" sounds like:
- "My hypothesis is X, because users currently Y."
- "The primary metric is A; guardrails are B and C; I'll run it for two full weeks."
- "Statistically significant, but is it practically significant?"
- "Let me combine the metrics into revenue per visitor to see the net effect."
- "For a marketplace, I'd randomise by city to avoid spillover."
Practice questions
Answer one in a mock interview and get graded instantly.
1.A new checkout page raised conversion but lowered average order value. Would you ship it?
Practice this →2.How would you design an A/B test for a new recommendation algorithm on a video app?
Practice this →3.When would you not run an A/B test, and what would you do instead?
Practice this →
Finished reading?
