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.

EasyTechnical
40 practiced
What is Sample Ratio Mismatch (SRM)? Describe how you detect SRM, list common root causes (technical and design), and outline steps you would take when SRM appears during a running experiment.
MediumTechnical
40 practiced
Your web experiment bucketing is cookie-based, and your mobile app uses device_id. After backend identity merging, many users appear in both variants causing contamination. How would you resolve identity and reassign treatment where necessary without invalidating prior experiments? Propose a future-proof bucketing strategy that avoids double-counting and cross-device contamination.
HardTechnical
51 practiced
Your primary metric is time-to-first-purchase. Explain how you would analyze A/B test data using survival analysis: Kaplan-Meier estimates, log-rank test, Cox proportional hazards model, and how to handle censoring and reporting lift in hazard or median time terms.
HardTechnical
45 practiced
How would you estimate long-term customer lifetime value (LTV) from a 30-day experiment? Discuss modeling choices for extrapolation (parametric survival, bootstrapping, Bayesian hierarchical), biases introduced by short windows, use of retention cohorts, and ways to quantify uncertainty in LTV forecasts.
MediumTechnical
52 practiced
Implement the Benjamini-Hochberg (BH) false discovery rate procedure in Python. Input: array-like p_values and target_fdr q. Output: boolean array is_significant and array of adjusted p-values (BH-adjusted). Use standard sorting-based BH and handle edge cases.

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.