InterviewStack.io LogoInterviewStack.io

A/B Test Design & Statistical Rigor Questions

Designing and statistically defending a controlled online experiment: framing a testable hypothesis, defining control and treatment variants, choosing the randomization unit, setting the primary success metric, and computing sample size, power, and minimum detectable effect. Covers the statistical foundations that make a readout trustworthy, including hypothesis testing, p-values, confidence intervals, statistical vs practical significance, and Type I/II error. Emphasizes avoiding the common pitfalls that invalidate a test, such as peeking, multiple-comparison inflation, underpowered designs, and how test duration and stopping rules affect the validity of conclusions.

MediumTechnical
78 practiced

A product team is designing an experiment that changes the homepage layout and needs to decide the unit of randomization: user id, session id, cookie, device, or household. For each candidate unit, describe the trade-offs (bias, cross-unit contamination, measurement noise) and explain how hash-based deterministic bucketing works in practice, including operational pitfalls such as changing hashing keys or salts mid-experiment. Recommend how you would detect and correct unit-mismatch problems after the experiment has run.

MediumTechnical
71 practiced

You are defining metrics for a new product experiment. Explain the difference between a primary metric and a guardrail metric, and how a guardrail differs from a secondary metric. For a monetization change such as a new ad placement or premium feature, propose one primary metric and at least three guardrail metrics, and for each guardrail specify the direction of harm you are watching for and the minimum threshold that would make you pause or roll back the test.

MediumTechnical
45 practiced

Define the novelty effect and the primacy effect in the context of a multi-week online experiment: what causes each, and in which direction does each bias an early readout? Describe the visualizations, models, or statistical checks you would use to tell a genuine, persistent treatment effect apart from a temporary novelty spike or a fading resistance-to-change effect, and explain how you might adjust the experiment's duration or analysis to account for it.

HardTechnical
47 practiced

Your A/B test shows no overall lift, but a particular user segment, say mobile users, shows a statistically significant positive uplift. How would you validate whether this is a genuine heterogeneous treatment effect rather than a false positive from looking at many segments? What analyses would you run, and if you're not yet certain, what decision process would you use to decide whether to ship for that segment, run a confirmatory follow-up experiment, or abandon the finding?

EasyTechnical
38 practiced

What is an A/A test, and why would you run one before or alongside a real A/B test? Describe at least two valid use cases, such as validating the assignment and instrumentation pipeline or establishing a baseline-variance estimate, and two limitations or common misinterpretations of A/A testing. If an A/A test shows a statistically significant difference between the two identical groups, what steps would you take to root-cause it?

Unlock Full Question Bank

Get access to all 22 A/B Test Design & Statistical Rigor interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.