Evaluating a Same-Day Delivery Checkout Experiment on Net Contribution
Statistics & ExperimentsModel answerLast 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.
Model answer
Hard Try it yourself first — then compare your approach, complexity and edge cases.
Framing
A strong answer shows three things: tests chosen to match the estimand rather than the shape of the data, several metrics collapsed into one economic decision with uncertainty carried through, and awareness that same-day delivery draws on shared shopper supply, so a 50/50 test can understate cost at full rollout.
a) Tests per metric
Fix the unit first. Randomization is by user, so variance must be estimated at the user level. AOV, take rate, and cost per order are ratios (sum over orders divided by number of orders), and a naive per-order t-test treats clustered orders as independent, which understates the variance.
| Metric | Estimand | Method | Reason |
|---|---|---|---|
| Conversion | P(user orders) | Two-proportion z-test, unpooled SE | Bernoulli per user, and n≈50k makes the normal approximation very good |
| AOV | ΣGMV / Σorders | Delta-method SE or user-level bootstrap | Ratio metric, and unequal variances rule out pooling |
| Take rate | Σplatform revenue / ΣGMV | Delta method or user-level bootstrap | Ratio of sums, not a mean of per-order rates |
| Cost per order | Σcost / Σorders | Delta method or user-level bootstrap | Skewed and zero-inflated, but the decision depends on the mean |
Welch over classic t. With a variance ratio near 2, the pooled SE is wrong, especially if arm sizes differ. Welch costs nothing when variances are equal. At n≈50k, t versus z hardly matters. The variance estimator is what matters.
Not Mann–Whitney as the primary test. It tests stochastic dominance, not a difference in means. Revenue and cost are additive, and the median can rise while the mean falls (for example if large baskets are lost). Use rank tests only as a diagnostic.
Assumptions: the CLT holds for the estimators, users are independent (shaky in a marketplace, see b), and randomization was executed correctly.
Validation:
- Sample-ratio-mismatch chi-square test.
- Pre-period covariate balance, including the share of promo-eligible users, since the zero-cost orders could be imbalanced.
- Bootstrap each estimator and inspect Q-Q plots. With heavy tails, confirm delta-method and bootstrap intervals agree.
- An A/A test on pre-period data to confirm a false-positive rate near 5%.
Selection caveat. Per-order metrics condition on converting. If treatment pulls in marginal small-basket users, AOV can fall without anyone changing behavior. Use per-order metrics for diagnosis and decide on a per-exposed-user metric.
Variance reduction. Use CUPED with pre-period spend. Optionally winsorize at a pre-registered cap (say the 99.9th percentile) and report results with and without it. A hurdle model for the zero-cost orders helps explain mechanism, but the decision uses the overall mean.
b) Net revenue impact
Contribution per order is π = GMV × τ − C, where τ is the take rate. Decide on contribution per exposed user:
V = conversion × E[GMV·τ − C | order]
Illustrative example:
| Arm | Conv | AOV | τ | Cost | π/order | V/user |
|---|---|---|---|---|---|---|
| Control | 10.0% | $80 | 12.0% | $6.00 | $3.60 | $0.360 |
| Treatment | 10.5% | $82 | 11.5% | $6.50 | $2.93 | $0.308 |
Conversion and AOV both improve, yet contribution per user falls about 14%. This is the trap in the problem.
Cost scaling. The experiment measures cost at the volume it produced. Full rollout raises same-day volume and shopper utilization ρ. A reasonable model:
C(ρ) = c_base + c_wait · ρ/(1−ρ) + c_surge · max(0, ρ − ρ*)
The ρ/(1−ρ) term is the queueing-style congestion shape (idle time, lost batching, late penalties climb steeply as ρ→1). The surge term captures incentive pay above a threshold ρ* (around 0.8). A simpler option is a piecewise-linear curve with breakpoints fit on historical market-by-hour panels of cost versus utilization.
To project rollout, map the volume lift to Δρ per market-hour, then evaluate C at ρ_control + Δρ_full, where Δρ_full is roughly twice the observed Δρ because only half of users were treated. This also flags the SUTVA violation: the arms compete for the same shoppers.
Take-rate saturation. Model τ(d) = τ_min + (τ_max − τ_min)·e^(−kd), or a logistic in discount depth d, fit on past promo or fee variation or on dose arms if available. Give conversion a matching diminishing-returns curve.
Uncertainty by Monte Carlo:
- Draw user-level bootstrap replicates of the effects on conversion, GMV, τ, and cost.
- Draw cost-curve and τ(d) parameters from posterior or bootstrap distributions.
- Compute ΔV at rollout volume for each draw.
- Report E[ΔV], a 90% interval, P(ΔV>0), and expected loss E[max(0, −ΔV)].
Decision rule: ship if P(ΔV>0) ≥ 0.9 and expected loss is under a pre-set tolerance. Otherwise ship only to segments that pass (part c).
c) Heterogeneous effects
Pre-register segments with a mechanism: market density (baseline utilization), daypart, pre-period basket size (never the treated order's basket, which is post-treatment), new versus repeat, and promo eligibility.
Multiplicity:
- Test treatment × segment interactions. "Significant in A but not in B" is not evidence of a difference.
- Use Holm for 3–5 confirmatory segments and Benjamini–Hochberg at about 10% FDR for exploratory scans.
- Shrink with a hierarchical or empirical-Bayes model to reduce winner's-curse inflation.
Honest ML discovery: fit a causal forest or doubly robust learner on a discovery split, then validate on a held-out split with calibration tests and sorted group average effects. Propose only segments that replicate.
Power: a 10% segment has about 3.2× wider intervals, so set a minimum segment size from the MDE. A segment is actionable only if it is targetable at decision time, stable over time, and large in dollars.
d) Constrained optimization
Decision variables: exposure share x_m,h ∈ [0,1] per market and daypart, plus optionally the discount level d and a shopper-supply lever s_m,h.
Objective: maximize expected contribution
Σ volume_m,h · [ΔV_m,h(x, d) − c_supply · s_m,h]
using the posterior mean, or a risk-adjusted version such as mean minus λ·standard deviation.
Constraints:
- Utilization cap: ρ_m,h(x, s) ≤ ρ_max (for example 0.85).
- SLA: P(late delivery) ≤ target, using the congestion model.
- Cancellation rate no more than a set margin above control.
- Supply change limits per period, since manual supply increases are operationally risky.
- Guardrails on customer-experience metrics and a minimum per-segment contribution.
Robustness and rollout: use chance constraints or evaluate the worst case over the Monte Carlo draws. Ramp exposure in stages (for example 10% → 25% → 50%), re-measure the cost curve at each step, and use market-level or switchback holdouts to capture interference that a user-level split misses.
Common mistakes
- Using a per-order t-test on clustered data.
- Treating Mann–Whitney as a test of means.
- Deciding on conversion or AOV rather than net contribution per user.
- Extrapolating 50/50 cost to full rollout.
- Declaring segments from unadjusted subgroup p-values.
- Using post-treatment variables to define segments.