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
51 practiced

Define heterogeneous treatment effects (HTE): why might a feature that shows a flat or modest average effect actually be a big win for one segment and a loss for another? Describe a disciplined workflow for discovering HTE in a product experiment, starting from pre-specified subgroup analysis rather than open-ended slicing, and explain the p-hacking risk of searching for subgroups after the fact and how pre-specification and multiplicity control guard against it. Give a concrete product scenario where an HTE finding would change a prioritization or personalization decision.

MediumTechnical
43 practiced

An experiment launched during a holiday week, or right after a new marketing campaign, shows a large lift in week one that decays and flattens out over the following two weeks. Explain how you would distinguish a genuine novelty-effect decay from seasonality, from a selection-bias artifact of the traffic source, and from a real persistent effect. Describe how you would redesign the experiment or its analysis window to reach a trustworthy conclusion.

HardTechnical
43 practiced

Users increasingly interact with a product across multiple devices and login states, which creates duplicate identities: for example, web experiment assignment is cookie-based while the mobile app uses a device id, and after backend identity merging many users turn out to have been placed into both variants. Explain how cross-device identity resolution and deduplication affect experiment assignment and analysis, and propose practical strategies to minimize the bias from duplicate counting and cross-variant contamination.

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.

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.