KatInterview

A/B Testing a Marketplace Feature End to End

Statistics & ExperimentsModel answer
MediumModel answerStatistics & Experimentsab-testingexperiment-designsrm

Last updated

Design a two-sided marketplace experiment, diagnose a sample ratio mismatch, reconcile conflicting metrics into a value view, and decide launch vs. iterate.

Context

A travel marketplace wants to help date-flexible guests find a stay within budget. The proposed feature is a "Flexible Date Matrix" that appears on search results pages and displays prices and availability for a ±3-day window around the guest's chosen dates.

You are the data scientist responsible for the experiment: designing it, monitoring it while it runs, and giving product leadership a launch recommendation.

What to cover

1. Design and randomization

  • Write a falsifiable hypothesis connecting the feature to guest behavior.
  • Choose the randomization unit (guest user ID, cookie/device, city/market, or listing) and discuss interference, network effects, and cross-device experience consistency.
  • Explain how you set sample size and how long the test runs, given weekly seasonality.

2. Metrics and data integrity

  • Primary metric(s): one or two that capture direct success.
  • Guardrails: at least two host-side, operational, or business-health metrics that must not degrade.
  • Instrumentation: how you validate logging and check for sample ratio mismatch (SRM) before reading any results.

3. Reading the results

After a 14-day run with 2,000,000 visitors split 50/50, you observe:

  • Observed assignment: 994,200 Control vs. 1,005,800 Treatment.
  • Search-to-booking conversion: +1.6% relative lift, p = 0.008.
  • Average booking value (ABV): −2.1% relative, p = 0.03.
  • 7-day host cancellation rate: +0.4 percentage points, p = 0.04.
  • p95 page load latency: +140 ms, p < 0.001.

Address:

  1. Run an SRM check. Is the split acceptable? What do you do if it fails?
  2. Separate statistical from practical significance given the conflicting signals (more bookings, smaller baskets, more cancellations).
  3. Name the heterogeneous effects or segments you would dig into to explain why ABV and cancellations moved.
  4. Give a final call — Launch, Do Not Launch, or Iterate — and the next experiment you would prioritize.

Answer in prose; no code is required.

Hints

Hint 1

Do the SRM test before you interpret a single metric — a skewed split makes every downstream number suspect.

Hint 2

Convert conversion and basket size into one value-per-visitor number so the trade-off becomes a single sign.

Hint 3

Remember that ABV is a ratio conditional on booking; a composition shift can move it without any guest spending less.

Hint 4

A guardrail breach is a launch blocker even when the primary metric looks good.