How a backtest works: data, benchmark, costs and the numbers that matter

What you will learn

  • Describe how a backtest replays rules without using future data.
  • Choose a fair benchmark and include realistic costs and slippage.
  • Calculate and interpret CAGR, the Sharpe ratio, maximum drawdown and exposure.
  • Explain why total return and price return give different answers.

Check your understanding

Answer each question to see the explanation. Answers are not saved.

  1. An account grows from $100,000 to $150,000 in 5 years. What is its CAGR?

    1. A 10.0%
    2. B 8.4%
    3. C 7.5%
    4. D 50.0%
    Show the answer

    Answer: B. CAGR = 1.5^(1/5) − 1 ≈ 8.4%. Dividing 50% by 5 years ignores compounding.

  2. A rule returned 7% a year with 10% volatility while Treasury bills paid 4%. What is its Sharpe ratio?

    1. A 0.70
    2. B 0.40
    3. C 0.30
    Show the answer

    Answer: C. (7 − 4) ÷ 10 = 0.30. Leaving out the risk-free rate would give 0.70 and flatter the rule.

  3. Equity moves 100 → 120 → 90 → 130 → 117. What is the maximum drawdown?

    1. A 10%
    2. B 30%
    3. C 25%
    4. D 7.7%
    Show the answer

    Answer: C. The largest fall from a peak is 120 to 90, or 25%. The later fall from 130 to 117 is only 10%.

  4. Costs are 10 basis points per side and a rule turns over its whole portfolio 30 times a year. Roughly what does trading cost each year?

    1. A About 0.3%
    2. B About 3%
    3. C About 6%
    4. D About 0.6%
    Show the answer

    Answer: C. A round trip costs 0.20%, and 30 round trips cost about 6% a year. Turnover multiplies small costs into a large drag.

  5. A rule picks trades from a fixed list of 50 stocks. Which benchmark is the fairest comparison?

    1. A Cash at zero interest
    2. B The same 50 stocks bought and held in equal weights
    3. C The single best-performing stock on the list over the same period
    Show the answer

    Answer: B. Holding the same stocks shares any bias in the list, so the comparison isolates what the rule adds. Cash is too easy a benchmark.

  6. A strategy’s returns include dividends but its benchmark is measured on price only. What is the effect?

    1. A None, because dividends are small
    2. B The benchmark is flattered
    3. C The strategy is flattered by roughly the dividend yield each year
    Show the answer

    Answer: C. Both sides must be measured the same way. For broad US indexes the gap has recently been about 1.5 to 2 percentage points a year, as large as many real edges.

Continue in Clear Tape

With a free account, your progress and quiz scores are saved, and you can practise with the question bank, keep a wrong-answer book and study real chart examples.