A/B Testing & Experimentation Interview Questions for Data Science
30 A/B Testing & Experimentation questions with answers for data science roles — 7 easy, 12 medium, 11 hard.
About A/B Testing & Experimentation
Experimentation interviews check whether you can measure the real impact of a product change. Expect questions on randomisation units, sample size and MDE, primary and guardrail metrics, novelty effects, variance reduction with CUPED, network interference and reading inconclusive results. Product and data science roles use these rounds to judge statistical rigour and how well you guide ship or no-ship decisions.
What is an A/A test and why would you run one?
Show answer
What are primary metrics and guardrail metrics in an experiment?
Show answer
Your experiment ended with no statistically significant difference. What do you tell the team?
Show answer
A product manager wants to test five different button designs at the same time. How do you set it up?
Show answer
Write Python code for a two-proportion z-test comparing conversion between control and treatment.
Show answer
Write SQL to compute users, conversions and conversion rate for each experiment variant.
Show answer
What is the randomisation unit in an experiment, and why does it matter?
Show answer
What is the minimum detectable effect (MDE) in experiment design?
Show answer
What are the novelty effect and the primacy effect in A/B tests?
Show answer
What is an Overall Evaluation Criterion (OEC) in experimentation?
Show answer
What is Bayesian A/B testing and how are its results reported?
Show answer
Your test shows a 2 percent lift in conversion, but revenue per user went down. What do you do?
Show answer
A feature won its A/B test with a 4 percent lift, but after full launch the metric barely moved. Why might that happen?
Show answer
Your power analysis says you need 200,000 users per group, but the page gets only 5,000 users a week. What are your options?
Show answer
Halfway through a test you discover a bug that broke the treatment for Android users. What do you do?
Show answer
Write Python code to calculate the sample size per group needed to detect a lift from 5 percent to 5.5 percent conversion.
Show answer
Write Python code to compare revenue per user between two groups using Welch's t-test.
Show answer
Tell me about a time an experiment result changed a product decision.
Show answer
What is a long-term holdout group and when is it useful?
Show answer
How does a multi-armed bandit differ from a classic A/B test?
Show answer
What are heterogeneous treatment effects, and what are the risks of slicing results by segment?
Show answer
What is interference or a network effect in experiments, and why does it break standard A/B tests?
Show answer
What is CUPED and how does it reduce variance in experiments?
Show answer
Why do ratio metrics like click-through rate per user need special variance calculation?
Show answer
You want to test a new pricing algorithm in a two-sided marketplace where buyers and sellers interact. Why is user-level randomisation a problem and what would you do?
Show answer
Marketing wants to measure the impact of a TV and outdoor campaign that cannot be randomised at user level. How do you design the measurement?
Show answer
Write a Python function that deterministically assigns users to experiment variants using hashing.
Show answer
Write Python code to apply a CUPED adjustment using each user's pre-experiment metric.
Show answer
Tell me about a time you stopped a team from shipping a change based on a flawed experiment.
Show answer
Frequently asked questions
How important is A/B Testing & Experimentation in Data Science interviews?
Experimentation interviews check whether you can measure the real impact of a product change. Expect questions on randomisation units, sample size and MDE, primary and guardrail metrics, novelty effects, variance reduction with CUPED, network interference and reading inconclusive results. Product and data science roles use these rounds to judge statistical rigour and how well you guide ship or no-ship decisions.
How should I use the A/B Testing & Experimentation sheet?
Go top to bottom — easy to hard. Answer before opening each answer, tick what you solved and save misses to Last-Minute Revision.