Trading the Breaking

Trading the Breaking

Quant Lectures

Backtesting - Statistical Foundation

BACKTESTING SERIES - Volume I

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

…


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

INDEX


Hey guys! I want to get things organized and do a bit of tidying up around here. Since many of you have asked for the materials to be bundled together, I’ve decided that this week I’ll upload a compilation of several Quant Lectures series

What a profitable backtest can tell you

Suppose two strategies report a Sharpe ratio of 1.2. One earned its gains across several market cycles. The other held a dozen stocks that rose together in a single rally. Its trade log shows twelve winning positions, yet it tells you little about how the rule fares in a selloff. Would you give both strategies the same amount of capital?

What’s inside

  1. Define the trade before looking for a rebound: Specify how far the price must fall, over how many days, and when to exit. Count every qualifying drop, including those followed by further losses. If you tried several entry thresholds, test your choice on data you set aside.

  2. Rebuild what the trader knew that day: If a company published its March accounts in May, anyone ranking stocks by earnings in April still had to use the earlier filing. Reconstruct the stock list for that date, including firms that qualified then and later went bankrupt.

  3. Check the trade behind a suspicious price: One bad tick can create both the drop that triggers a buy and the rebound that makes it look profitable. Compare the suspect price with the original trades and quotes before correcting it. Deleting a genuine crash would make the strategy look safer than it was.

  4. Count the observations behind a forecast: In the book’s example, no stock in the cheapest fifth by price-to-book also ranked in the top fifth by return on equity in the same month. Predicting a return for that group means extrapolating from stocks with different characteristics.

  5. Ask where the apparent alpha comes from: If a strategy routinely buys recent winners, some of its gains may come from momentum. Adding a momentum factor to a market-only regression can lower the estimated alpha without changing a single trade.

  6. Put a range around the average return: In one example, the estimated annualized mean return is 12%, with a 95% confidence interval from 3% to 21%. If gains tend to follow gains, treating each day as independent can make the interval too narrow. Next year’s return can fall outside it.

  7. Measure the loss and the wait for recovery: The Python examples resample consecutive days in blocks so that losses from the same selloff can stay together. Measure the deepest fall on each path and how long the account stays below its previous peak. If the path ends 18 months into that drawdown, its full duration is still unknown.

Sample
665KB ∙ 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.