Interview Prep13 min read

Data Scientist Experimentation Interview: Don't Randomize Users

A marketplace policy breaks the user-level A/B test. Walk a Data Scientist experimentation interview: switchbacks, spillovers, fallbacks and early stopping.

IT
InterviewStack TeamData
|

Engineering has already told you the textbook answer will not survive: a clean user-level A/B test on this marketplace is hard to hold for more than a few days, because the policy changes which sellers buyers are shown. The instinct is still to reach for it in the first minute, and a mid-level Data Scientist answer built on it spends the rest of the round patching a design the prompt has already ruled out. This round pays for choosing the unit of randomization deliberately, and everything after that builds on the choice.

What follows is a simulated mock interview built on one AI interview blueprint. The mistakes are illustrative composites with coaching, not a transcript of a real candidate or any company's actual questions.

Key Findings

  • The interview is scored out of 100 points across 4 dimensions; Technical Proficiency is only 20 of them.
  • Interviewer Objectives Alignment and Level-Specific Expectations carry 30 points each, 60 of 100 combined.
  • The 30 minutes run in 3 phases: problem framing and design selection (minutes 0 to 8), measurement, validity and analysis plan (8 to 20), and trade-offs, edge cases and recommendation (20 to 30).
  • The middle phase is the longest at 12 minutes, 40% of the interview, and holds 5 of the blueprint's 13 checklist items.
  • The mid-level bar asks for at least 1 strong primary design plus 1 reasonable fallback, proposed without prompting.
  • A good metric plan names 1 primary outcome and at least 2 to 3 guardrails spanning buyer, seller and cost.
  • The interviewer has 6 prepared follow-ups; this walkthrough dramatizes 4 of them.

The Unit of Randomization Is the Whole Question

Read the key realities as constraints on any design, then notice the two levers you are handed: the policy can be switched on and off by region and by time window, and 12 months of regional history exist to build a fallback from.

The interview question

You support a large consumer marketplace product. The team wants to launch a new ranking and incentive policy that changes which sellers are shown to buyers and also changes seller behavior through dynamic incentives. Leadership wants evidence of impact on buyer conversion and long-term marketplace health before full rollout.

Key realities:

  • Buyers can visit multiple times per week.
  • Sellers may react to treatment by changing price, inventory, and ad spend.
  • Users in nearby regions can influence each other through sharing and cross-region shopping.
  • Engineering says a clean user-level randomized A/B test is hard to maintain for more than a few days because the policy affects shared marketplace supply.
  • The policy can be turned on and off by region and by time window.
  • Historical logs exist for regions over the last 12 months, including buyer sessions, orders, seller activity, incentives paid, and region-level marketplace metrics.

How would you design an experiment or quasi-experiment to estimate the impact of this policy well enough to support a launch decision?

The interviewer objectives go beyond naming a design. They probe whether you can state the causal assumptions it rests on, define metrics for both sides of the marketplace, and handle interference, time-varying effects and operational limits. Deriving estimators mathematically is explicitly not expected at this level; explaining which assumption could fail, and how you would check it, is.

Sixty of 100 Points Reward Judgment, Not Vocabulary

Bar chart of the four rubric dimensions by point weight, out of 100 points

The 100-point rubric behind this interview. Interviewer Objectives Alignment and Level-Specific Expectations are 30 points each; Technical Proficiency and Communication & Problem Solving are 20 each.

Sixty of the 100 points depend on meeting the interviewer's objectives and the mid-level bar, not on vocabulary. Saying "synthetic control" earns little on its own. Saying why the business-chosen launch regions break the clean design, and what you would run instead, is what moves the score.

Four Follow-Ups Where the Clean Design Cracks

Turn 1: Assignment Versus Analysis

Interviewer: "What is your primary unit of assignment and unit of analysis here, and how do you handle the fact that they may differ?"

