Reducing User Dropoff: Statistical Analysis and Experiment Design
Statistics & ExperimentsModel answerLast 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.
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
Model Answer: Reducing User Dropoff Statistical Analysis
This problem tests four core competencies: two-proportion inference, regression modeling with confounders, power calculations under clustering, and nonparametric methods. A strong answer demonstrates technical precision while acknowledging real-world complexities.
Part 1: Hypothesis Test and Confidence Interval
Test Selection
With large sample sizes (3,600 and 3,168 dropoffs respectively) and binary outcomes, a two-proportion z-test is appropriate. I'll use a two-sided test unless there was pre-specified directionality.
Hypotheses:
- H₀: p₂ − p₁ = 0 (no change in dropoff rate)
- Hₐ: p₂ − p₁ ≠ 0 (dropoff rate changed)
Point Estimate:
d̂ = 0.066 − 0.072 = −0.006 (a 0.6 percentage point decrease, or 8.3% relative reduction)
Test Statistic:
Under H₀, we use the pooled proportion:
- p̂_pooled = (3,600 + 3,168) / 98,000 = 0.0691
- SE₀ = √[0.0691 × 0.9309 × (1/50,000 + 1/48,000)] = 0.00162
- z = −0.006 / 0.00162 = −3.70
- p-value ≈ 0.0002 (two-sided)
95% Confidence Interval:
For the CI, we use unpooled standard error:
- SE = √[(0.072 × 0.928)/50,000 + (0.066 × 0.934)/48,000] = 0.00162
- CI = −0.006 ± 1.96 × 0.00162 = [−0.0092, −0.0028] or [−0.92pp, −0.28pp]
Practical Interpretation:
The dropoff rate decreased between 0.28 and 0.92 percentage points. For every million requests, this translates to 2,800–9,200 fewer dropoffs. The interval excludes zero, consistent with statistical significance.
Critical Caveat:
This is a pre-post observational comparison, not a randomized experiment. Confounders that could produce identical results without any causal effect include: seasonal patterns, shifts in city mix, time-of-day composition changes, weather events, or concurrent supply-side changes. The test shows the rates differ; it does not establish causation.
Part 2: Logistic Regression Model
Model Specification:
logit[P(dropoff = 1)] = β₀ + β₁·post_launch
+ Σ γ_c·I(city = c)
+ Σ δ_h·I(hour = h)
+ Σ θ_h·(post_launch × I(hour = h))
In R notation: dropoff ~ post_launch * factor(hour) + factor(city)
Rationale for Interaction:
User dropoff is driven primarily by wait time and supply scarcity, which concentrate during peak hours (morning/evening commute). A product feature addressing dropoff likely has heterogeneous effects: it may work well during high-demand periods but show minimal impact during off-peak times when baseline dropoff is already low. The post_launch × hour interaction captures this heterogeneity. (An alternative defensible choice would be post_launch × city if the feature depends on market density.)
Key Assumptions:
-
Conditional Independence: Observations are independent given covariates. This is violated by repeat users and drivers—address with cluster-robust standard errors, GEE, or mixed models with random effects.
-
Correct Functional Form: The logit link is appropriate for binary outcomes. Using categorical variables for hour and city avoids linearity assumptions.
-
No Unmeasured Confounding: Unobserved factors (pricing changes, weather, local events, supply shifts) concurrent with launch would bias β₁.
-
Sufficient Events: Sparse city × hour cells may require pooling or regularization. Avoid perfect separation.
Calibration Assessment:
- Binned Calibration Plot: Group predictions into deciles. Plot mean predicted probability vs. observed dropoff rate. Well-calibrated models produce points near the 45° line.
- Calibration Slope/Intercept: On held-out data, regress observed outcomes on logit(predicted). Intercept should be ≈0, slope ≈1.
- Subgroup Calibration: Check calibration within each city and hour separately, not just overall.
- Avoid Hosmer-Lemeshow with this sample size—it will reject for trivial deviations.
Overdispersion Check:
Individual binary outcomes don't exhibit overdispersion directly. Aggregate to city × hour × period cells and fit a binomial model. Compute Pearson χ² / degrees of freedom. A ratio substantially above 1 indicates extra-binomial variation, typically from clustering.
Remedies: quasi-binomial scaling, cluster-robust SEs, or hierarchical models with driver/city random effects.
Part 3: Power Analysis and Clustering
Unclustered Sample Size:
For δ = 0.005 (0.5pp effect), p₁ = 0.072, p₂ = 0.067, α = 0.05 (two-sided), power = 0.80:
Formula: n = [z_{α/2}√(2p̄q̄) + z_β√(p₁q₁ + p₂q₂)]² / δ²
- p̄ = 0.0695, so 1.96√(2 × 0.0647) = 0.705
- 0.842√(0.0668 + 0.0625) = 0.303
- n = (1.008)² / 0.000025 ≈ 40,600 per arm
Clustering Adjustment:
Requests from the same driver are correlated (ICC = ρ = 0.02). The design effect is:
DE = 1 + (m − 1)ρ
where m = average requests per driver in the analysis window.
Assuming m = 20 requests/driver (a typical value for a multi-day window):
- DE = 1 + 19 × 0.02 = 1.38
- Required N = 40,600 × 1.38 ≈ 56,000 per arm
This requires approximately 2,800 drivers per arm (56,000 / 20).
Key Insights:
- Even a small ICC of 0.02 inflates sample size by 38%.
- With variable cluster sizes, DE increases further: DE ≈ 1 + [(1 + CV²)m̄ − 1]ρ
- The effective sample size is determined by number of clusters (drivers), not total observations.
- The observed samples (~49k per period) are underpowered for a 0.5pp effect once clustering is considered.
- If treatment assignment is at the driver level, analyze at that level using driver-aggregated outcomes or cluster-robust SEs.
Part 4: Stratified Bootstrap
Procedure:
-
Stratification Setup: Partition data by (city, period). This gives 2C strata where C = number of cities.
-
Resampling (B = 5,000–10,000 iterations):
- Within each stratum (city, period), resample with replacement to match original stratum size
- Compute city-standardized difference: Σ_c w_c(p̂_{c,post} − p̂_{c,pre}), where w_c = fixed city weight (e.g., combined city share). This removes city-mix bias.
-
Confidence Interval: Take 2.5th and 97.5th percentiles of the B bootstrap statistics. For skewed distributions, use bias-corrected accelerated (BCa) intervals.
-
Driver Clustering Adjustment: Resample drivers within each (city, period) stratum, keeping all requests from each sampled driver together. This preserves within-driver correlation.
When Bootstrap is Preferable:
- Small Sample in Strata: Some cities may have <30 dropoffs per period, violating normal approximation validity.
- Skewed Distributions: Rare-event rates often have asymmetric sampling distributions.
- Complex Estimands: City-weighted or other nonlinear summaries where analytic variance is intractable.
- Robustness Check: The bootstrap makes no distributional assumptions beyond exchangeability within strata.
When Normal Approximation Suffices:
With thousands of observations per period and moderate rates (5–10%), the central limit theorem applies well. The z-based CI from Part 1 is appropriate for the overall difference. Bootstrap adds value primarily for stratified analysis with small strata or when checking robustness of parametric assumptions.
Implementation Note:
# Pseudo-code structure
for b in 1:B:
for each (city, period):
sample drivers with replacement
extract their requests
compute rate
compute weighted difference
store bootstrap statistic
CI = quantile(bootstrap_stats, [0.025, 0.975])
Common Pitfalls
- Using pooled SE for confidence intervals (correct only for hypothesis test)
- Ignoring that pre-post comparison ≠ causal inference
- Forgetting to adjust sample size for clustering
- Resampling requests instead of drivers when ICC > 0
- Assuming normal approximation holds for rare-event rates in small strata
Time Estimate: 30–40 minutes for a complete, polished answer covering all four parts with justifications.