As asked
You want to A/B test a new checkout flow. Walk me through how you set up the experiment: how you decide sample size, how long to run it, what metric you use as the primary success metric, and what common mistakes invalidate results.
Sample answer outline
Set the primary metric before running the test, not after, to avoid p-hacking. Calculate the required sample size based on the baseline conversion rate, the minimum detectable effect, and your desired power (typically 80%) and significance level (typically 5%). With 1000 daily visits and a 5% lift threshold, that might require 2 to 4 weeks. Common mistakes: peeking at results before the predetermined end date and stopping early when significance is reached, segmenting results post-hoc for groups that were not pre-specified, running multiple simultaneous experiments that interact with each other, and novelty effects from users who notice the change and behave differently temporarily.
Expect these follow-ups
- How do you handle a situation where the A/B test shows no significant effect but you strongly believe the new flow is better?