COMMON MISTAKE
A tempting answer: Oskar assigns treatment by region and week, then analyzes every order as an independent observation and reports a tight confidence interval. That misses the checklist item on choosing the unit of assignment and analysis deliberately with its clustering and variance implications, and it costs Technical Proficiency points.
STRONGER MOVE
Say the two units out loud: you assign at the region-by-time-window level because that contains the shared supply, and you analyze buyer and seller outcomes aggregated to that same cluster, or with cluster-robust errors. Then admit the cost: a limited number of regions gives far fewer effective observations than the raw order count suggests, so the test runs longer or detects only larger effects.

Turn 2: Spillovers Across the Map

Interviewer: "How would you detect and mitigate interference or spillovers across regions and across buyers and sellers?"

COMMON MISTAKE
Oskar answers that region-level assignment already solves interference, since each region is its own market. The scenario says buyers shop across nearby regions and sellers adapt, so this skips the checklist item on discussing contamination and proposing mitigation, and it costs Interviewer Objectives Alignment points.
STRONGER MOVE
Name the two channels separately: buyers who cross region lines or share listings, and sellers who change price, inventory and ad spend in response to incentives. Mitigate the first with geographic buffers or by excluding border traffic, and measure exposure intensity so you can check whether the effect grows with dose; plan washout gaps between switchback windows so seller reactions do not carry over.

Turn 3: When Regions Pick Themselves

Interviewer: "Suppose randomized rollout across regions is politically constrained and only some regions can launch first for business reasons. How would you adapt your identification strategy?"

COMMON MISTAKE
A tempting answer: Oskar concludes that without randomization no causal claim is possible and offers a before-and-after comparison in the launch regions. That falls short of the level expectation to propose one strong primary design plus a reasonable fallback, and it costs Level-Specific Expectations points.
STRONGER MOVE
Use the 12 months of regional history: difference-in-differences against matched control regions, or a synthetic control built from untreated regions, with the business selection named as the main threat. Back the parallel-trends assumption with pre-trend plots, placebo launch dates and balance checks (for synthetic control, check the pre-period fit), and say what result would make you distrust the estimate.

Turn 4: Daily Peeking, Early Stops

Interviewer: "If the experiment is monitored daily and stakeholders may stop early, how would you make the inference valid?"

COMMON MISTAKE
Oskar proposes checking the p-value every morning and stopping the first day it drops below 0.05. Repeated looks at a fixed-horizon test inflate the false-positive rate, which misses the checklist item on handling daily monitoring with always-valid or pre-specified sequential methods and costs Technical Proficiency points.
STRONGER MOVE
Commit before launch to either a group sequential plan with a fixed number of looks and an alpha-spending rule, or always-valid confidence sequences that tolerate continuous monitoring. Keep harm stops on guardrails separate from success stops, and set a minimum duration that covers full weekly cycles and early seller adaptation so a novelty bump cannot end the test.

Why Does a Clean Design Fall Apart Under Live Follow-Ups?

Every fix above reads as obvious once it is printed next to the mistake. Live, the region constraint arrives after you have committed to a clean switchback, the 12-minute middle phase has to cover metrics, clustering, assumption checks, contamination and monitoring, and you are narrating your reasoning the whole time. Two follow-ups never appeared above: compressing the design into two weeks, and balancing conversion against seller health and incentive cost. A live interviewer could open with either. Choosing a fallback calmly when your first design is taken away is a habit, and habits come from reps under the same pressure.

What Does the AI Interviewer Track While You Answer?

Timeline of the 30-minute interview split into three phases

The interview's three phases: framing and design selection (0 to 8 minutes), measurement, validity and analysis plan (8 to 20), trade-offs, edge cases and recommendation (20 to 30).

This is the blueprint a strong candidate hits, and it is the checklist the AI mock interview tracks you against in real time, item by item, as you talk.

Blueprinta strong 30-minute interview, phase by phase
1
Problem framing and design selection 0-8
  • ✓Clarifies the decision to support: launch, limited rollout, or reject
  • ✓Identifies interference/shared supply as a reason user-level randomization is problematic
  • ✓Proposes a plausible primary design such as region-time switchback or cluster randomized rollout
  • ✓States key assumptions and likely failure modes at a high level
