← DoorDash Interview Insights

DoorDash·Data Scientist·Take-home Assignment·Senior

Senior
May 2026

Summary

Take-home assignment for a Data Scientist role at DoorDash centered entirely on building a delivery ETA prediction system. Seven distinct deliverables covering everything from feature engineering to production deployment. The scope was pretty intense for a single assignment.

Questions Asked (7)

Q1

Define the prediction target precisely and enumerate at least 10 features spanning demand, supply, and network signals for a delivery ETA model.

Product Analytics & MetricsData Modeling
Author's notes

The target definition part felt obvious until I actually wrote it out and realized I needed to be careful about what timestamp to anchor on.

Create a free account to read the full note

AI HintsAI Generated

Suggested Approach

Start by precisely defining the prediction target, specifying the exact time point and event being predicted, and clarify the unit of analysis (e.g., per delivery). Then, systematically enumerate features across demand, supply, and network signals, ensuring each feature is actionable and relevant to ETA prediction. Conclude by briefly explaining how these features might be engineered and their potential impact on model performance.

Pro tip: Emphasize that the target should be defined from the customer's perspective (e.g., time from order placement to delivery) and that features must be available at prediction time to avoid data leakage. Mentioning real-time vs. historical feature availability shows practical maturity.

1. Define the prediction target

Specify the exact event and time horizon: e.g., predicted delivery time (timestamp) or remaining time from order placement to delivery. Clarify if it's per order, per dasher, or per delivery segment.

2. Identify demand signals

List features related to order volume, timing, and customer behavior, such as order timestamp, day of week, historical order volume in area, and order complexity (e.g., number of items).

3. Identify supply signals

List features related to dasher availability and performance, such as number of active dashers nearby, dasher historical speed, current dasher workload, and dasher acceptance rate.

4. Identify network signals

List features related to the delivery network and environment, such as distance between restaurant and customer, estimated preparation time, traffic conditions, weather, and road network complexity.

5. Ensure feature availability and engineering

Confirm all features are available at prediction time (no leakage) and discuss potential transformations (e.g., rolling averages, time since last order) to enhance predictive power.

Key Points to Mention

  • Precise target definition: e.g., 'time from order placement to delivery' or 'estimated arrival timestamp'
  • Demand features: order timestamp, historical order volume, order size, customer location density
  • Supply features: number of active dashers, dasher speed, dasher workload, acceptance rate
  • Network features: distance, estimated prep time, traffic, weather, road conditions
  • Feature availability at prediction time to avoid data leakage
  • Potential feature engineering: rolling averages, time-based aggregations, interaction terms

AI-generated suggestions, not part of the candidate's original notes. May be inaccurate — verify before relying on them.

Q2

Identify leakage sources in a delivery ETA dataset and design a time-based cross-validation strategy with explicit train, validation, and test splits.

Data ModelingTechnical Trade-offs
Author's notes

Leakage is the kind of thing where you nod along and then miss something obvious.

Create a free account to read the full note

AI HintsAI Generated

Suggested Approach

Start by systematically identifying leakage sources in the ETA dataset, focusing on features that would not be available at prediction time or that encode future information. Then, design a time-based cross-validation strategy that respects temporal order, with explicit train, validation, and test splits that mimic production deployment. Emphasize the importance of preventing leakage to ensure model generalizability and discuss trade-offs between different splitting approaches.

Pro tip: Mention that leakage can also occur through data preprocessing steps like target encoding or imputation if done before splitting; always fit these on the training set only. Additionally, highlight that for DoorDash, delivery ETAs are often predicted at order placement, so any post-placement data (e.g., actual delivery time, courier reassignments) must be excluded.

1. Identify potential leakage sources

Examine all features and labels for temporal leakage, such as using future data (e.g., actual delivery duration) or features computed after the prediction time (e.g., courier location after assignment). Also check for leakage in data preprocessing and feature engineering.

2. Define prediction time and available data

Clearly specify the moment when the ETA prediction is made (e.g., at order placement) and list all data that would be available at that time. This sets the boundary for legitimate features.

3. Design time-based splits

Split the data chronologically into train, validation, and test sets. For example, use the earliest 70% for training, the next 15% for validation, and the most recent 15% for testing. Ensure no shuffling and that splits are contiguous in time.

4. Implement time-series cross-validation

For hyperparameter tuning, use rolling or expanding window cross-validation on the training set, always validating on future data. This mimics retraining and deployment cycles.

5. Validate and monitor for leakage

After training, check for suspiciously high performance and compare validation metrics to test metrics. If validation performance is much higher, it may indicate leakage. Also, simulate production by ensuring all preprocessing is fit only on training data.

