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
November 29, 20260
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
How to Approach This
- Define success metrics carefully. A good metric is measurable, actionable, and aligned with business goals.
- Run experiments long enough to account for novelty effects and weekly seasonality.
- Use funnel analysis to identify where users drop off for maximum optimization impact.
- Segment results by key dimensions (platform, country, user cohort) to catch hidden patterns.
- 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 QuestionsSample 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
- Compute trips needed per arm with the two-proportion formula .
- Inflate by the design effect because t...