Sample Size for Testing a New Tipping Prompt at Checkout

Last updated: November 29, 2026

Quick Overview

DoorDash wants to test a redesigned pre-checkout tipping screen. Currently 30% of orders include a tip above the default. Estimate how many orders per arm you need to detect a 1 point absolute increase.

DoorDash
Analytics & Experimentation
Data Scientist
DoorDash
November 29, 2026
Data Scientist
Phone Screen
Analytics & Experimentation
Easy

0

0

0 solved


DoorDash wants to test a redesigned pre-checkout tipping screen. Currently 30% of orders include a tip above the default. Estimate how many orders per arm you need to detect a 1 point absolute increase.

Power analysis is a basic skill tested early in DoorDash data science interviews. Tipping matters because it drives Dasher earnings, so the interviewer also looks for awareness of the right unit and side effects.

What the Interviewer Expects
  • State the hypothesis and parameters: alpha, power, baseline, MDE
  • Apply the two-proportion sample size formula
  • Do the arithmetic correctly
  • Discuss randomization unit and clustering of orders by user
  • Mention how long the test would run
Key Topics to Cover
power analysis
sample size
two-proportion test
tipping
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
  • What if you randomize by user but measure per order?
  • How does the answer change for a 0.5 point MDE?
  • What guardrail protects the consumer here?
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

Metric: share of orders with tip above the default. Baseline p0=0.30p_0 = 0.30, MDE δ=0.01\delta = 0.01, two-sided α=0.05\alpha = 0.05, power 80%....

Approach

Use the standard formula for two proportions: n=(z1−α/22pˉ(1−pˉ)+z1−βp0(1−p0)+p1(1−p1))2δ2n = \frac{(z_{1-\alpha/2}\sqrt{2\bar{p}(1-\bar{p})} + z_{1-\beta}\sqrt{p_0(1-p_0)+p_1(1-p_1)})^2}{\delta^2}...


Submit Your Answer
Markdown supported