Skip to content

Find your next idea

Evidence & method

The Shuffle Test: Comparing a Result Against Nothing

In short

A number on its own cannot be judged. The builds something to judge it against. Take the same data, randomly break the link between the rule and the outcomes, re-run it, and record the result. Do that a few hundred times and you have a picture of what this rule produces when it means nothing at all. If the real result sits comfortably inside that picture, the result IS nothing at all.

Where this sitsStep 5of 6 in Is this pattern real?
Things to check4Before you rely on it
Common mistakes2Named, with the reason

Read these first

2

How it unfolds, step by step

  1. The setup

    On this chart the same rule is re-run thirty times with the outcomes shuffled. Any relationship between the two has been destroyed on purpose. Each point is one shuffle's result.

  2. What happens next

    The shuffled results scatter between roughly 44% and 58%. That spread is what pure chance produces on this data, with this many observations. The dashed line is the real, unshuffled result: 57%.

  3. What it means — and does not

    The real result sits inside the noise. It is a perfectly respectable-looking 57%, and the shuffles reached 58% with no relationship present at all. The test has not proved the rule is worthless. It has shown that this evidence cannot tell the two apart. That is a different statement from a percentage on its own, and a much more useful one.

2 bars compare a result with the rule and without it, and only the small gap belongs to the rule.
  • Shuffled result (%)
  • The real result: 57% · 57

Thirty runs with the link between rule and outcome destroyed. The real result sits inside the scatter.

Show the underlying data
The numbers behind the chart above.
Shuffle numberShuffled result (%)
151.2
247.8
355.1
449.6
553.4
644.9
757.8
850.3
946.2
1052.7
1256.4
1448.1
1654
1845.7
2051.9
2258.2
2447.3
2653.1
2849
3055.6

What this does not establish

The test is only as good as what the shuffle destroys. Shuffling outcomes while leaving the time ordering intact keeps any drift in the underlying. A rule that is simply long a rising market can then beat that null while being nothing of the kind. The check is to ask what the shuffle preserved. A null that accidentally keeps the very effect being tested is the level at which this whole method quietly fails.

Things to check

4

What exactly does the shuffle break, and what does it leave intact?

How many shuffles? Enough to see the tail, not just the middle.

Where does the real result sit in that distribution?

Compare the observed result with the shuffled results before drawing a conclusion.

Common mistakes

2
  • Running a handful of shuffles and reading the middle, when the question is about the tail.

  • Building a null that preserves the effect under test, which makes any result look ordinary and is the mirror-image error.

Check yourself

A real result of 57% sits inside a shuffled spread that runs from 44% to 58%. What has the test shown?

  • That the rule is worthless
  • That the rule works, since 57% is above the average of the shuffled results
  • That this evidence cannot tell the rule apart from chance
Show the answer

C. That this evidence cannot tell the rule apart from chance

A null model says what the same analysis produces when nothing is going on. A result inside that spread has not been distinguished from nothing — which is a statement about the evidence, not a verdict that the rule is worthless.

Frequently asked

3
How many shuffles are enough?

Enough that the tail is filled in, not just the middle. Thirty is enough to draw. Several hundred to a few thousand is usual before a claim rests on where the real result sat.

What does it mean if the real result is outside the scatter?

That chance alone rarely produces it on this data, which is evidence and not proof. It still has to survive the search correction and confirmation on data it was not selected from.

Is this the same as a backtest?

No. A backtest asks what a rule would have produced. A shuffle test asks what the same rule produces when it cannot possibly be working, which is the comparison that makes the first number readable.

Where this comes from. This way of reading a chart is widely taught. It is not a rule from any circular, so there is no document to cite.

Read this next

Previous step: Search Enough Rules and One Will Fit by Chance. If you test forty rules against data with no signal in it at all, the best of the forty will still look good. Not because it works…

Null Model (Shuffle Test)

A null model is a deliberately meaningless version of the same analysis.

Read more