Page 1 of 1

The Wald-Wolfowitz runs test: checking whether your wins and losses really come in streaks

Posted: Tue Nov 24, 2026 9:06 am
by Shadow Trader
A lot of trading rules are built on the feeling that results come in streaks. "After three losses, stop for the day." "When it's going well, size up." Some of those rules are sensible risk control, but some of them assume something that can actually be checked: that a loss makes another loss more likely. The Wald-Wolfowitz runs test is one of the simplest ways to check it.

A run is an unbroken stretch of the same outcome. The sequence W W L W L L L W has five runs. If wins and losses were independent, you can work out how many runs you would expect. With n1 wins, n2 losses and n = n1 + n2 trades, the expected number of runs is 2·n1·n2/n + 1. The variance is 2·n1·n2·(2·n1·n2 − n) divided by n²·(n − 1). Take the actual runs, subtract the expected, divide by the square root of the variance, and you get a z-score.

Fewer runs than expected (a clearly negative z) means outcomes clump together, which is what a streaky system looks like. More runs than expected means wins and losses alternate more than chance, which is less common but does happen with some mean-reversion setups. A z near zero means the streaks you remember are about what a coin would produce.

Two things worth keeping in mind. The test only looks at the order of wins and losses, not their size, so a system can pass it and still have clustered big losses. And it needs a decent sample; with thirty trades the result is mostly noise.

If the test says your results are independent, rules like "stop after three losses" are still fine as a way to protect your head, but they are not improving the edge. Has anyone here run this on a real trade log and found genuine clustering?