Delta Method Variance for Average Order Value Experiments

Last updated: November 29, 2026

Quick Overview

An A/B test randomizes DoorDash consumers but reports average order value as total subtotal divided by total orders. Explain why the naive t-test on orders is wrong and compute a correct variance.

DoorDash
Analytics & Experimentation
Data Scientist
DoorDash
November 29, 2026
Data Scientist
Technical Screen
Analytics & Experimentation
Hard

0

0

0 solved


An A/B test randomizes DoorDash consumers but reports average order value as total subtotal divided by total orders. Explain why the naive t-test on orders is wrong and compute a correct variance.

Ratio metrics like average order value and cost per delivery are everywhere in DoorDash experimentation, and the experimentation platform team cares that analysts get their variance right. The interviewer checks whether you spot the mismatch between unit of randomization and unit of analysis.

What the Interviewer Expects
  • Identify the unit of randomization as the consumer
  • Explain why treating orders as independent understates variance
  • Derive the delta method variance for a ratio of means
  • Write working code and sanity-check it against a bootstrap
  • Mention when to use a user-level metric instead
Key Topics to Cover
delta method
ratio metrics
unit of analysis
bootstrap
variance estimation
How to Approach This
  1. Define success metrics carefully. A good metric is measurable, actionable, and aligned with business goals.
  2. Run experiments long enough to account for novelty effects and weekly seasonality.
  3. Use funnel analysis to identify where users drop off for maximum optimization impact.
  4. Segment results by key dimensions (platform, country, user cohort) to catch hidden patterns.
  5. Consider network effects and interference between treatment and control groups.
Possible Follow-up Questions
  • How does this extend to cost per delivery in a switchback?
  • When would you prefer a bootstrap over the delta method?
  • Can you apply CUPED to a ratio metric?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Browse Analytics Questions
Sample Answer
Clarify

Each consumer ii has XiX_i orders and YiY_i total subtotal. AOV in an arm =∑Yi∑Xi=YˉXˉ= \frac{\sum Y_i}{\sum X_i} = \frac{\bar Y}{\bar X}. Randomization is by consumer, so consumers are independent but orders ...

Approach

A t-test on order-level subtotals treats each order as an independent draw, ignoring that heavy users contribute many similar orders. Variance comes out too small and false positives rise. Instead, tr...


Submit Your Answer
Markdown supported