2
Measurement, validity, and analysis plan 8-20
  • ✓Defines a primary outcome and at least 2-3 guardrails spanning buyer, seller, and cost dimensions
  • ✓Chooses unit of assignment and analysis deliberately and comments on clustering/variance implications
  • ✓Explains how to test or support assumptions with pre-trends, placebo tests, balance checks, or sensitivity analyses
  • ✓Discusses contamination and proposes mitigation such as geographic buffers, excluding border traffic, or measuring exposure intensity
  • ✓Mentions how early stopping or daily monitoring would be handled with always-valid or pre-specified sequential methods
3
Trade-offs, edge cases, and recommendation 20-30
  • ✓Provides a fallback if randomization is constrained, such as diff-in-diff with matched controls or synthetic control
  • ✓Explains what evidence threshold would be sufficient for launch versus continued testing
  • ✓Acknowledges edge cases like novelty effects, seller adaptation over time, and heterogeneous treatment effects by region maturity or supply density
  • ✓Ends with a clear recommendation tied to constraints, risks, and expected learning quality

Practice Losing Your First Design Mid-Interview

The quickest way to find out whether you pick the unit first or the test first is to face an interviewer who removes your favorite design halfway through. Start the Data Scientist experimentation mock interview: 30 minutes, unscripted follow-ups, the blueprint above filling in as you cover each item, and feedback scored on the same four dimensions.

Want a warm-up first? Work through single questions in the advanced experimentation question bank, or browse the preparation guides for your target companies. If your loop also has a statistics round, the Data Scientist hypothesis testing walkthrough covers the fixed-horizon basics this scenario builds on.

FAQ

Q. What does a Data Scientist experimentation interview test?

It tests whether you can pick and defend a design when a plain two-arm A/B test does not fit the product. In this 30-minute blueprint you frame the decision and choose a design (minutes 0 to 8), build the metrics, validity checks and analysis plan (8 to 20), then handle constraints and close with a recommendation (20 to 30). Technical Proficiency is 20 of the 100 points; Interviewer Objectives Alignment and Level-Specific Expectations are worth 30 each.

Q. Why can a user-level A/B test be biased in a two-sided marketplace?

When the treatment changes shared supply, treated and control users compete for the same sellers. If the new ranking and incentive policy changes which sellers win and how they price, control buyers see a marketplace the treatment has already altered, so the comparison is contaminated. Randomizing at a level that contains most of the shared supply, such as region and time window, sharply reduces that contamination; cross-region shopping still leaks across, so you add buffers or measure exposure.

Q. What is a switchback experiment?

A switchback turns the treatment on and off for the same unit, here a region, across randomized time windows, and compares outcomes between on and off windows. It suits policies that can be toggled by region and time and that affect shared supply. The main risks are carryover from one window into the next and too few clusters for precise estimates, so plan washout periods and cluster-level analysis.

Q. What if leadership wants an answer within two weeks?

Change the decision, not just the timeline. Two weeks can support a limited-rollout call on short-term buyer conversion and guardrails, but not a verdict on long-term marketplace health, because seller adaptation and novelty effects take longer to show. Say which effects the shortened test can and cannot measure, and what evidence would justify full launch later.

Q. Which metrics balance buyer conversion against marketplace health?

Pick one primary outcome, such as buyer conversion per region-window, and at least 2 to 3 guardrails that reach beyond the buyer side: seller participation or supply health, revenue or margin, and incentive cost per incremental order. The blueprint expects guardrails spanning buyer, seller and cost dimensions, so a buyer-only scorecard falls short.

Q. How can I practice an experimentation interview like this one?

Run it live. The AI mock interview for this role, level and topic asks its own follow-ups and tracks you against the same three-phase blueprint in real time. The question bank works as a warm-up for single questions on switchbacks, quasi-experiments and sequential testing.

Pick the Unit Before You Pick the Test

The design names matter less than the order you reach them. Start from what the policy touches (shared supply, nearby regions, adapting sellers), choose the unit that contains it, and keep a fallback ready for the moment the interviewer takes your first choice away. Rehearse that sequence out loud until it comes before the vocabulary.

Topics

Data Scientistexperimentationcausal inferenceswitchback experimentsA/B testingmock interviewmid-level

Ready to practice?

Put what you've learned into practice with AI mock interviews and structured preparation guides.