A/B Testing interview question

Data ScienceA/B TestingExperiment Designbasic

What is an A/B test (an online controlled experiment)?

  1. AA before-and-after comparison where a metric is measured for all users before a change and again after it ships.
  2. BA survey in which users see two designs side by side and are asked to say which of the two they would prefer.
  3. CAn experiment that randomly assigns users to a control or treatment version and compares a metric between them.
  4. DAn analysis comparing users who chose to adopt a new feature with users who did not, matched on past activity.
Show the answer and explanation

Correct answer: C, An experiment that randomly assigns users to a control or treatment version and compares a metric between them.

Explanation A/B Testing

An A/B test is a randomized controlled experiment: users (or other units) are randomly assigned to the current version (control) or the changed version (treatment), both run at the same time, and a pre-chosen metric is compared between the groups. Because assignment is random, the groups differ only by chance and by the change, so a significant difference can be attributed to the change.

Why the other designs are not A/B tests:

  • A before/after comparison has no concurrent control; seasonality, marketing or outages in either period are mixed into the difference.
  • A preference survey measures what people say, not how they behave when they actually use the product.
  • Comparing adopters with non-adopters is observational: users self-select, and matching on past activity cannot remove differences that were not measured.

Interview tip: define it in one line (random assignment, concurrent groups, one decision metric), then mention that the analysis is a hypothesis test on the difference between the groups.

Practice it as a quiz

Answer this and the other free questions with instant grading, streaks and weak-topic tracking, or unlock all 4,000 questions.

More Data Science questions

  1. In product analytics, what is meant by a north star metric?
  2. In a query that uses GROUP BY, how does the WHERE clause differ from the HAVING clause?
  3. In Python, what is the main difference between a list and a tuple?
  4. An inventory agent asks an LLM for a JSON reorder decision and passes the fields to a typed helper. This time the model returned units as a string. What…
  5. The chart plots weekly active users of a new GenAI app on a log scale (the y-axis shows log10 of users). How should the change after week 10 be interpreted?