walkforward
Walkforward is a methodology used in time series modeling and trading to evaluate predictive models and strategies by advancing a time window through historical data. In finance, walk-forward optimization (often called walk-forward testing) involves repeatedly splitting data into an in-sample window used for calibration and an out-of-sample window used for evaluation, then shifting the window forward and re-optimizing. This approach aims to approximate how a strategy would perform when deployed in real time, by testing on data that was not available during the calibration stage.
Process and variants: At the start, one selects lengths for the in-sample and out-of-sample windows and a
Purpose and considerations: Walkforward seeks to mitigate overfitting by testing on unseen data and by simulating
Related concepts include rolling window, rolling-origin forecast, backtesting, and time-series cross-validation.