What constitutes a good baseline for a time-series or regression task?

Quick Overview

Asks what a sensible baseline looks like for a regression problem and for a time-series forecast, and how to compare a trained model against it. Tests understanding of loss-matched constant predictions, simple forecasting benchmarks, and evaluation splits that respect time order.

What constitutes a good baseline for a time-series or regression task?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

What constitutes a good baseline for a time-series or regression task? Describe the baselines you would set up before training a more complex model, and how you would evaluate a model against them. ```hint Match the constant to the metric Ask which single number minimizes the error metric you plan to report. ``` ```hint Respect time order For forecasting, think about the simplest prediction that uses only past values, and how you would split the data so the test period is always in the future. ``` ### What a Strong Answer Covers - Constant baselines for regression and which loss each constant minimizes - Simple structured baselines such as group means and linear or ridge regression - Naive and seasonal naive forecasts, plus simple smoothing or ARIMA models, for time series - Time-respecting evaluation with rolling or expanding backtests and no shuffling - A metric that compares the model to the naive forecast, such as MASE ### Follow-up Questions - A gradient boosted model beats the mean predictor by a wide margin but loses to seasonal naive. What do you conclude, and what do you try next? - How would you pick a baseline for a series with several seasonal cycles, such as hourly electricity demand? - How is MASE computed, and why does it behave better than MAPE when the series has values at or near zero? - How do you choose the forecast horizon and the number of folds in a rolling-origin backtest?

Overview: Asks what a sensible baseline looks like for a regression problem and for a time-series forecast, and how to compare a trained model against it. Tests understanding of loss-matched constant predictions, simple forecasting benchmarks, and evaluation splits that respect time order.

PracHub logo
General
Nov 25, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

What constitutes a good baseline for a time-series or regression task? Describe the baselines you would set up before training a more complex model, and how you would evaluate a model against them.

What a Strong Answer Covers Guidance

  • Constant baselines for regression and which loss each constant minimizes
  • Simple structured baselines such as group means and linear or ridge regression
  • Naive and seasonal naive forecasts, plus simple smoothing or ARIMA models, for time series
  • Time-respecting evaluation with rolling or expanding backtests and no shuffling
  • A metric that compares the model to the naive forecast, such as MASE

Follow-up Questions Guidance

  • A gradient boosted model beats the mean predictor by a wide margin but loses to seasonal naive. What do you conclude, and what do you try next?
  • How would you pick a baseline for a series with several seasonal cycles, such as hourly electricity demand?
  • How is MASE computed, and why does it behave better than MAPE when the series has values at or near zero?
  • How do you choose the forecast horizon and the number of folds in a rolling-origin backtest?