Analyze Cancellation Change with Statistics
UberData Scientist · Technical ScreenLast updated
This question evaluates statistical inference for binary outcomes, regression adjustment for confounding, experiment design and power analysis, and nonparametric uncertainty estimation using bootstrapping, and is targeted at Data Scientist roles within the Statistics & Math domain.
Uber introduces a small product tweak to reduce cancellations. You observe:
- Before: n1 = 50,000 requested trips, cancel rate p1 = 7.2%.
- After: n2 = 48,000 requested trips, cancel rate p2 = 6.6%. Assume independent Bernoulli outcomes per request to start. Answer:
- Choose an appropriate hypothesis test for the change in cancellation rate and compute a 95% CI for (p_after − p_before). State H0/HA and interpret the CI practically.
- Now consider confounding by city and hour-of-day. Specify a logistic regression that adjusts for these (and an interaction term you deem important). Write the model formula, list key assumptions, and describe how you would check calibration and overdispersion.
- Power/MDE: What per-arm sample size would you need to detect an absolute change of 0.5 percentage points at α=0.05 with 80% power (ignore clustering first)? Then discuss how an intraclass correlation of 0.02 at the driver level would inflate the required N under a cluster-robust design; show the design effect and the new N.
- Nonparametric check: Describe a bootstrap procedure to form a CI for the rate difference stratified by city (stratified resampling) and when its CI might be preferable to the z-approximation.
Solution walkthrough is for members
Get the full walkthrough with reference code and complexity analysis, plus Kitty Coach at 300 messages a day. Hints, the code runner and community answers stay free.