Why does out-of-bag error fail as an evaluation metric on time-series data?

Last updated 5 November 2026

  • Bootstrapping ignores time, so each OOB row is surrounded by correlated in-bag neighbors from past and future, letting trees interpolate it.

  • This adds look-ahead bias and ignores drift, so OOB is badly optimistic versus real forward forecasting (worsened by forests' inability to extrapolate).

  • Use chronological holdout or walk-forward validation (TimeSeriesSplit) with a gap between train and test windows.

  • http://abouthydrology.blogspot.com/2026/10/introduction-random-forest-for.html
  • https://talentme.airsota.com/tools/science-depth/M2-030
  • https://quantmemo.com/concepts/random-forest-out-of-bag-error
All Random Forests interview questions