Build a time-series forecasting model

Quick Overview

Build a time-series forecasting model evaluates core ML concepts, assumptions, math intuition, training/evaluation trade-offs, and practical failure modes in a realistic interview setting. A strong answer states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.

Build a time-series forecasting model

Company: Jane Street

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: hard

Interview Round: Technical Screen

You are given a univariate or multivariate time-series dataset with timestamps and numeric targets. Predict the next H steps. Describe your preprocessing: resampling and alignment, timezone handling, missing-data imputation, outlier treatment, detrending/seasonality decomposition, and scaling. Propose at least two modeling approaches—one classical (e.g., ARIMA/ETS) and one deep learning (e.g., LSTM/TCN/Transformer)—and justify your choice of loss (MAE/RMSE/Huber/Quantile), multi-step strategy (recursive/direct/multi-output), and how to incorporate covariates such as holidays and known future features. Define a non-leaky evaluation protocol with walk-forward validation/backtesting and appropriate metrics (MAE, RMSE, sMAPE/MAPE, quantile loss for P50/P 90). Explain how you would detect concept drift and recalibrate or retrain. Provide concise pseudocode for training and inference.

Overview: Build a time-series forecasting model evaluates core ML concepts, assumptions, math intuition, training/evaluation trade-offs, and practical failure modes in a realistic interview setting. A strong answer states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.

|Home/Machine Learning/Jane Street
Jane Street logo
Jane Street
Aug 1, 2025
hardMachine Learning EngineerTechnical ScreenMachine Learning
61
0

Build a time-series forecasting model

Forecast the Next H Steps for Time Series

Context

You are given one or more time series with timestamps and numeric targets (e.g., demand, returns, sensor values). Your task is to forecast the next H time steps. Some covariates may be available, including both observed-past features and known-future features (e.g., holidays, schedules, prices).

Requirements

  1. Preprocessing
    • Resampling and alignment across all series and covariates
    • Timezone and DST handling
    • Missing-data imputation strategy (short vs. long gaps)
    • Outlier detection and treatment strategy
    • Detrending and seasonality decomposition
    • Scaling/normalization
  2. Modeling (propose at least two approaches)
    • One classical (e.g., ARIMA/SARIMAX/ETS)
    • One deep learning (e.g., LSTM/TCN/Transformer)
    • Justify: loss choice (MAE/RMSE/Huber/Quantile), multi-step strategy (recursive/direct/multi-output), and how to incorporate covariates (holidays, known-future features)
  3. Evaluation (non-leaky)
    • Walk-forward validation/backtesting protocol
    • Metrics: MAE, RMSE, sMAPE/MAPE, and quantile loss for P50/P90
  4. Monitoring and maintenance
    • How to detect concept drift
    • How to recalibrate or retrain
  5. Implementation
    • Provide concise pseudocode for training and inference

Clarifying Questions to Ask Guidance

  • Clarify the task, data shape, labels, constraints, and evaluation metric.
  • State assumptions behind the math or modeling technique you choose.
  • Connect theory to practical training, debugging, and deployment implications.

What a Strong Answer Covers Guidance

  • Correct definitions and formulas where the prompt requires them.
  • A practical explanation of how the method behaves on real data.
  • Trade-offs, failure modes, diagnostics, and mitigation strategies.
  • Evaluation choices that match the product or modeling objective.

Follow-up Questions Guidance

  • How would noisy labels, class imbalance, or distribution shift affect the answer?
  • What would you monitor after deployment?
  • Which baseline would you compare against first?
Loading comments...