Sellers of trading rules show how their rules would have performed. Investors typically put their money in the best performer, but cannot judge how far its figures are fitted to the past, since those who present them rarely report how many versions they tried [1]. This article asks how past results can overstate what rules earn, why they guarantee nothing, and which questions a buyer can ask any seller.

An investor who wants to trade by fixed rules compares sellers’ charts of past results without seeing how they were made. A seller may have tried many rules and kept the best chart, left out collapsed markets or fees, or used news that nobody had on the day. After paying, the investor earns what the rules earn, which can be far less than the chart showed.

To solve this issue, a buyer must be able to tell how much of a chart comes from the rules and how much from the way it was made. The chart must count every market and cost that a real account would have met, and use only what was known each day. The buyer must also have results that the seller could not adjust after seeing them.

In finance, such a chart is a backtest, a simulation of performance on historical market data. Data used to design a strategy is in-sample; data kept out of the design is out-of-sample. Overfitting is a design that fits particular observations instead of a general structure, and grows more likely with the number of versions tried [1]. Multiple testing is the trial of many versions of a strategy on the same data; each test adds a chance of a false positive, a result that looks real by luck. Survivorship bias arises when a sample contains only what still exists at its end, and look-ahead bias when a simulation uses information published after a decision’s date. Transaction costs are the fees, the gap between buying and selling prices, and the price movement each trade causes.

In these terms, a solution must state how likely a backtest is to be overfit, given the versions tried; be free of survivorship and look-ahead bias; be net of transaction costs; and hold out-of-sample on data that did not exist when the strategy was fixed. The literature measures the first as the probability that the version that did best in-sample falls below the median version out-of-sample [2], and the last as returns after publication [3].

A buyer can judge past results by how they were made: the versions tried, the markets kept, the costs counted and the information each decision used. Results recorded after the rules were fixed deserve more trust than a backtest, because nobody could adjust them to the outcome.

Assessing the risk of overfitting requires the number of versions tried; the more versions, the longer the data must be [1]. A database that includes failed assets and records when each figure became known is free of survivorship and look-ahead bias [4]; costs are deducted from every trade. An out-of-sample test is valid only if the designer neither used its data nor knew how markets behaved in it [2]; a record kept forward, on data not yet observed when the strategy was announced, meets that condition [1].

With 5 years of data, more than 45 independent versions of a strategy without skill almost surely include one with an in-sample Sharpe ratio of 1, a yearly return above the risk-free rate as large as its yearly standard deviation, the usual measure of how widely returns vary, and an expected out-of-sample ratio of zero [1]. With hundreds of factors tested to explain stock returns, a new one needs a t-statistic, the effect divided by its statistical uncertainty, above 3.0 rather than the usual 2.0 to count as statistically significant, more than luck [5]. For 97 published predictors of stock returns, their returns were 26% lower than in-sample after the original samples ended and 58% lower after publication, more so for those with higher in-sample returns [3].

Among surviving mutual funds, past performance can appear to predict future performance, strongly enough to explain the evidence for such predictability [6]. Portfolios chosen on company accounts earned significantly different returns in a standard database than in one free of look-ahead bias [4]. Transaction costs always reduce a strategy’s profit: among published stock-market strategies, most that replace under half of their holdings a month keep statistically significant returns after costs when built to limit costs; few that trade more do [7].

This evidence comes mostly from stocks and funds in past decades, not crypto markets. After publication, the 97 predictors kept on average 42% of their in-sample returns, and the authors attribute at most the 26% decline before publication to multiple testing [3]. A short out-of-sample period supports no conclusion with confidence [2], nor does a record kept forward in its first months; and only the seller knows how many versions were tried.

A backtest can overstate what rules earn when many versions are tried and the best is shown, when failed markets or costs are left out, or when decisions use later information. Published predictors of stock returns earned less after their samples ended, so past results guarantee nothing; their value depends on how they were made.

A buyer can ask how many versions of the rules were tried, over how many years, whether failed markets and all costs are included, whether each decision used only what was known on its day, and for how long results have been recorded since the rules were fixed.

How TradeHound records every order and fill on the user’s account: how TradeHound works.


References

  1. Bailey, D. H., Borwein, J. M., López de Prado, M. and Zhu, Q. J. (2014). Pseudo-mathematics and financial charlatanism: The effects of backtest overfitting on out-of-sample performance. Notices of the American Mathematical Society 61(5), 458–471. https://doi.org/10.1090/noti1105 (authors’ copy read)
  2. Bailey, D. H., Borwein, J. M., López de Prado, M. and Zhu, Q. J. (2017). The probability of backtest overfitting. The Journal of Computational Finance 20(4), 39–69. https://doi.org/10.21314/JCF.2016.322 (authors’ copy read)
  3. McLean, R. D. and Pontiff, J. (2016). Does academic research destroy stock return predictability? The Journal of Finance 71(1), 5–32. https://doi.org/10.1111/jofi.12365 (abstract read)
  4. Banz, R. W. and Breen, W. J. (1986). Sample-dependent results using accounting and market data: Some evidence. The Journal of Finance 41(4), 779–793. https://doi.org/10.1111/j.1540-6261.1986.tb04548.x (abstract read)
  5. Harvey, C. R., Liu, Y. and Zhu, H. (2016). … and the cross-section of expected returns. The Review of Financial Studies 29(1), 5–68. https://doi.org/10.1093/rfs/hhv059 (abstract read, and its 2014 working paper’s)
  6. Brown, S. J., Goetzmann, W. N., Ibbotson, R. G. and Ross, S. A. (1992). Survivorship bias in performance studies. The Review of Financial Studies 5(4), 553–580. https://doi.org/10.1093/rfs/5.4.553 (abstract read)
  7. Novy-Marx, R. and Velikov, M. (2016). A taxonomy of anomalies and their trading costs. The Review of Financial Studies 29(1), 104–147. https://doi.org/10.1093/rfs/hhv063 (abstract read)

Articles here are not investment advice and contain no trading signals. The risk disclosure applies to any use of TradeHound.