Backtest
A backtest is the process of applying a trading strategy or investment model to historical market data to simulate how it would have performed in the past, used to evaluate whether a strategy has merit before deploying real capital.
Backtesting is the primary tool by which quantitative researchers evaluate whether a systematic strategy would have worked historically. The process involves defining the rules of a strategy precisely enough to be implemented algorithmically — for example, buy the top decile of stocks by earnings yield, rebalance monthly, sell positions that drop out of the top decile — and then applying those rules to historical price and fundamental data to generate a simulated return series.
A well-constructed backtest accounts for the practical realities of trading. It should include realistic transaction cost estimates — commissions, bid-ask spreads, and market impact — since many gross-return strategies are unprofitable after costs. It should enforce look-ahead bias prevention, ensuring that no data is used in a decision that would not have been available at the time the decision is made. For example, annual earnings data should not be used until the filing date when it was publicly released, not the fiscal year-end date.
Survivorship bias is a pervasive backtest error. If a researcher backtests using only stocks that are currently in an index or database, they systematically exclude companies that failed or were delisted during the historical period. This exclusion inflates simulated returns because the worst outcomes are removed from the sample. A survivorship-bias-free database includes all companies that existed at each historical point, including those that subsequently went bankrupt.
Even a properly constructed backtest should be interpreted cautiously. Historical performance does not guarantee future results — market conditions change, factors decay, and competing strategies arbitrage away documented anomalies. Researchers use out-of-sample testing, walk-forward analysis, and Monte Carlo simulation to stress-test whether backtested performance is robust or fragile.