Sample Size for Testing a Stricter Rider Cancellation Fee

Last updated: November 29, 2026

Quick Overview

Uber is considering shortening the free cancellation window from two minutes to one. Estimate the sample size and duration needed to detect a 0.5 percentage point change in the rider cancellation rate.

Uber
Analytics & Experimentation
Data Scientist
Uber
November 29, 2026
Data Scientist
Technical Screen
Analytics & Experimentation
Medium

0

0

0 solved


Uber is considering shortening the free cancellation window from two minutes to one. Estimate the sample size and duration needed to detect a 0.5 percentage point change in the rider cancellation rate.

Uber technical screens for data scientists often include a hands-on power calculation tied to a real policy. The interviewer checks that you know the formula, handle the mismatch between randomization unit (rider) and analysis unit (trip), and can turn the result into a run time.

What the Interviewer Expects
  • Writes the two-proportion sample size formula correctly
  • Recognizes that riders take multiple trips and applies a design effect
  • Converts sample size into calendar duration using traffic
  • Chooses one-sided or two-sided test with justification
  • Names guardrails such as driver cancellations and rider churn
Key Topics to Cover
Power analysis
Design effect
Intra-cluster correlation
Policy experiments
Guardrail metrics
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 the answer change if the MDE halves?
  • What if heavy riders dominate trips; would you cap per-rider contribution?
  • Would you expect novelty or learning effects with a fee policy?
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

Baseline: what share of matched trips do riders cancel today? I will assume 10%. The policy is randomized by rider (a rider must see a consistent policy), but the metric is per trip. How many trips pe...

Approach
  1. Compute trips needed per arm with the two-proportion formula n=(z1−α/2+z1−β)2[p1(1−p1)+p2(1−p2)]δ2n = \frac{(z_{1-\alpha/2}+z_{1-\beta})^2 [p_1(1-p_1)+p_2(1-p_2)]}{\delta^2}.
  2. Inflate by the design effect 1+(m−1)ρ1 + (m-1)\rho because t...

Submit Your Answer
Markdown supported

Related Questions