Key Points to Mention

  • Temporal leakage: using future information not available at prediction time.
  • Target leakage: features that are proxies for the target (e.g., actual delivery time).
  • Data preprocessing leakage: fitting encoders, imputers, or scalers on the full dataset before splitting.
  • Time-based splitting: train on past, validate on future, test on most recent data to mimic production.
  • Rolling/expanding window cross-validation for time series.
  • Trade-offs: random splits overestimate performance; time-based splits may reduce training data but better reflect real-world.

AI-generated suggestions, not part of the candidate's original notes. May be inaccurate — verify before relying on them.

Q3

Compare gradient boosting models against quantile regression approaches for P50 and P90 ETA estimation, and justify your choice of loss function.

Technical Trade-offsData Modeling
Author's notes

I knew pinball loss for quantile regression but fumbled explaining why you'd pick Huber over MAE in plain terms.

Create a free account to read the full note

AI HintsAI Generated

Suggested Approach

Start by framing the problem: P50 and P90 ETA estimation require different modeling considerations. Compare gradient boosting (e.g., LightGBM with quantile loss) and quantile regression (linear or regularized) in terms of flexibility, interpretability, and performance. Justify your choice based on business needs, data characteristics, and evaluation metrics.

Pro tip: Emphasize that quantile regression directly models the conditional quantile, while gradient boosting with quantile loss can capture complex nonlinear relationships. Mention that for P90, the asymmetric loss and tail behavior matter more, so gradient boosting often wins, but quantile regression is a strong baseline and more interpretable.

1. Clarify the problem and requirements

Discuss the need for P50 (median) and P90 (90th percentile) ETA estimates, and how they are used (e.g., customer promises, driver incentives). Highlight that P90 requires modeling the tail, which is more challenging.

2. Compare model families

Contrast gradient boosting (e.g., LightGBM, XGBoost) with quantile regression. For gradient boosting, specify using quantile loss (pinball loss) to directly optimize the desired quantile. For quantile regression, mention linear models with L1 or L2 regularization, possibly with splines or interactions.

3. Evaluate trade-offs

Discuss flexibility vs. interpretability, training time, scalability, and performance on large datasets. Gradient boosting can capture nonlinearities and interactions but may overfit and is less interpretable. Quantile regression is simpler, faster, and more interpretable but may underfit complex patterns.

4. Choose loss function and justify

Explain that the pinball loss (quantile loss) is appropriate for both approaches when targeting specific quantiles. For P50, it reduces to MAE; for P90, it penalizes underestimation more. Justify based on asymmetric costs: underestimating ETA may be worse than overestimating for customer satisfaction.

5. Recommend and validate

Recommend gradient boosting with quantile loss for its flexibility and ability to model complex patterns, but suggest starting with quantile regression as a baseline. Emphasize validation using pinball loss and calibration plots, and consider business metrics like late delivery rate.

Key Points to Mention

  • Pinball (quantile) loss for direct quantile estimation
  • Gradient boosting's ability to capture nonlinearities and interactions
  • Quantile regression's interpretability and speed
  • Asymmetric cost of errors: underestimation vs. overestimation for P90
  • Evaluation metrics: pinball loss, calibration, and business KPIs
  • Scalability and training time considerations for large-scale ETA data

AI-generated suggestions, not part of the candidate's original notes. May be inaccurate — verify before relying on them.

Q4

Define the evaluation metrics for an ETA prediction model and explain how you would construct calibration plots and compute calibration error.

Product Analytics & MetricsA/B Testing & Experimentation
Author's notes

MAE and median AE are easy to rattle off.

Create a free account to read the full note

AI HintsAI Generated

Suggested Approach

Start by framing ETA prediction as a regression problem where both accuracy and calibration matter for user trust and operational decisions. Then define metrics that capture overall error, tail performance, and calibration, and explain how to construct calibration plots and compute calibration error with binning or smooth methods. Emphasize the business impact of miscalibration, such as underestimating delivery times leading to customer dissatisfaction.

Pro tip: Highlight that calibration should be evaluated conditionally on important segments (e.g., time of day, restaurant type, distance) because aggregate calibration can hide systematic biases that affect specific user groups. Also, mention that for ETA, asymmetric costs mean that over-prediction vs under-prediction may have different business impacts, so calibration alone isn't enough—consider decision-aware metrics.

1. Define evaluation metrics for ETA prediction

Cover standard regression metrics like MAE, RMSE, and MAPE, but also include quantile losses (e.g., pinball loss) to assess performance across the distribution. Discuss business-specific metrics such as on-time delivery rate or percentage of predictions within a tolerance window.

