PracHub
QuestionsPremiumLearningGuidesCheatsheetNEW
|Home/Machine Learning/Shopify

Build model to predict package delivery time

Last updated: Mar 29, 2026

Quick Overview

This question evaluates a candidate's competence in end-to-end machine learning system design for time-to-event forecasting, covering prediction target definition and timing, feature engineering and model selection, handling missing or delayed signals and data leakage, uncertainty quantification, and production monitoring and retraining.

  • medium
  • Shopify
  • Machine Learning
  • Machine Learning Engineer

Build model to predict package delivery time

Company: Shopify

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Onsite

You are building an ML model to predict package delivery time (ETA) for shipments. Given historical shipping data (order created time, origin/destination, carrier/service level, scan events, weather, traffic, holiday seasonality, etc.), propose an approach to: - Define the prediction target and when the prediction is made (e.g., at label creation vs after pickup vs in-transit). - Choose model type(s) and features. - Handle missing/late scan events and data leakage. - Evaluate the model offline and online. - Provide calibrated uncertainty (prediction intervals) and how you would use it in product. - Monitor and retrain the model in production.

Quick Answer: This question evaluates a candidate's competence in end-to-end machine learning system design for time-to-event forecasting, covering prediction target definition and timing, feature engineering and model selection, handling missing or delayed signals and data leakage, uncertainty quantification, and production monitoring and retraining.

Related Interview Questions

  • Model Product Ranking - Shopify (medium)
  • Build a fraud detection model - Shopify (medium)
Shopify logo
Shopify
Feb 18, 2026, 12:00 AM
Machine Learning Engineer
Onsite
Machine Learning
10
0

You are building an ML model to predict package delivery time (ETA) for shipments.

Given historical shipping data (order created time, origin/destination, carrier/service level, scan events, weather, traffic, holiday seasonality, etc.), propose an approach to:

  • Define the prediction target and when the prediction is made (e.g., at label creation vs after pickup vs in-transit).
  • Choose model type(s) and features.
  • Handle missing/late scan events and data leakage.
  • Evaluate the model offline and online.
  • Provide calibrated uncertainty (prediction intervals) and how you would use it in product.
  • Monitor and retrain the model in production.

Solution

Show

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More Machine Learning•More Shopify•More Machine Learning Engineer•Shopify Machine Learning Engineer•Shopify Machine Learning•Machine Learning Engineer Machine Learning
PracHub

Master your tech interviews with 7,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.