1. You are a Data Scientist at a food-delivery marketplace such as DoorDash or Uber Eats.
The full question
You are a Data Scientist at a food-delivery marketplace such as DoorDash or Uber Eats. Your team focuses on bike couriers in dense cities, where delivery outcomes depend heavily on geography, weather, merchant operations, courier supply, and customer demand.
Leadership asks: What should we optimize for, and how would you improve biker delivery performance?
Constraints & Assumptions
- Treat this as a three-sided marketplace problem involving customers, couriers, and merchants.
- Assume bike couriers operate in dense urban zones where hills, bridges, high-rise buildings, pedestrian areas, parking or locking constraints, and weather can meaningfully affect delivery time.
- Do not optimize a single metric in isolation if it creates safety, earnings, merchant, or customer-experience harm.
- You may propose product, operations, routing, dispatch, merchant-experience, or incentive changes, but each should be measurable.
- Focus on an analysis and experimentation plan that can handle confounding from weather, zone, time of day, demand shocks, and courier mix.
Clarifying Questions to Ask
- What is the business priority: customer reliability, courier earnings, marketplace efficiency, merchant quality, or a balanced portfolio?
- Are we trying to improve all bike deliveries or a specific segment such as downtown peak hours, bad weather, long pickup waits, or short-distance orders?
- What data do we already collect on courier location, route choice, pickup wait, merchant prep, weather, and customer promise times?
- Are there safety, compliance, or courier fairness constraints that limit incentives or routing recommendations?
- Can we randomize by courier, zone, merchant, or zone-time block?
Part 1 - Define the Objective
Propose a clear objective for "better" bike delivery. Explain what outcome you would optimize and why it is aligned with the marketplace.
Part 2 - Build the Metrics Framework
Define primary metrics, diagnostic metrics, and guardrails. Include formulas where helpful and cover customer, courier, merchant, and marketplace perspectives.
Part 3 - Identify Data, Features, and Risks
List the data and features needed to understand biker delivery performance, and call out data quality risks.
Part 4 - Propose Levers and Validation Plan
Suggest actionable ideas to test or roll out, then outline an experimentation or causal plan that can separate real impact from confounding.
Model answer
Part 1 - Define the Objective
Objective: Optimize for "Delivery Time Reliability" while ensuring safety and earnings for couriers.
Outcome to Optimize:
- Delivery Time Consistency: Aim to reduce the variance in delivery times across different conditions (e.g., weather, time of day, and urban geography).
Alignment with Marketplace:
- Enhancing delivery time reliability improves customer satisfaction, leading to repeat orders.
- Consistent delivery times can help merchants manage inventory and staffing better.
- Couriers benefit from predictable earnings through optimized routes and reduced idle time.
---
Part 2 - Build the Metrics Framework
Primary Metrics:
- Average Delivery Time (ADT): - Formula: \( \text{ADT} = \frac{\sum \text{Delivery Times}}{\text{Number of Deliveries}} \)
- Delivery Time Variance (DTV): - Formula: \( \text{DTV} = \frac{\sum (\text{Delivery Time} - \text{ADT})^2}{\text{Number of Deliveries}} \)
Diagnostic Metrics:
- On-Time Delivery Rate (OTDR): Percentage of deliveries completed within the promised time.
- Courier Earnings per Hour (CEPH): Measures the financial health of couriers.
Guardrails:
- Safety Incidents Rate: Track any increase in accidents or near-misses.
- Merchant Satisfaction Score: Ensure merchants are not negatively impacted by delivery changes.
---
Part 3 - Identify Data, Features, and Risks
Data Needed:
- Courier Data: Location, route choice, delivery times, and earnings.
- Merchant Data: Order preparation times, order volume, and customer ratings.
- Customer Data: Order history, delivery expectations, and satisfaction ratings.
- Environmental Data: Weather conditions, traffic patterns, and urban geography.
Features to Extract:
- Route Complexity: Number of intersections, hills, and pedestrian zones.
- Weather Conditions: Rain, snow, temperature, and wind speed.
- Time of Day: Peak vs. off-peak hours.
Data Quality Risks:
- Incomplete or inaccurate location data from couriers.
- Delays in weather data updates impacting real-time decision-making.
- Potential biases in customer ratings based on external factors.
---
Part 4 - Propose Levers and Validation Plan
Actionable Ideas:
- Dynamic Routing Adjustments: Use real-time weather and traffic data to adjust routes for couriers.
- Incentive Programs: Implement bonuses for couriers during peak demand times or adverse weather conditions.
- Merchant Training: Provide best practices for faster order preparation based on historical data.
Experimentation Plan:
- A/B Testing: Randomly assign couriers to either the new routing algorithm or the existing one to measure differences in delivery time and customer satisfaction.
- Causal Inference: Use regression analysis to control for confounding variables like weather and time of day, isolating the impact of changes made.
- Longitudinal Studies: Track performance over time to assess the sustainability of improvements and ensure no negative impacts on safety or earnings.
By implementing this structured approach, we can effectively optimize bike delivery performance while balancing the needs of customers, couriers, and merchants.