Reducing Cold Deliveries: Experimentation & Metric Strategy
Statistics & ExperimentsModel answerLast updated
Establish metrics, select randomization strategy, account for non-compliance, and diagnose anomalies when assessing insulated bags for delivery drivers.
Scenario
Customer support logs for a delivery platform reveal that a significant share of negative reviews and refund requests stem from food arriving cold. To address this, the operations group suggests distributing high-grade thermal delivery bags to drivers.
As the data scientist leading this evaluation, you need to establish the measurement framework, choose the appropriate experiment design, manage non-compliance, and troubleshoot potential operational issues.
Questions
1. Metric Framework
- Primary Metric: Define a clear, objective main outcome metric to judge the success of the thermal bag deployment.
- Secondary & Mechanism Metrics: Describe intermediate metrics along the causal path between issuing equipment and customer thermal satisfaction.
- Guardrail Metrics: Specify logistics, marketplace, and operational health metrics that must remain uncompromised during the experiment.
2. Randomization Strategy & Marketplace Spillover
- Compare three prospective units of randomization: Customer, Driver, and Geographic Region (with Time-Based Switchback).
- Recommend the optimal assignment unit and defend your choice.
- Analyze how marketplace interference (spillover) impacts your selection and how you plan to control for it.
3. Non-Compliance & Causal Estimation
- Drivers provided with bags may not consistently use them on every eligible trip.
- How would you measure driver compliance?
- Explain the difference between comparing drivers who received the bag versus those who did not, and how you would calculate the true causal effect of physical bag usage.
4. Practical Diagnostics
Suppose the experiment is active, and during the second week, cold-food complaint rates surge across both treatment and control arms, with the treatment arm showing a slightly higher complaint rate than control.
- What internal operational variables, external macro conditions, and experimental artifacts would you investigate to pinpoint the root cause?
Hints
Hint 1
Limit your primary metric denominator to orders containing thermal-sensitive (hot) items to prevent signal dilution.
Hint 2
Consider physical state constraints: can a driver alter their equipment state on an hourly switchback schedule without carryover effects?
Hint 3
Think about how Instrumental Variables (IV) and the Exclusion Restriction apply when estimating the Local Average Treatment Effect (LATE).
Model answer
Easy Try it yourself first — then compare your approach, complexity and edge cases.
1. Metric Framework
Primary Metric
- Hot-Food Thermal Defect Rate: The percentage of delivered hot-food orders that result in a support contact, refund claim, or low item rating ($\le 3$ stars) citing temperature issues within 48 hours of fulfillment.
- Denominator: Completed orders containing at least one hot food item (excluding cold-only orders like ice cream, sushi, or cold beverages).
- Numerator: Unique hot-food orders with a verified cold-food ticket or low thermal sub-rating.
- Unit of Analysis: Computed per 1,000 orders and aggregated at the driver level to match the randomization unit.
Secondary & Mechanism Metrics
These trace the causal pipeline: $\text{Bag Issued} \rightarrow \text{Adherence} \rightarrow \text{Heat Loss Reduction} \rightarrow \text{Perceived Quality}$.
- Compliance Verification Rate: Percentage of eligible orders where bag usage is confirmed via pickup photo checks or driver confirmation toggles.
- Transit Exposure Time: Time elapsed between merchant pickup and final customer handoff.
- Thermal Sub-Rating: Mean score on explicit "Food Temperature" feedback prompts.
- Refund Cost per Order: Direct financial cost of thermal refunds amortized across all completed hot-food orders.
- Customer 30-Day Repeat Order Rate: Directional indicator of long-term customer retention.
Guardrail Metrics
Guardrails verify that forcing equipment handling does not hurt overall logistics:
- Merchant & Handoff Latency:
- Pickup Duration: Time added while drivers place items into thermal bags at the counter.
- Drop-Off Duration: Time added while retrieving items at the customer's door.
- Driver Platform Engagement:
- Driver Acceptance Rate & Active Hours: Monitoring if equipment enforcement leads to driver dissatisfaction.
- Earnings per Online Hour: Verifying driver throughput is unaffected.
- Side-Effect Quality Issues:
- Soggy / Condensation Complaints: Thermal bags trap steam, which can degrade texture for fried goods.
2. Randomization Strategy & Marketplace Spillover
| Randomization Unit | Pros | Cons | Decision |
|---|---|---|---|
| Customer | Maximum statistical power; clean unit independence. | Operationally unviable. Dispatch cannot dynamically mandate a driver equip/unequip physical bags per order without introducing severe friction. | Not Recommended |
| Driver | Maps directly to physical intervention; high statistical power; simple deployment. | Subject to local marketplace interference if treated drivers experience altered pickup times or order dispatch preference. | Recommended (with controls) |
| Geographic / Switchback | Eliminates local marketplace interference by isolating supply pools. | Extremely low power; high variance; physical habit carryover prevents drivers from "un-learning" bag usage during control windows. | Not Recommended (except as holdout) |
Recommendation
Select Driver-Level Randomization, stratified by:
- Operational market (city/metropolitan area)
- Driver tenure and baseline completion volume
- Primary transit mode (car, bicycle, scooter)
Managing Marketplace Interference
If using insulated bags adds 45 seconds to pickup handling, the dispatch system might pass urgent orders to control drivers in the same neighborhood. This distorts the order mix between groups.
Mitigations:
- Algorithmic Blinding: Strict requirement that the dispatch algorithm remains completely blind to treatment assignment so dispatch logic does not shift order profiles.
- Cluster-Robust Variance Estimation: Calculate standard errors clustered at the driver and geographic zone level.
- Macro-Level Geo Holdout: Run a parallel, small-scale regional holdout (e.g., 2 full treatment cities vs. 2 control cities) strictly to monitor macro marketplace metrics like system-wide unassigned rates and mean ETA accuracy.
3. Non-Compliance & Causal Estimation
Measuring Compliance
- Active Verification: Prompt random photo checks at pickup or require an in-app confirmation toggle before marking an order as picked up.
- Compliance Ratio: For each driver $i$, compute: $$\text{Compliance}_i = \frac{\text{Verified Bag Deliveries}_i}{\text{Total Eligible Hot Deliveries}_i}$$
Estimating Causal Effects (ITT vs. LATE)
-
Intention-to-Treat (ITT): Compares the outcome across all drivers assigned to receive the bag ($Z=1$) versus those assigned to control ($Z=0$), regardless of actual bag usage. $$\text{ITT} = E[Y \mid Z=1] - E[Y \mid Z=0]$$
- Business Impact: ITT measures the real-world policy impact of shipping equipment to drivers, incorporating natural operational drop-off.
-
Local Average Treatment Effect (LATE): To quantify the true physical effect of actually storing food in the bag ($D$), we use the randomized offer ($Z$) as an Instrumental Variable (IV) for actual usage ($D$).
$$\text{LATE} = \frac{E[Y \mid Z=1] - E[Y \mid Z=0]}{E[D \mid Z=1] - E[D \mid Z=0]} = \frac{\text{ITT}}{\text{First-Stage Compliance Rate Gap}}$$
Essential Instrumental Variable Assumptions:
- Instrument Strength (Relevance): Offering the bag ($Z$) strongly drives actual usage ($D$) (First-stage $F$-statistic $> 10$).
- Exclusion Restriction: Receiving the bag influences complaint rates strictly through using it during transit. (Violation risk: If a customer sees a driver carrying a branded thermal bag and rates the order higher regardless of temperature).
- Monotonicity: No drivers act as "defiers" (using a bag if assigned to control, but refusing if assigned to treatment).
Caution: Never perform an observational comparison of users vs. non-users inside the treatment arm. Drivers who voluntarily adopt equipment are systematically more diligent, which introduces selection bias.
4. Root-Cause Analysis Case Study
If complaints increase across both groups in Week 2, with Treatment performing slightly worse than Control, apply a structured diagnostic process:
+-----------------------------------+
| Spikes in Cold-Food Complaints |
+-----------------------------------+
|
+-------------------------------+-------------------------------+
| | |
[Data & Measurement] [Macro Environment] [Behavioral & Process]
- Sample Ratio Mismatch - Cold weather fronts - Steam retention (sogginess)
- UX changes (prominent - Traffic & delivery surges - Extended loading time
complaint buttons) - Restaurant prep delays - Driver usage fatigue
Step 1: Data Integrity & Experimental Artifacts
- Sample Ratio Mismatch (SRM): Run a chi-squared test on assignment counts to check for non-random attrition or logging failure.
- Support UX Alterations: Verify whether an app update made cold-food reporting easier or defaulted ticket categories to "Cold Food".
- Category Recategorization: Check if general quality complaints were reclassified as temperature issues in support logs.
Step 2: Systemic Operational & Macro Shocks
- Weather Factors: Check for cold snaps or heavy rain during Week 2, which decrease ambient temperatures and delay traffic platform-wide.
- Merchant Bottlenecks: Analyze kitchen wait times. If food sat on restaurant counters longer before pickup, heat loss occurred prior to driver arrival.
- Stacking & Batching Changes: Check if dispatch increased multi-order batching during Week 2, extending total transit time for secondary drop-offs.
Step 3: Treatment-Specific Degradation Drivers
- Steam Retention Side-Effects: Evaluate if customers are confusing "soggy" food with "cold" food. Sealed thermal bags retain moisture, making fried items damp.
- Handoff Delays: Check if unzipping and securing items at pickup/drop-off added delivery friction, negating thermal insulation benefits.
- Expectation Bias: Branded equipment can raise customer expectations, making buyers more critical of minor temperature drops.
- Compliance Fatigue: Plot daily compliance rates to check if drivers stopped closing or securing bags properly after the initial week.