Skip to content
RED SAGSkills
mediumData Analyst interview question

The product team wants to test a new checkout button. How would you design the A/B test?

What the interviewer wants to hear

  • Clear hypothesis and one primary metric
  • Guardrail metrics
  • Randomise at the right unit such as user
  • Calculate sample size and duration in advance
  • Run full weeks and avoid peeking
  • Check sample ratio mismatch before reading results

Model answer

I start with a hypothesis: the new button will increase checkout completion. The primary metric is checkout conversion per user who reaches the cart, and guardrails include average order value, payment errors and page load time. I randomise by user, not by session, so a person always sees the same version. Using the baseline conversion, the smallest lift worth detecting, 5% significance and 80% power, I calculate the sample size and the number of days needed, rounding up to full weeks to cover weekday and weekend behaviour. I agree on this plan before launch and do not stop early when results look good. When the test ends, I first check that the traffic split matches the plan, then look at the effect size with a confidence interval, the guardrails, and key segments before making a recommendation.

Can you answer it under time pressure?

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

Start mock interview

More medium Data Analyst questions