Skip to content
Statistical Arbitrage / Backtesting and Validation

Realistic Backtesting: Transaction Costs, Borrow, and Survivorship Bias

A strategy can pass every statistical test — PSR > 0.95, DSR > 0.95, CPCV-consistent — and still be unprofitable in live trading if the backtest ignored realistic implementation costs. The gap between a backtest Sharpe ratio and the live Sharpe ratio is almost always negative and is usually dominated by three sources: transaction costs (bid-ask spread, market impact), short-selling costs (borrow fees, availability constraints), and survivorship bias (the dataset omits stocks that went bankrupt or were delisted). Closing this gap is the job of realistic backtesting.
The research Programme has already set up the general machinery: Financing, Borrow and Transaction Costs for the cost ledger and its units, and Corporate Actions and Survivorship for delistings and adjusted prices. This note applies them to the book that is hardest on all three: a high-turnover, market-neutral portfolio in which every position has a short leg that must be borrowed and a partner leg that can be delisted. The realistic net-of-cost Sharpe is what the DSR should be computed on, not the pre-cost gross Sharpe.
Learning objectives. By the end of this note you should be able to:
  • estimate the round-trip transaction cost from bid-ask spread and market impact;
  • quantify the impact of borrow costs and availability constraints on a short book;
  • identify and correct survivorship bias in common data sources;
  • adjust a backtested gross Sharpe ratio for realistic costs;
  • rank the seven sins of backtesting by the damage they do to a stat-arb backtest;
  • simulate a pair as a unit, including the case where one leg is delisted or acquired.

In this lesson

    1. Transaction costs: spread and market impact
    1. Short-selling constraints
    1. Survivorship bias
    1. Adjusting gross SR for realistic costs
    1. The seven sins, ranked for stat-arb

Before you start

The full lesson, with worked examples and exercise solutions, is for members.

Read the full lesson

New to SelfMadeQuant.com? See membership options or browse the Statistical Arbitrage syllabus.