Day 59 — Permuting a strategy: what exactly do you shuffle

Sunday, 4 October 2026 · Week 9 of 52 · Returns and noise · Study day · 60 min

A permutation test is the cleanest null available for a trading rule, and it is only as good as the choice of what gets permuted, which is where most implementations go wrong.

What you should be able to do tonight

  • Name three distinct permutation schemes for a strategy test and say which alternative hypothesis each one tests against.
  • Run one and report the p-value of your own signal against it.

Tasks 60 min

25 min Enumerate the schemes and what each preserves: permute the signal while keeping returns fixed, permute returns while keeping the signal fixed, permute the mapping between signal and forward return within time blocks, and circularly shift the signal. Write down for each what structure survives the permutation and therefore what the test is powered against.

35 min Implement the block-preserving version and run it: 5,000 permutations of your signal against the same return series, reporting the p-value of the observed Sharpe. Then run a signal you know is worthless as a control and confirm the p-value distribution is roughly uniform.

Resources

Deliverable

notebooks/day-059-permutation.ipynb with a permutation p-value for one real signal and a uniformity check on a null signal.

Checkpoint

You permute the signal but not the returns. What alternative is that test powered against, and what does it fail to detect?

Prepare for tomorrow

Ten minutes tonight so Day 60, Monday, 5 October 2026 starts clean. This is what the evening email sends you.

Reread your day 42 stylized-facts figure. Tomorrow you build a simulator that has to reproduce all six panels.

List the six facts as six acceptance criteria, each with the number your data gave.

Decide which two of the six a simple Gaussian random walk already fails.