Skip to content
RED SAGSkills
mediumData Scientist interview question

Walk through how you would design an A/B test for a new checkout page.

What the interviewer wants to hear

  • Clear hypothesis and primary metric
  • Guardrail metrics
  • Randomisation unit and power analysis for sample size and duration
  • Checks: sample ratio mismatch, novelty effect, no peeking
  • Decision rule agreed before launch

Model answer

I start with a hypothesis: the new checkout reduces friction, so the purchase conversion rate per visitor will go up. That is my primary metric. I add guardrails like average order value, payment errors, page load time and refund rate, so a "win" does not hide damage. I randomise by user, so people see a consistent page across sessions. Then I run a power analysis using the baseline conversion, its variance and the smallest lift worth detecting to decide sample size, and I run for at least one or two full weeks to cover weekday patterns. During the test I check for sample ratio mismatch and logging problems, but I do not stop early just because the p-value looks good. Before launch, the team agrees on the decision rule, for example ship if conversion improves significantly and no guardrail worsens.

Can you answer it under time pressure?

Take a timed medium round and get scored on every answer.

Start mock interview

More medium Data Scientist questions