KatInterview

Reducing User Dropoff: Statistical Analysis and Experiment Design

Statistics & ExperimentsModel answer
MediumModel answerStatistics & Experimentshypothesis-testingregressionpower-analysis

Last updated

Evaluate a feature launch's impact on dropoff rates using hypothesis testing, regression adjustment, power calculations with clustering, and bootstrap methods.

A rideshare platform rolls out a feature intended to decrease trip dropoff rates. You have data from two consecutive periods:

  • Period 1 (baseline): 50,000 trip requests, 7.2% dropoff rate
  • Period 2 (post-launch): 48,000 trip requests, 6.6% dropoff rate

Treat each trip request as an independent Bernoulli trial initially.

Your task is to perform a comprehensive statistical analysis:

Part 1: Basic Inference
Select an appropriate hypothesis test to evaluate whether the dropoff rate changed between periods. Construct a 95% confidence interval for the difference in rates (Period 2 − Period 1). Clearly state your null and alternative hypotheses, and explain what your confidence interval tells us in practical terms.

Part 2: Confounding Adjustment
The comparison above ignores potential confounders. Design a logistic regression model that controls for city and time-of-day, including one interaction term you believe is justified. Write out the model specification, enumerate the key statistical assumptions, and explain how you would validate model calibration and test for overdispersion in the data.

Part 3: Sample Size Planning
Calculate the required sample size per group to detect a 0.5 percentage point reduction in dropoff rate with 80% power at a 5% significance level (two-sided). Then, suppose drivers handle multiple requests and the intraclass correlation within driver is 0.02. Explain how this clustering inflates the required sample size—quantify the design effect and recalculate the necessary N.

Part 4: Resampling-Based Inference
Outline a bootstrap procedure to construct a confidence interval for the rate difference that is stratified by city. Explain when this resampling approach would be preferable to the normal approximation, and how you would modify the procedure to account for within-driver correlation.

Hints

Hint 1

For Part 1, remember that the standard error formula differs between hypothesis testing (pooled) and confidence intervals (unpooled).

Hint 2

In Part 2, think about which factor—city or time-of-day—is more likely to interact with the treatment effect based on the mechanics of user dropoff.

Hint 3

The design effect formula is 1 + (m − 1)ρ where m is the average cluster size. You'll need to assume a value for m.