InterviewStack.io LogoInterviewStack.io

Experiment Design and Execution Questions

Covers end to end design and execution of experiments and A B tests, including identifying high value hypotheses, defining treatment variants and control, ensuring valid randomization, defining primary and guardrail metrics, calculating sample size and statistical power, instrumenting events, running analyses and interpreting results, and deciding on rollout or rollback. Also includes building testing infrastructure, establishing organizational best practices for experimentation, communicating learnings, and discussing both successful and failed tests and their impact on product decisions.

EasyTechnical
58 practiced
You're proposing an experiment to increase sign-up completion by simplifying a form. Write a clear hypothesis (null and alternative), define the primary metric, at least two guardrail metrics, and describe one potential segmentation you would pre-specify. Explain why you picked each metric and the minimum detectable effect you would target conceptually.
HardTechnical
44 practiced
Write a Python function compute_power_two_proportions(p0, p1, n_a, n_b, alpha=0.05) that estimates statistical power for a two-proportion test using normal approximation (allow unequal n). Return estimated power. Comment assumptions and limitations in docstring. No external libraries required but pseudocode is acceptable.
MediumTechnical
41 practiced
Given the following tables:
exposures(exposure_id, user_id, variant, exposure_time)
purchases(purchase_id, user_id, amount, purchase_time)
Write an ANSI SQL query that computes per-variant the 7-day revenue per exposed-user, counting only the first exposure per user and summing purchases within 7 days after that first exposure. Include nulls for users with no purchases so the denominator is total exposed users.
HardTechnical
58 practiced
Explain how to handle non-compliance (assigned users not receiving treatment) and attrition (dropouts) in experiments. Discuss intention-to-treat (ITT) analysis, Complier Average Causal Effect (CACE), instrumental variable approaches, and sensitivity analyses you would run to quantify robustness of conclusions.
EasyTechnical
59 practiced
What is Minimum Detectable Effect (MDE)? Explain how MDE differs from observed lift and list practical considerations for selecting MDE for product experiments (business value, feasibility, baseline variance, sample size constraints). Provide examples of when you'd choose a small vs. large MDE.

Unlock Full Question Bank

Get access to hundreds of Experiment Design and Execution interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.