Trading the Breaking

Trading the Breaking

Quant Lectures

Backtesting - From classical statistics to modern quant methods

BACKTESTING SERIES - Volume III

Quant Beckman's avatar
Quant Beckman
Nov 30, 2026
∙ Paid

…


Before you begin, remember that you have an index with the newsletter content organized by clicking below.

INDEX


This is the latest compilation from the Quant Lectures section. The final one is drawn from articles in the Research section.

Where did the backtest’s profits come from?

The book’s momentum strategy buys recent winners. Of 12,000 stock-months, 560 ranked in the top fifth for both size and momentum, compared with about 458 expected if the rankings were independent. Whether those large stocks helped depends on their portfolio weights and how they performed after entry.

What’s inside

  1. Measure what stock selection added: Regress the portfolio’s excess returns on the market factor. Keep the dates fixed and add size, value and momentum. If alpha falls toward zero, those factors explain part of what first looked like stock-picking skill.

  2. Check the size of the hedge: When a sector tracks the index closely, two models can fit the same returns and still call for different futures positions. Drop a few dates and recalculate the hedge. Ridge regression shrinks the estimated exposures, while LASSO can set a factor’s weight to zero.

  3. Start the clock at the fill: Suppose a stock jumps overnight after a buy signal at the close. An order filled at the next open misses that gain. In the book’s five-trade example, a round-trip cost of $1.50 cuts average profit from $14 to $12.50.

  4. Match the measure to the decision: For a fund judged against an index, the information ratio measures average outperformance per unit of tracking error. If a desk picks the highest Sharpe ratio from 1,000 backtests, the Deflated Sharpe Ratio compares the winner with the best result expected by chance across the effective number of independent trials.

  5. Keep losing streaks together: Ten straight losses can force a desk to cut risk. Spread them among the same gains and the Sharpe ratio stays the same, even if the drawdown shrinks. The block bootstrap draws consecutive returns, so a bad week can recur intact if the blocks are long enough.

  6. Follow each training trade to its exit: Friday’s five-day trade is still open when testing starts on Monday. Its return uses test prices, so purge it from training. An embargo keeps new entries out of training for a time after the test, when a liquidity shock can still affect prices. Hold out different pairs of periods to see whether one selloff accounts for several poor scores.

  7. Carry the account through every refit: Ten years of monthly walk-forward tests give 120 out-of-sample segments. Choose each month’s settings using only outcomes known at the refit, then count each test day once. June’s closing balance funds July’s trades, even if the model changes.

Sample
605KB ∙ PDF file
Download
Download

This post is for paid subscribers

Already a paid subscriber? Sign in
© 2026 Quant Beckman · Publisher Privacy ∙ Publisher Terms
Substack · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for writing, podcasting, and media founders.