KatInterview

Evaluating a Same-Day Delivery Checkout Experiment on Net Contribution

Statistics & ExperimentsModel answer
HardModel answerStatistics & Experimentsab-testingratio-metricsdelta-method

Last updated

Design the analysis of a two-arm checkout experiment: pick valid tests per metric, model cost and take-rate effects on contribution, find segments, and set constrained rollout rules.

Scenario

A marketplace ran a randomized experiment on its checkout page. The treatment arm sees a prominent same-day delivery option, and the control arm sees the usual checkout. Randomization is by user, with roughly 50,000 users per arm.

The metrics you have been given are:

  • Conversion rate (does a user place an order)
  • Average order value (AOV)
  • Take rate (platform revenue as a percentage of gross merchandise value, GMV)
  • Delivery cost per order

What you know about the data

  • AOV and delivery cost are right-skewed.
  • The variance in one arm is about twice the variance in the other.
  • About 15% of orders have a delivery cost of exactly zero because of promotions.

Tasks

a) Choosing tests. For each metric, pick and justify a hypothesis test. Consider Welch versus classic t-test, a z-test, and nonparametric or bootstrap approaches. State the distributional assumptions you rely on and how you would check them.

b) Net impact. Define contribution per order as GMV × take_rate − delivery_cost and estimate the effect on it. Delivery cost may rise as order volume rises, and take rate may saturate at deep discounts. Show how you would model cost scaling (for example a piecewise or queueing-informed function) and diminishing take rate, and how you would carry uncertainty through to a ship or no-ship decision.

c) Segmentation. Propose a plan for finding heterogeneous treatment effects across segments such as market, daypart, basket size, and new versus repeat customers. Explain how you would control for multiple comparisons and avoid overfitting while still surfacing segments someone could act on.

d) Constrained optimization. Increasing shopper supply by hand is operationally risky. Propose an objective and a set of constraints that trade short-term contribution lift against service-level measures such as delivery SLAs and cancellation risk.

Answer as you would in a live discussion: structured, concrete, and explicit about trade-offs.

Hints

Hint 1

Randomization is per user, but orders cluster within users. Think about which unit the variance should be computed on, and why AOV, take rate, and cost per order are ratios of sums rather than simple means.

Hint 2

A pooled t-test is wrong when variances differ, and a rank test answers a different question than a difference in means. Money decisions are additive, so the estimand should be a mean (or ratio of means), with delta-method or user-level bootstrap intervals.

Hint 3

A per-order metric conditions on converting, so it can move purely through who converts. Base the ship decision on contribution per exposed user, then ask what happens to cost when treatment goes from 50% of traffic to 100%, because shopper supply is shared.

Hint 4

For segments, test treatment-by-segment interactions rather than per-segment significance, use pre-treatment covariates only, correct for multiplicity, and shrink noisy estimates. For the optimization, maximize expected contribution subject to SLA and cancellation constraints, with a capacity limit per market-hour.