Designing ETA Evaluation Experiments in Networked Two-Sided Markets
Statistics & ExperimentsModel answerLast updated
Design and evaluate an experimental framework for an ETA model change in a dynamic dispatch marketplace, accounting for interference, power, and partial compliance.
You are designing an experimental framework to evaluate a new estimated time of arrival (ETA) prediction system for a ride-hailing network. ETA updates directly alter rider conversion and cancellation decisions, which in turn redistribute available drivers across geographic regions and create marketplace interference (violating SUTVA).
Your objective is to build an end-to-end evaluation plan that accurately estimates the causal impact on user experience and overall marketplace health.
Requirements:
- Metric Suite: Define up to 3 primary demand metrics and up to 5 supply/quality guardrail metrics. Provide explicit mathematical formulas and measurement units for each.
- Randomization Strategy & Interference: Compare potential units of randomization (rider, trip, driver, geohash-6 × hour). Select and justify the optimal unit based on SUTVA considerations, and detail a stratification/blocking scheme (e.g., city tier by day-type).
- Contamination & Rollout Alternatives: If fine-grained unit randomization cannot be implemented, detail a stepped-wedge rollout structure combined with a 10% geographic holdout. Outline contamination containment methods (shadow driver pools, sticky routing, spatial exclusion buffers) and define how to measure and cap cross-arm exposure.
- Instrumentation & As-Treated Inference: Detail the client/server exposure logging required to confirm the UI displayed the new ETA. Define an estimator robust to partial compliance (e.g., 2SLS / CACE) and explain how to mitigate post-randomization selection bias when measuring downstream trip events.
- Comparative Methodology & Pre-Trend Validation: Compare standard A/B tests, Difference-in-Differences (DiD), and Synthetic Control Methods (SCM). Explain when each approach is valid in this domain. Specify pre-trend diagnostics and describe how to construct a city-level synthetic control (donor selection, regularization, and matching features).
- Clustered Power Calculation: Calculate the required sample size and cluster count for detecting a 1.5% relative decrease in rider cancellations given:
- Baseline cancellation rate $p = 0.12$
- Target relative drop = 1.5%
- Significance level $\alpha = 0.05$ (two-sided), Power $1 - \beta = 0.80$
- Intra-class correlation coefficient $\text{ICC} (\rho) = 0.02$
- Average daily volume $m = 1,500$ trips per zone over a 28-day duration Provide step-by-step calculations showing the design effect (DE), required total trip sample size under simple random sampling (SRS), and minimum number of zones per arm.
- Biases & Mitigations: List 4 distinct experimental biases relevant to dynamic spatial markets (e.g., demand shocks, surge feedback loops, time-of-day variations, user novel/fatigue effects) and provide an explicit mitigation strategy for each.
- Sequential Monitoring & Rollout Guardrails: Define a early-stopping framework using sequential harm boundaries (e.g., spending functions) alongside a cost-benefit decision framework incorporating driver earnings and SLA thresholds.
- Pre-Registration & Heterogeneity: Outline a formal pre-registration plan (estimands, metrics, missing data protocols, look schedules) and describe a strategy for reporting subgroup effects (city tiers, weather conditions) without inflating Type I error rates.
Hints
Hint 1
Remember that shared supply causes SUTVA violations: if a treated rider cancels less due to an accurate ETA, nearby control riders have fewer available drivers.
Hint 2
For the power calculation, compute the total trips per zone over the 28-day period ($m = 1,500 \times 28$) before evaluating the design effect $1 + (m - 1)\rho$.
Hint 3
When using instrumental variables (IV) for partial compliance, the treatment assignment serves as the instrument $Z$, and actual UI exposure serves as $D$.
Model answer
Hard Try it yourself first — then compare your approach, complexity and edge cases.
1. Metric Suite
To capture both immediate demand conversion and system-wide operational integrity, we define the following balanced metric framework:
Primary Demand Metrics (Max 3)
-
Rider Post-Dispatch Cancellation Rate (5-min window): $$\text{Cancel Rate}_{\le 5m} = \frac{\sum \mathbb{I}(\text{rider_cancelled} = 1 \text{ within } 300\text{s of match})}{\text{Total Matched Requests}}$$ Unit: Percentage (%)
-
Session-to-Trip Conversion Rate: $$\text{Conversion Rate} = \frac{\text{Completed Trips}}{\text{Unique Search Sessions}}$$ Unit: Percentage (%)
-
Pickup ETA Absolute Prediction Error (p50): $$\text{MAE}{\text{ETA}} = \text{Median}\left( \left| t{\text{actual_pickup}} - t_{\text{estimated_pickup}} \right| \right)$$ Unit: Minutes
Supply & Operational Guardrail Metrics (Max 5)
-
Driver Hourly Earnings Rate: $$\text{Driver Earnings/Hour} = \frac{\sum \text{Total Payouts (\text{$})}}{\sum \text{Online Hours}}$$ Unit: USD ($)/Hour
-
Supply Utilization Rate: $$\text{Utilization} = \frac{\sum \text{Time Spent En-Route or On-Trip}}{\sum \text{Total Driver Online Hours}}$$ Unit: Percentage (%)
-
Actual Pickup Latency (p50): $$\text{Pickup Latency p50} = \text{Median}\left( t_{\text{driver_arrival}} - t_{\text{dispatch_match}} \right)$$ Unit: Minutes
-
Driver Post-Match Cancellation Rate: $$\text{Driver Cancel Rate} = \frac{\text{Driver Cancellations}}{\text{Total Matched Requests}}$$ Unit: Percentage (%)
-
ETA Customer Support Ticket Rate: $$\text{Support Rate} = \frac{\text{ETA-Related Support Tickets}}{\text{Completed Trips}} \times 1,000$$ Unit: Tickets per 1,000 trips
2. Randomization Strategy & Interference
Evaluating Randomization Units
- Rider-Level Randomization: Invalid. Violates SUTVA (Stable Unit Treatment Value Assumption). If treated riders see lower ETAs and cancel less frequently, they lock up nearby drivers. Control riders in the same spatial vicinity experience artificially depleted supply and higher wait times. The treatment effect spills over onto the control group, biasing the effect estimate toward zero (or flipping its sign).
- Driver-Level Randomization: Invalid. The treatment alters the rider's frontend UI and initial dispatch expectation. Driver-based split does not isolate rider search behavior or local market clearing price dynamics.
- Geohash-6 × Hour (Switchback): Recommended. Clusters randomization spatially and temporally. Switching assignment within a bounded geographic zone at structured hourly blocks contains localized spatial spillover and allows supply-demand equilibrium to reset.
Washout & Blocking Scheme
To mitigate temporal carryover across switchback boundaries (e.g., a trip requested at 13:58 under Treatment completing at 14:15 under Control), a 15-minute washout window at the start of every hour block is removed from the primary analysis.
Hour H (Treatment) Hour H+1 (Control)
|-----------------------------| |-----------------------------|
| Washout | Analysis Data | | Washout | Analysis Data |
| (15 min) | (45 min) | | (15 min) | (45 min) |
| Excluded | Included | | Excluded | Included |
Stratified Block Assignment: Randomization is stratified across blocks defined by: $$\text{Strata} = \text{City Tier} \times \text{Day Type (Weekday/Weekend)} \times \text{Time Bucket (Peak, Off-Peak, Night)}$$ Within each stratum, time-space clusters are assigned 1:1 to Treatment or Control using balanced alternating block schedules.
3. Contamination Controls & Rollout Alternatives
If dynamic switchbacks cannot be deployed, we utilize a Stepped-Wedge Rollout with a 10% Geographic Holdout.
Time Period Wave 1 Wave 2 Wave 3 Wave 4
Group A (22.5%) [ Tx ]----->[ Tx ]----->[ Tx ]----->[ Tx ]
Group B (22.5%) [ Ctl ]---->[ Tx ]----->[ Tx ]----->[ Tx ]
Group C (22.5%) [ Ctl ]---->[ Ctl ]---->[ Tx ]----->[ Tx ]
Group D (22.5%) [ Ctl ]---->[ Ctl ]---->[ Ctl ]---->[ Tx ]
Holdout (10.0%) [ Ctl ]---->[ Ctl ]---->[ Ctl ]---->[ Ctl ]
Contamination Controls
- Spatial Exclusion Buffers: Exclude a 1-geohash boundary ring surrounding treatment zones. Events occurring within boundary regions are omitted from primary causal inference.
- Sticky Routing & Shadow Pools: Maintain sticky matching assignments so a driver locked to a treatment dispatch pipeline remains within that regime for the duration of the active trip chain.
Measuring and Capping Spillover
Cross-arm exposure for a cluster $c$ is quantified by the proportion of driver supply hours spent serving requests originating from opposing treatment arms: $$\text{Exposure Ratio}_c = \frac{\text{Driver Hours in Opposing Arm}}{\text{Total Driver Hours in Cluster } c}$$
If $\text{Exposure Ratio}_c > 0.10$ (10%), the cluster's boundary exclusion buffer is expanded outward by one geohash ring. Causal impacts are additionally evaluated via a dose-response model incorporating $\text{Exposure Ratio}_c$ as a continuous covariate.
4. Instrumentation & As-Treated Inference
Exposure Logging
To confirm UI delivery, client-side code fires an immutable telemetry payload eta_rendered_event:
{
"event_id": "evt_9872349823",
"request_id": "req_88123",
"session_id": "sess_4410",
"timestamp_utc": "2024-10-25T14:32:01.102Z",
"assigned_arm": "TREATMENT_V2",
"ui_rendered_flag": true,
"displayed_eta_seconds": 240
}
An observation is flagged as exposed ($D_i = 1$) if and only if ui_rendered_flag == true prior to user session conversion or departure.
Partial Compliance & 2SLS Framework
Because network drops or client lag may prevent treatment display, assignment $Z_i \in {0,1}$ does not perfectly equal exposure $D_i \in {0,1}$. We fit a Two-Stage Least Squares (2SLS) Complier Average Causal Effect (CACE) model clustered at the zone-hour level:
Stage 1 (First Stage): $$D_{i,c} = \gamma_0 + \gamma_1 Z_{i,c} + \mathbf{X}{i,c}' \mathbf{\Gamma} + \nu{i,c}$$
Stage 2 (Structural Equation): $$Y_{i,c} = \beta_0 + \beta_{\text{CACE}} \widehat{D}{i,c} + \mathbf{X}{i,c}' \mathbf{\Omega} + \varepsilon_{i,c}$$
We report both the policy-relevant Intent-to-Treat (ITT) effect ($\mathbb{E}[Y | Z=1] - \mathbb{E}[Y | Z=0]$) and the local average treatment effect ($\beta_{\text{CACE}}$).
Mitigating Post-Randomization Selection Bias
Filtering metrics to "completed matches" introduces post-treatment selection bias because initial ETA displays change conversion propensity.
- Primary Strategy: Anchor metric denominators to pre-exposure events (e.g., total unconditioned app search sessions).
- Sensitivity Bounds: Compute non-parametric Lee Bounds by trimming the excess sessions in the treatment arm with higher conversion rates to yield worst-case lower and upper bounds on the true effect.
5. Comparative Methodology & Diagnostics
| Method | Validity Conditions | Strengths | Weaknesses |
|---|---|---|---|
| Switchback A/B | Localized spillovers; short carryover; frequent transitions feasible. | Unbiased under randomized assignment; high internal validity. | Requires spatial buffers and temporal washout windows. |
| Diff-in-Diff (DiD) | Parallel trends hold; no unobserved time-varying confounders. | Simple to execute across staggered geographic rollouts. | Standard TWFE fails with dynamic/staggered treatment timing; requires Callaway-Sant'Anna estimators. |
| Synthetic Control | Single/few macro units treated (e.g., full-city rollouts); long pre-period. | Constructs explicit convex counterfactual from donor cities. | Susceptible to interpolation bias; requires robust pre-period matching. |
Pre-Trend Diagnostics & Diagnostics Plan
- Event Study Leads Test: Estimate dynamic coefficients for $T - k \dots T - 1$. Perform a joint $F$-test to evaluate $H_0: \beta_{-k} = 0 \quad \forall k \ge 1$.
- In-Time Placebo: Re-estimate models on historical pre-experiment periods using pseudo-treatment dates.
- In-Space Placebo: Construct synthetic controls for all donor units. Calculate the distribution of post/pre Root Mean Squared Prediction Error (RMSPE) ratios: $$\text{RMSPE Ratio} = \frac{\text{RMSPE}{\text{post}}}{\text{RMSPE}{\text{pre}}}$$ Reject $H_0$ if the treated unit's ratio lies in the top 5% of the donor distribution.
Synthetic Control Setup
- Donor Pool: Cities within the same operational tier excluding any regions with concurrent feature launches or supply shocks.
- Matching Features: Pre-treatment weekly cancellation rates, total request volumes, mean driver online hours, surge frequency, and temperature/precipitation metrics.
- Regularization & Estimation: Apply Augmented Synthetic Control (ASCM) combining constrained simplex weights ($w_j \ge 0, \sum w_j = 1$) with a Ridge penalty to penalize extrapolation outside the convex hull.
6. Clustered Power Calculation
Inputs:
- Baseline cancellation rate: $p = 0.12$
- Relative effect size: $-1.5%$ ($\delta_{\text{rel}} = -0.015$)
- Absolute effect size: $\delta = 0.12 \times (-0.015) = -0.0018$
- Significance level: $\alpha = 0.05 \implies z_{\alpha/2} = 1.960$
- Power: $1 - \beta = 0.80 \implies z_{\beta} = 0.842$
- Intra-cluster correlation: $\text{ICC} (\rho) = 0.02$
- Daily cluster volume: $1,500$ trips/day over $28$ days
Step 1: Total Observations Under Simple Random Sampling (SRS)
$$n_{\text{SRS per arm}} = \frac{(z_{\alpha/2} + z_{\beta})^2 \cdot 2 p (1 - p)}{\delta^2}$$ $$n_{\text{SRS per arm}} = \frac{(1.960 + 0.842)^2 \cdot 2(0.12)(0.88)}{(-0.0018)^2} = \frac{7.851 \cdot 0.2112}{3.24 \times 10^{-6}} \approx 511,775 \text{ trips/arm}$$
Step 2: Cluster Size ($m$) and Design Effect ($\text{DE}$)
$$m = 1,500 \text{ trips/day/zone} \times 28 \text{ days} = 42,000 \text{ trips/zone}$$ $$\text{DE} = 1 + (m - 1) \rho = 1 + (42,000 - 1) \times 0.02 = 1 + 839.98 = 840.98$$
Step 3: Required Total Sample & Cluster Count
$$n_{\text{Clustered per arm}} = n_{\text{SRS per arm}} \times \text{DE} = 511,775 \times 840.98 \approx 430,392,5395 \text{ trips/arm}$$ $$k_{\text{zones per arm}} = \frac{n_{\text{Clustered per arm}}}{m} = \frac{430,392,595}{42,000} \approx 10,248 \text{ zones per arm}$$
$$\text{Total Zones Required } (K) = 2 \times 10,248 = 20,496 \text{ zones}$$
Analytical Takeaways & Power Levers
The large variance multiplier ($\text{DE} \approx 841$) demonstrates that cluster variance dominates. Increasing duration $m$ within a fixed number of zones yields diminishing returns. To make this experiment feasible:
- Apply CUPED Variance Reduction: Use pre-experiment zone cancellation baseline features to absorb variance. With $R^2 = 0.70$, variance drops by $(1 - R^2) = 0.30$, scaling total required clusters down to $\sim 3,074$ per arm.
- Switchback Granularity: Randomize on zone-hour clusters ($m \approx 62.5$ trips/cluster) rather than 28-day continuous zone blocks, sharply reducing $\text{DE}$.
7. Biases and Mitigations
| Bias | Mechanism | Concrete Mitigation Strategy |
|---|---|---|
| 1. Dynamic Surge Loops | Differential demand conversion between arms alters supply balance, triggering uneven algorithmic surge pricing. | Include current localized surge pricing multiplier as a dynamic stratification covariate and control variable in regression specifications. |
| 2. Exogenous Spatial Shocks | Localized events (e.g., severe weather, stadium games) corrupt treatment or baseline behavior in specific zones. | Implement Stratified Block Randomization within spatial-temporal bins (City Tier $\times$ Micro-region $\times$ Weather-Index). |
| 3. Temporal Heterogeneity | System response varies non-linearly across peak commuting hours vs late-night periods. | Pre-specify time-of-day block randomization and incorporate fixed effects for hour-of-week ($\alpha_{h}$). |
| 4. Novelty & Learning Effects | Riders adjust their baseline expectations and cancellation thresholds over repeated exposures to the new ETA model. | Run a pre-registered 4-week long-term holdout slice to measure trajectory shifts in treatment effect ($\frac{d\hat{\beta}}{dt}$). |
8. Sequential Monitoring & Guardrail Decision Model
Sequential Testing via Alpha-Spending
To enable early stopping for severe marketplace degradation without inflating Type I error rates, we use an O'Brien-Fleming Alpha-Spending Function: $$\alpha(t) = 2 - 2\Phi\left( \frac{z_{\alpha/2}}{\sqrt{t}} \right)$$ where $t \in (0, 1]$ represents the fraction of total planned sample size acquired.
Look Interval (t) Cumulative Alpha Spent Upper/Lower Boundary (z-score)
t = 0.25 (Day 7) 0.000016 +/- 4.33
t = 0.50 (Day 14) 0.003051 +/- 2.96
t = 0.75 (Day 21) 0.019346 +/- 2.34
t = 1.00 (Day 28) 0.050000 +/- 2.01
Rollout Decision Framework (Cost-Benefit Model)
The automated system triggers a launch halt if any of the following guardrails are breached at an interim check point:
$$\text{Halt Execution If: } \begin{cases} \text{Pr}\left( \Delta \text{Driver Earnings/Hour} < -2.0% \right) > 0.95 \ \text{Pr}\left( \Delta \text{Driver Cancel Rate} > +1.0% \right) > 0.95 \ \text{Pr}\left( \Delta \text{Pickup Latency p50} > +0.5 \text{ min} \right) > 0.95 \end{cases}$$
Launch approval requires a positive Net Marketplace Utility Change ($\Delta U > 0$): $$\Delta U = w_1 \cdot (\Delta \text{Completed Trips}) + w_2 \cdot (\Delta \text{Rider MAE}_{\text{ETA}}) - w_3 \cdot (\Delta \text{Driver Idle Time})$$ where weights $w_1, w_2, w_3$ are calibrated to long-term customer lifetime value (LTV).
9. Pre-Registration Plan & Subgroup Heterogeneity
Pre-Registration Document Structure
================================================================================
EXPERIMENT PRE-REGISTRATION PLAN
================================================================================
1. PRIMARY ESTIMANDS
- Intent-to-Treat (ITT) effect of ETA Model v2 display on 5-min Post-Dispatch
Rider Cancellation Rate.
- CACE via 2SLS on Session Conversion Rate using log-rendered events.
2. HYPOTHESES
- H1 (Demand): ETA v2 decreases 5-min cancellations by >= 1.5% relative.
- H2 (Guardrail): Driver hourly earnings shift by no more than +/- 0.5%.
3. EXCLUSION & INCLUSION CRITERIA
- Included: Completed sessions originating in top-50 metro areas.
- Excluded: Sessions within 15-minute post-switchback washout windows;
sessions in boundary exclusion rings (1-geohash buffer); sessions with
corrupted client telemetry logs.
4. MISSING DATA PROTOCOL
- Latency/Cancellation records missing due to network drops < 2% will be
dropped via listwise deletion.
- If missingness exceeds 2%, apply multiple imputation using chained
equations (MICE) conditioned on pre-period features.
5. INTERIM ANALYSIS SCHEDULE
- Interim evaluations set at t = 25%, 50%, and 75% total sample volume.
- Efficacy/Harm stopping rules evaluated strictly per O'Brien-Fleming
alpha-spending thresholds.
================================================================================
Structured Subgroup Heterogeneity Analysis
To evaluate heterogeneous treatment effects across City Tiers and Weather Conditions without inflating false discovery rates:
- Pre-Specify Subgroup Interaction Models: $$Y_{i,c} = \alpha + \beta_1 Z_{i,c} + \beta_2 \text{Tier}{c} + \beta_3 \text{Rain}{i,c} + \gamma_1 (Z_{i,c} \times \text{Tier}{c}) + \gamma_2 (Z{i,c} \times \text{Rain}{i,c}) + \varepsilon{i,c}$$
- False Discovery Rate (FDR) Control: Adjust $p$-values across all evaluated subgroup interaction coefficients ($\gamma_1, \gamma_2, \dots$) using the Benjamini-Hochberg (BH) procedure at target $q = 0.05$. Isolated subgroup claims are rejected unless their FDR-adjusted $q$-value satisfies $q < 0.05$.