KatInterview

Planning Metrics and an A/B Test for a Marketplace Search Feature

Statistics & ExperimentsModel answer
MediumModel answerStatistics & Experimentsab-testingmetricspower-analysis

Last updated

Design the metric set, guardrails, randomization unit, sample size and monitoring plan for a new feature in a two-sided booking marketplace, before any code is built.

Context

You work on a two-sided online marketplace where guests search for and book stays offered by hosts. A planning meeting is under way for a new feature, and the team wants the definition of success agreed on before engineering starts.

To make it concrete, assume the feature is a flexible-dates option on search. When a guest turns it on, the results also include listings available within ±3 days of the requested dates.

Task

Propose an experiment plan that covers:

  1. A hypothesis and the clarifying questions you would ask.
  2. A metric hierarchy: one primary metric, diagnostic metrics, and guardrails (with example thresholds).
  3. The unit of randomization and the unit of analysis, including how you would handle interference between guests and hosts.
  4. A sample-size and runtime calculation. Use a baseline booking conversion of 3%, a minimum detectable effect of 2% relative, a two-sided α of 0.05 and 80% power.
  5. Data-quality checks to run before trusting any result.
  6. Runtime monitoring and the decision rules for ship, iterate or kill.

Be explicit about trade-offs and about the mistakes you would avoid.

Hints

Hint 1

Pick exactly one primary metric that is user-level, directly moved by the feature and close to revenue. Put the noisier business metrics in the secondary group, and make sure the primary metric cannot be gamed by low-quality bookings.

Hint 2

Think about who else is affected when a guest in the treatment group books a listing. If supply is limited, a user-level test can overstate the lift, so consider a follow-up with market-level clusters or switchback designs.

Hint 3

For power, use the two-proportion formula with p = 0.03 and an absolute difference of 0.0006, then convert users per arm into days. Account for the attribution window, weekly cycles and variance reduction such as CUPED. Before reading any result, check sample ratio mismatch and exposure logging.