2. Explain calibration for regression

Define calibration for ETA as the conditional mean of actual delivery times given predicted ETA being equal to the predicted value. Discuss that perfect calibration means predicted ETAs match observed frequencies across the range.

3. Construct calibration plots

Describe binning predictions into quantiles or equal-width bins, then plot the mean predicted ETA against the mean actual ETA for each bin. Include a diagonal reference line; deviations indicate miscalibration. Mention alternatives like smooth calibration curves using loess or isotonic regression.

4. Compute calibration error

Explain metrics like Expected Calibration Error (ECE) or Mean Absolute Calibration Error (MACE) by taking a weighted average of the absolute differences between mean predicted and mean actual within bins. Discuss the impact of binning choices and potential biases.

5. Address business implications and segment analysis

Emphasize that calibration should be checked across segments (e.g., peak vs off-peak, cuisine type) to ensure fairness and reliability. Discuss how miscalibration affects customer trust and operational efficiency, and suggest monitoring calibration over time.

Key Points to Mention

  • MAE, RMSE, and quantile loss for overall accuracy and tail performance
  • Calibration definition: E[Y | Ŷ] = Ŷ for regression
  • Binning methods for calibration plots: equal-width vs equal-frequency bins
  • Expected Calibration Error (ECE) and its limitations (bin sensitivity)
  • Segment-wise calibration to detect biases across subpopulations
  • Business impact: under-prediction vs over-prediction costs and decision thresholds

AI-generated suggestions, not part of the candidate's original notes. May be inaccurate — verify before relying on them.

Q5

How does ETA prediction error translate into business costs, and how would you design a cost-sensitive objective or post-hoc threshold to minimize expected cost under asymmetric penalties?

Product StrategyTechnical Trade-offsProduct Analytics & Metrics
Author's notes

This was the part I found most interesting.

Create a free account to read the full note

AI HintsAI Generated

Suggested Approach

Start by mapping ETA prediction errors to concrete business costs like late deliveries, customer compensation, and courier inefficiencies. Then propose a cost-sensitive objective that directly minimizes expected asymmetric costs, and discuss post-hoc threshold adjustments to balance over- and under-prediction penalties. Emphasize validation with business metrics and iterative refinement.

Pro tip: Quantify the asymmetry: a 5-minute late ETA often costs far more than a 5-minute early ETA, so weight errors accordingly. Also, consider that post-hoc thresholds can be tuned per market or time-of-day to adapt to varying cost structures.

1. Map ETA errors to business costs

Identify how early vs. late ETA errors impact key metrics such as customer satisfaction, refunds, courier wait time, and support contacts. Assign monetary values to each to quantify asymmetric penalties.

2. Define a cost-sensitive objective

Formulate a loss function that weights errors by their business cost, e.g., asymmetric squared error or quantile loss. Train models to minimize this expected cost directly.

3. Optimize post-hoc thresholds

After model training, adjust prediction thresholds (e.g., add a buffer) to minimize expected cost on a validation set, accounting for the asymmetry.

4. Validate with business metrics

Simulate or A/B test the cost-sensitive model against the current system, measuring impact on delivery times, refunds, and customer ratings.

5. Iterate and monitor

Continuously monitor cost parameters and model performance, retraining as business conditions change to maintain optimal cost balance.

Key Points to Mention

  • Asymmetric cost structure: late errors typically cost more than early errors.
  • Cost-sensitive loss functions: weighted MSE, quantile loss, or custom loss.
  • Post-hoc threshold tuning: adding a buffer or adjusting predictions to minimize expected cost.
  • Business metrics: customer satisfaction, refunds, courier utilization, support contacts.
  • Trade-off between model complexity and interpretability for stakeholder buy-in.
  • Continuous monitoring and adaptation to changing cost dynamics.

AI-generated suggestions, not part of the candidate's original notes. May be inaccurate — verify before relying on them.

Q6

How would you use SHAP or permutation importance to audit an ETA model for bias across neighborhoods or vehicle types, and what mitigations would you apply?

Product Analytics & MetricsTechnical Trade-offs
Author's notes

SHAP auditing I've done before so this felt comfortable.

Create a free account to read the full note

AI HintsAI Generated

Suggested Approach

Start by framing the audit as a fairness evaluation of the ETA model across protected groups (neighborhoods, vehicle types). Then explain how you'd use SHAP or permutation importance to identify biased features and quantify their impact, and finally propose mitigations like reweighting, feature removal, or post-processing calibration.

