Backtesting
Definition
Examination of a rule, strategy or forecasting method based on past data without incorporating future information into previous decisions.
In backtesting, a process is evaluated as if historical times were the present one after the other. For prognosis models, a rolling origin is often used: trained only with data that would have already been available at the time. Backtesting is particularly known from financial and time series applications.
Simply explained
You play the past step by step and check how your method would have cut back then, without looking into the future.
Why it matters in practice
Important for time-dependent models and rules. A clean backtest reduces data leakage but does not guarantee future performance.
Example from business
Example scenario: A sales forecast is recalculated each month with all data available until then and tested on the following month.
Limits and pitfalls
- Include future data in training or feature calculation; optimize parameters on the final test period; ignore transaction or operating costs; overlook structural changes.
Origin & history
In time series analysis, forecasts are often evaluated with a rolling historical origin. For each test time, only previously available data may be included in the training.
Use in mid-sized companies
- For forecasting, capacity planning or rule-based decisions, simulate timely data statuses and compare results over several time windows.
Frequently asked questions
Is backtesting the same as random cross-validation?
No.
Does a good backtest prove future success?
No.
Why must future information not be included?
Otherwise, historical performance is artificially improved.
Sources
- Forecasting: Principles and Practice – Time series cross-validation · Hyndman & Athanasopoulos, Forecasting: Principles and Practice – Time series cross-validation
Source check: 09.10.2026. Definition and documented classification verified; examples describe possible applications.
Editorially reviewed on: