Day 157 — The null strategy test, and what your engine says about nothing
Sunday, 10 January 2027 · Week 23 of 52 · The research harness · Study day · 65 min
An engine with a subtle bias will give a random strategy a nonzero expected return, and running 200 of them is the cheapest way to find out whether yours does.
What you should be able to do tonight
- Report the mean and distribution of Sharpe for random strategies through your engine, and state what it should be.
- Say what a nonzero mean would imply about the engine rather than about the strategies.
Tasks 65 min
30 min Analyse last night’s 200 null runs: report the mean Sharpe with a standard error and test whether it differs from the small negative value that costs alone should produce. A mean above zero after costs means the engine has a bias, and the usual culprits are fill timing and the treatment of the first and last session.
25 min Turn it into a permanent test: assert the mean null Sharpe lies within an interval around the cost-implied value, with enough replications that the test is powered to catch a bias of the size that would matter. Record the runtime, since a slow test is one you will disable.
10 min Characterise the distribution too, since you will use it as the reference null for phase 6: report its standard deviation and the 95th percentile.
The running strategy
The null-strategy distribution is now a characterised property of the engine and a standing test. Phase 6 evaluates every signal against this distribution rather than against zero.
Resources
Deliverable
A null-strategy test in the suite with the distribution characterised, and the mean tested against the cost-implied value.
Checkpoint
Your 200 null strategies have a mean Sharpe of plus 0.15 after costs. What is wrong, and where would you look first?
Prepare for tomorrow
Ten minutes tonight so Day 158, Monday, 11 January 2027 starts clean. This is what the evening email sends you.
List the invariants your engine should satisfy for any strategy and any data. There are at least five.
The accounting identity is one. Non-negative absolute positions under a long-only constraint is another.
Write them as assertions, not as sentences.