Day 83 — The pairs backtest, with costs, in sample

Wednesday, 28 October 2026 · Week 12 of 52 · Time series · Study day · 60 min

The first strategy this year with two legs, a borrow cost and real turnover, and the first time the cost assumption is large enough to decide the answer.

What you should be able to do tonight

  • Report the strategy’s Sharpe before and after costs and state the turnover that separates them.
  • Say what round-trip cost would take the strategy to zero, and whether that number is realistic.

Tasks 60 min

35 min Run the backtest over the trading period with the pairs and hedge ratios fixed by the formation-period screen. Apply your cost assumption on every rebalance. Report gross Sharpe, net Sharpe, annual turnover and the cost drag in basis points a year.

25 min Find the break-even: sweep the round-trip cost from zero to 50 basis points and plot net Sharpe against it. Read off the cost at which the strategy stops working, and compare against what you would actually pay in a liquid US large cap. That single plot is more informative about the strategy than its Sharpe is.

The running strategy

The pairs strategy runs end to end with costs and produces a net Sharpe alongside a break-even cost curve. That curve becomes the standard chart for every strategy in the alpha book, because it says more than the headline number does.

Resources

Deliverable

notebooks/day-083-pairs-backtest.ipynb with gross and net Sharpe, turnover, and net Sharpe plotted against round-trip cost.

Checkpoint

Your strategy has a gross Sharpe of 1.4 and a net Sharpe of 0.3. What is the turnover, roughly, and what would you change first?

Prepare for tomorrow

Ten minutes tonight so Day 84, Thursday, 29 October 2026 starts clean. This is what the evening email sends you.

Reread the week’s notebooks and list what milestone 3 still needs. It will be the out-of-sample run, the synthetic-data false positive rate, and the Kalman comparison from week 14.

Check the arithmetic drill times.

Nothing to install.