A/B Testing & Experiments Interview Questions for Data Analytics
28 A/B Testing & Experiments questions with answers for data analytics roles — 9 easy, 9 medium, 10 hard.
About A/B Testing & Experiments
This topic covers designing and analysing controlled experiments: hypotheses, primary and guardrail metrics, sample size and power, significance tests, and common traps such as peeking, sample ratio mismatch and novelty effects. Product and marketing analyst interviews test it heavily because experiments drive launch decisions. You should be able to calculate results and explain when not to trust them.
How do you write a good hypothesis for an experiment?
Show answer
What are primary metrics and guardrail metrics in an A/B test?
Show answer
What are novelty and primacy effects in experiments?
Show answer
Write SQL to calculate users, conversions and conversion rate for each test variant.
Show answer
When would you use a one-tailed test instead of a two-tailed test?
Show answer
What is a holdout group and why do teams keep one?
Show answer
What is the difference between an A/B test, an A/B/n test and a multivariate test?
Show answer
Your A/B test ends with no significant difference. How do you report it?
Show answer
What are statistical power and minimum detectable effect (MDE)?
Show answer
Write Python code to calculate the sample size per group for a conversion test with a 4% baseline and a 10% relative lift.
Show answer
What is the unit of randomisation in an experiment, and how do you choose it?
Show answer
What is an A/A test and why would you run one?
Show answer
Write Python code to test whether conversion differs between control and treatment.
Show answer
Your test increased conversion rate by 3% but average order value dropped by 5%. What do you recommend?
Show answer
On day 4 of a planned 14-day test, the product manager wants to stop because the dashboard shows treatment winning. What do you say?
Show answer
Tell me about a time an experiment result went against what the team expected.
Show answer
Marketing wants to A/B test two email subject lines on a list of 2,000 subscribers. What do you advise?
Show answer
What is the peeking problem in A/B testing?
Show answer
Your 50/50 test has 52,400 users in control and 47,600 in treatment. What does this tell you?
Show answer
Why is testing many metrics or many variants at once a problem, and how do you handle it?
Show answer
Why are A/B tests tricky in two-sided marketplaces such as ride-hailing or food delivery?
Show answer
An A/B test is flat overall but significant for mobile users in Tier 2 cities. Do you ship it only for that segment?
Show answer
What is the difference between frequentist and Bayesian A/B testing?
Show answer
What is CUPED and how does it speed up experiments?
Show answer
How do you measure impact when a proper A/B test is not possible?
Show answer
Write Python code for a simple difference-in-differences estimate of a store pilot.
Show answer
Write Python code to bootstrap a 95% confidence interval for the difference in revenue per user between two groups.
Show answer
Frequently asked questions
How important is A/B Testing & Experiments in Data Analytics interviews?
This topic covers designing and analysing controlled experiments: hypotheses, primary and guardrail metrics, sample size and power, significance tests, and common traps such as peeking, sample ratio mismatch and novelty effects. Product and marketing analyst interviews test it heavily because experiments drive launch decisions. You should be able to calculate results and explain when not to trust them.
How should I use the A/B Testing & Experiments sheet?
Go top to bottom — easy to hard. Answer before opening each answer, tick what you solved and save misses to Last-Minute Revision.