What is the trade-off between an expanding window and a rolling window time-series split?

Quick Overview

Asks how expanding-window and rolling-window splits differ when backtesting a model on time-series data. Tests understanding of the bias-variance trade-off under drift, fold comparability, seasonality and how the validation scheme should match production retraining.

What is the trade-off between an expanding window and a rolling window time-series split?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

When you backtest a model on time-ordered data, each fold trains on data before a cutoff and tests on the period after it. What is the trade-off between an expanding window and a rolling window time-series split? ```hint Two things change with the window For each scheme, look at how many rows each fit gets and how old the oldest of them is. Then ask what happens to each when the underlying process shifts over time. ``` ### What a Strong Answer Covers - What each scheme trains on at every cutoff - The bias-variance trade-off and how stationarity of the process decides it - Effects on fold-to-fold comparability and on training cost - How to choose the scheme and the window length, tied to how the model is retrained in production ### Follow-up Questions - How would you tell from the backtest results that the process is drifting? - When do you need a gap between the training and test windows, and how long should it be? - Is there a middle ground between using all history and a hard cutoff on old data? - How do you pick the window length without overfitting the backtest?

Overview: Asks how expanding-window and rolling-window splits differ when backtesting a model on time-series data. Tests understanding of the bias-variance trade-off under drift, fold comparability, seasonality and how the validation scheme should match production retraining.

Nov 24, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

When you backtest a model on time-ordered data, each fold trains on data before a cutoff and tests on the period after it. What is the trade-off between an expanding window and a rolling window time-series split?

What a Strong Answer Covers Guidance

  • What each scheme trains on at every cutoff
  • The bias-variance trade-off and how stationarity of the process decides it
  • Effects on fold-to-fold comparability and on training cost
  • How to choose the scheme and the window length, tied to how the model is retrained in production

Follow-up Questions Guidance

  • How would you tell from the backtest results that the process is drifting?
  • When do you need a gap between the training and test windows, and how long should it be?
  • Is there a middle ground between using all history and a hard cutoff on old data?
  • How do you pick the window length without overfitting the backtest?