Measuring Pickup Time Impact in a Two-Sided Marketplace
Statistics & ExperimentsModel answerLast updated
Design an experiment to measure how changes in estimated pickup time affect rider behavior in a ride-sharing platform.
You work as a data scientist at a ride-sharing platform. The product team is exploring ways to shorten the estimated pickup time (the wait time displayed to riders before they book a ride) and wants to understand the business impact.
Address these questions:
-
Business rationale: Why would shortening estimated pickup time benefit the platform? Consider effects on riders, drivers, and overall marketplace health.
-
Observational paradox: When analyzing historical data, you find that sessions with longer estimated pickup times show higher booking rates. How can this be true if shorter waits are genuinely better? List several explanations rooted in confounding or selection effects.
-
Experimental approach: Design a rigorous experiment to measure the causal effect of reducing pickup time on booking rates.
- Define what constitutes treatment versus control
- Identify your primary outcome and 2-3 safeguard metrics
- Specify the unit of randomization and when to measure outcomes
- Describe how to calculate a confidence interval for the effect and what it means
- Address sample size and statistical power considerations
-
Marketplace interference: Why is randomizing individual riders problematic in this setting? What alternative randomization strategies exist, and what challenges do they introduce?
Your response should demonstrate understanding of causality, confounding, selection bias, and the special challenges of experiments in two-sided marketplaces.
Hints
Hint 1
Think about what drives both long wait times and high booking intent simultaneously
Hint 2
Consider how the supply side reacts when you change one rider's experience
Hint 3
Remember that who opens the app differs systematically between high-wait and low-wait situations
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
Model Answer
This problem tests your ability to reason causally in a marketplace where supply and demand interact. A straightforward regression on historical data gives misleading results, and a naive randomized trial on individual users introduces bias.
1. Why shortening pickup time matters
For riders:
- Reduced friction at the moment of decision increases the likelihood someone will book a ride
- Shorter actual waits improve satisfaction and reduce post-booking cancellations
- Builds reliability perception, improving long-term retention and frequency of use
- Prevents riders from switching to competing services or alternative transportation
For drivers:
- Shorter pickup distances mean less unpaid driving time between trips
- Higher utilization (fraction of logged-in time spent on paid trips) translates to better hourly earnings
- Reduced fuel costs and vehicle wear from unnecessary positioning
- Fewer driver-side cancellations when pickup locations are nearby
For the marketplace:
- Each hour of driver availability generates more completed trips, improving capital efficiency
- Better matching creates a virtuous cycle: more trips attract more drivers, further lowering wait times
- Reduced need for surge pricing as supply is used more efficiently
- Overall growth in trips without proportional growth in costs
2. Explaining the positive correlation paradox
The historical data shows longer waits correlating with higher booking rates, but this doesn't mean waiting longer causes people to book. Several confounding mechanisms create this pattern:
Demand intensity confounding:
- Peak periods (Friday evenings, bad weather, major events) create both high booking intent and strained supply
- Riders during these times need transportation urgently regardless of wait time
- The underlying demand state drives both variables in the same direction
Geographic and modal alternatives:
- Rural or suburban areas show longer waits due to sparse driver coverage
- These same locations offer fewer alternatives (no subway, limited taxis), forcing high conversion even with poor service
- Urban areas with 2-minute waits have many competing options, diluting conversion despite better service
Session composition bias:
- In low-wait areas, many app opens are casual browsing, price checks, or habitual behavior
- In high-wait areas, nearly every app open represents serious intent to travel
- The type of person opening the app varies systematically with wait time
Reverse causality:
- High booking activity depletes nearby driver supply
- This causes wait times to rise for the next user who checks
- Bookings cause wait times, not vice versa
Correlated treatments:
- Long-wait periods often coincide with surge pricing and specific trip types (airport runs, long distances)
- These trips attract riders with different intent profiles who would convert regardless of wait time
- Within narrowly defined conditions (same neighborhood, hour, weather), the correlation likely reverses
Key insight: Observational data conflates the causal effect with selection into different situations. Stratifying by time, location, and supply-demand conditions can partially address this, but experimental evidence remains the gold standard.
3. Experimental design
Treatment definition: The intervention must actually reduce realized pickup times, not just displayed estimates (which would be deceptive). Options include:
- Improved matching algorithm that pairs riders with closer drivers
- Driver repositioning incentives or predictive positioning suggestions
- Small localized bonuses that temporarily increase driver supply in target areas
Control continues using the current production system. Measure actual pickup times in both conditions to quantify the achieved reduction and calculate an implied elasticity.
Primary metric: Booking rate = (number of ride requests) / (number of sessions where pickup time was displayed)
Alternatively, use completed trips per session to capture downstream effects.
Guardrail metrics:
- Cancellation rates (both rider and driver initiated) — aggressive repositioning or under-quoted times might inflate cancellations
- Pickup time accuracy — actual minus quoted time; displaying unrealistically short estimates would temporarily boost bookings but damage trust
- Driver economics — earnings per online hour and miles driven without passengers; interventions shouldn't burn driver time
- Adjacent market health — surge frequency, unfulfilled requests in neighboring areas, to detect spillover harm
- Long-term engagement — 28-day retention and rating scores to ensure quality doesn't degrade
Randomization and exposure:
Unit of randomization: Geographic-temporal clusters (discussed further in Q4). Individual rider randomization creates bias in marketplaces.
Exposure trigger: Record a session as exposed when the pickup time is first rendered to a user within a treated cluster.
Analysis uses intent-to-treat on all exposed sessions. Never condition assignment on post-treatment factors like "user saw a wait time under 5 minutes" — that reintroduces selection bias.
Confidence interval construction:
Let p_T and p_C be booking rates in treatment and control. The effect is Δ = p_T - p_C.
With independent observations: SE = √[p_T(1-p_T)/n_T + p_C(1-p_C)/n_C], and the 95% CI is Δ ± 1.96·SE.
However, sessions within the same cluster are correlated, so this formula dramatically understates variance. Instead:
- Use cluster-robust standard errors
- Compute ratio metrics at the cluster level (total bookings / total sessions per cluster) and use the delta method
- Apply block bootstrap resampling over clusters
For time-based switchback designs, use fixed effects for region and hour-of-week, clustering errors by switchback block.
Interpretation: If the result is +1.2 percentage points with 95% CI [0.6, 1.8], we can say: the procedure that produced this interval captures the true effect 95% of the time. Since zero is excluded, the effect is statistically distinguishable from no impact. Whether the effect is practically significant depends on comparing the lower bound to the cost of the intervention.
Power and sample size:
For independent sessions: n ≈ 2(z_α/2 + z_β)² · p(1-p) / δ²
Example: baseline booking rate p = 0.60, minimum detectable effect δ = 0.01, α = 0.05, power 80%: n ≈ 2 · 7.84 · 0.24 / 0.0001 ≈ 38,000 sessions per arm
Clustering multiplies this by the design effect [1 + (m-1)·ICC], where m is average sessions per cluster and ICC is intra-cluster correlation. Real sample size requirements are driven by the number of clusters, not sessions. Power analysis should simulate using historical data structure.
Variance reduction techniques:
- Pre-period covariate adjustment (CUPED) using historical booking rates per cluster
- Matched-pair assignment of similar geographic units
Run duration: at least 2 weeks to capture weekly patterns and allow transient novelty effects to stabilize.
4. Why user-level randomization fails
Marketplace interference: When you reduce wait time for a treated rider by assigning them a closer driver, you've removed that driver from the control group's available pool. Control riders now face longer waits than they would have naturally. The control group is contaminated, biasing the treatment effect downward or even reversing it.
This is a violation of SUTVA (stable unit treatment value assumption) — one unit's treatment affects another's outcome.
Spillover and equilibrium effects: Even if we could somehow isolate riders, drivers respond to aggregate conditions. Changing the matching algorithm for 50% of riders shifts the entire supply-demand equilibrium, affecting both groups.
Alternative randomization strategies:
-
Geographic clusters:
- Randomize by neighborhood, city, or geohash region
- All users in a region receive the same treatment
- Reduces interference but doesn't eliminate it at borders
- Requires careful boundary definition to minimize cross-contamination
- Power is limited by the number of independent clusters, not riders
-
Time-based switchback:
- Alternate treatment on/off in fixed time blocks (e.g., hourly)
- All users during a treatment hour experience the intervention
- Controls for time-of-day effects via fixed effects in analysis
- Risk of carryover if effects persist across blocks
- Sensitive to trends and requires longer runtime
-
Geo-time cells:
- Randomize combinations of location and time blocks
- Balances spatial and temporal coverage
- Most flexible but requires large scale to power
Tradeoffs:
- Clustering reduces statistical power (fewer independent units)
- Geographic boundaries create leakage zones where drivers serve both arms
- Switchbacks risk carryover and temporal confounding
- All approaches require more sophisticated variance estimation
The core insight: in a two-sided marketplace, you cannot isolate one participant without affecting others. Randomization must respect the market structure.