Pro tip: Emphasize that bias audits should be continuous and tied to business metrics like delivery time accuracy and customer satisfaction, not just statistical parity. Also, mention that SHAP values can reveal proxy features (e.g., neighborhood as a proxy for race) that permutation importance might miss due to correlations.

1. Define fairness metrics and groups

Identify the groups to audit (e.g., neighborhoods by demographic composition, vehicle types) and choose fairness metrics such as disparate impact, equal opportunity, or predictive parity. Align these with DoorDash's business goals.

2. Compute feature importance globally and locally

Use SHAP to get global and local feature importance, and permutation importance to validate. Compare importance across groups to detect if certain features (e.g., neighborhood) disproportionately affect predictions for specific groups.

3. Analyze bias patterns and root causes

Investigate whether biased features are legitimate (e.g., distance) or proxies for protected attributes. Use SHAP dependence plots and interaction effects to understand how features like vehicle type interact with neighborhood to produce bias.

4. Apply mitigations

Choose mitigations based on bias source: pre-processing (reweighting, resampling), in-processing (fairness constraints, adversarial debiasing), or post-processing (calibrating predictions per group). Consider trade-offs with model accuracy and business metrics.

5. Monitor and iterate

Set up continuous monitoring of fairness metrics and feature importance drift. A/B test mitigations to ensure they reduce bias without harming user experience, and iterate as needed.

Key Points to Mention

  • SHAP values provide consistent, locally accurate feature attributions and can handle interactions, while permutation importance is model-agnostic but can be misleading with correlated features.
  • Bias can be measured via disparate impact ratio, equalized odds, or calibration across groups; choose metrics aligned with business and ethical goals.
  • Proxy features (e.g., neighborhood as a proxy for race) can introduce bias even if protected attributes are excluded; SHAP can help detect them.
  • Mitigations include reweighting training data, removing or transforming biased features, adding fairness constraints, or post-processing predictions to equalize outcomes.
  • Trade-offs exist between fairness and accuracy; quantify the impact on ETA accuracy and business KPIs like delivery time and customer satisfaction.
  • Continuous monitoring and stakeholder involvement are crucial to ensure fairness is maintained over time and across geographies.

AI-generated suggestions, not part of the candidate's original notes. May be inaccurate — verify before relying on them.

Q7

Design the production infrastructure for a real-time ETA model including feature store, inference latency requirements, retraining cadence, drift detection, and an online experiment plan.

System DesignA/B Testing & Experimentation
Author's notes

System design questions for ML always feel like they could go on forever.

Create a free account to read the full note

AI HintsAI Generated

Suggested Approach

Start by clarifying the business context and requirements, then walk through the end-to-end system design covering data flow, model serving, and monitoring. Emphasize trade-offs and how you would validate the system through online experiments.

Pro tip: Demonstrate awareness of the cold-start problem for new restaurants and the importance of fallback strategies to maintain user experience. Also, highlight how you would measure business impact beyond model metrics.

1. Clarify Requirements and Constraints

Ask questions to understand scale (e.g., QPS, number of restaurants), latency SLAs, data freshness needs, and business goals. This ensures your design is tailored to DoorDash's specific context.

2. Design the Feature Store and Data Pipeline

Outline how features are computed, stored, and served. Distinguish between batch and streaming features, and explain how you ensure low-latency access and consistency between training and serving.

3. Define Model Serving and Inference Architecture

Describe how the model is deployed for real-time inference, including latency requirements, scaling, and fallback mechanisms. Mention techniques like model quantization or caching to meet SLAs.

4. Establish Retraining and Drift Detection

Explain the retraining cadence (e.g., daily/weekly) and how you monitor for data drift, concept drift, and performance degradation. Include automated alerts and retraining triggers.

5. Plan Online Experiments and Rollout

Detail how you would A/B test the model, including metrics (e.g., ETA accuracy, delivery time, user engagement), experiment duration, and guardrail metrics. Discuss phased rollout and monitoring.

Key Points to Mention

  • Feature store: use of a unified feature store (e.g., Feast, Tecton) to avoid training-serving skew and enable feature reuse.
  • Inference latency: target p99 latency (e.g., <100ms) and techniques like model distillation, caching, and asynchronous pre-computation.
  • Retraining cadence: balance between freshness and cost; consider incremental training and automated pipelines.
  • Drift detection: monitor feature distributions (PSI, KL divergence) and model performance; set up alerts and automated retraining.
  • Online experiment plan: define primary and guardrail metrics, use of switchback or cluster randomization if needed, and sequential testing.
  • Fallback strategies: for new restaurants or low-confidence predictions, use heuristics or global averages to maintain UX.

AI-generated suggestions, not part of the candidate's original notes. May be inaccurate — verify before relying on them.