KatInterview

End-to-End A/B Test Design for a Checkout Flow Change

Statistics & ExperimentsModel answer
HardModel answerStatistics & Experimentsa/b testingexperimental designstatistics

Last updated

Design, run, and analyze a controlled experiment on a checkout page redesign, covering power calculations, guardrails, identity, sequential testing, and subgroup decisions.

Redesigning the Checkout Flow: Full Experiment Design

Your product team wants to ship a redesigned checkout page intended to increase the share of visitors who complete a purchase within 7 days of their first visit. Before anything goes live, you need to design and analyze a rigorous experiment.

Setup

  • Primary metric: 7-day paid conversion rate, measured at the user level
  • Baseline conversion rate: 6.0%
  • Target improvement: +5% relative (i.e., from 6.0% to 6.3%)
  • Significance level: α = 0.05 (two-sided)
  • Statistical power: 80%
  • Daily unique visitors: 200,000; 60% first-time, 40% returning
  • Device split: 60% mobile, 30% desktop, 10% tablet
  • Additional context: some users visit on multiple devices; bot traffic must be filtered out; a portion of visitors arrive from paid acquisition campaigns and likely have different purchase intent than organic visitors

Your tasks

  1. Calculate the per-variant sample size needed and the minimum test duration, both with and without CUPED — assuming CUPED achieves a 20% variance reduction. State your assumptions clearly.

  2. Define guardrail metrics (for example, SRM, bounce rate, revenue per user) and describe how you would detect a sample-ratio mismatch in near real time.

  3. Choose a randomization unit (cookie, visitor ID, or account), explain how you handle cross-device identity, and describe what steps prevent treatment contamination.

  4. Plan a sequential monitoring strategy that controls the Type I error rate. Describe your alpha-spending approach and write out a concrete, pre-registered stopping rule.

  5. Describe how you would test for heterogeneous treatment effects across device type and traffic source. If the average treatment effect is near zero but mobile users show a statistically significant positive lift, walk through the reasoning and decision process you would follow.

  6. Outline how you would present the final results — effect sizes, confidence intervals, and a clear framework for deciding whether to ship, iterate, or halt.

Where useful, show your math. State assumptions explicitly. Call out common mistakes and practical complications.

Hints

Hint 1

For the sample size formula, remember you are comparing two proportions, not means. Variance for a proportion p is p(1−p), and you need to sum the two arms. CUPED reduces variance multiplicatively, so the required n scales by the same factor — but think carefully about what fraction of your users actually have pre-experiment history for CUPED to use.

Hint 2

SRM is not just a one-time check at the end. Think about how to run a goodness-of-fit test continuously without inflating false-positive rates. Also think about where in the funnel the mismatch could be introduced — assignment, logging, or filtering — because the root cause shapes how you respond.

Hint 3

A neutral average treatment effect with a significant subgroup effect is a classic interpretation trap. Before declaring a mobile win, ask whether the interaction term (treatment × device) is itself significant, whether the finding was pre-registered, and whether desktop is showing a hidden negative effect that the mobile lift is masking.