Skip to content

Find your next idea

Evidence & method

Forward Versus Backward: A Rule Tested on Its Own Data Is Untested

In short

A rule discovered in a stretch of data and then judged on that same stretch has not been tested. The data already knows the answer, because it is what suggested the rule. The only evidence that can refute a rule is data that played no part in choosing it. In practice that means observing forward, from today, with the rule written down first.

Where this sitsStep 6of 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, a rule is tuned over the first sixty sessions and then carried forward, unchanged, into sixty sessions it has never seen. The line is the running result across both halves.

  2. What happens next

    Over the first sixty sessions the line climbs steadily and convincingly. At session 60 the data becomes new, and the line flattens and then drifts down.

  3. What it means — and does not

    The shape at the join is the signature to recognise. Nothing about the rule changed at session 60. Only the data changed, from the stretch that produced the rule to a stretch that did not. The first half was a description of that history. The second was the only actual test, and it disagreed.

A price line split at the point where the rule is fixed: built on old data, tested on new data.
  • Running result (arbitrary units)
  • Level · 0

Sixty sessions the rule was tuned on, then sixty it had never seen. The rule did not change at the join. Only the data did.

Show the underlying data
The numbers behind the chart above.
SessionsRunning result (arbitrary units)
00
1022
2041
3058
4079
5096
60118
70121
80112
90117
100104
11096
12089

What this does not establish

One stretch is itself a small sample. A flat second half is not proof of failure, any more than a rising first half was proof of success. The reading that must NOT be made is the common one: tuning the rule until the second half also improves. That reuses the out-of-sample data for selection. At that point it stops being out of sample, and there is nothing honest left to test against.

Things to check

4

Was the rule written down before the data used to judge it existed?

Did any of that data influence a threshold, a filter or a date range?

Has the rule been changed after seeing the out-of-sample result?

Remember: this example shows how a method works. It is not a claim about any strategy.

Common mistakes

2
  • Tuning against the out-of-sample stretch, which converts the only real test into more fitting.

  • Treating a strong in-sample curve as evidence, when it is a description of the data the rule was built from.

Check yourself

A rule performs poorly on the out-of-sample stretch, so its threshold is adjusted until that stretch improves. What has happened?

  • The rule has been validated on new data
  • The out-of-sample data has been used for selection, so there is nothing left to test against
  • Nothing has changed, since the rule is the same rule
Show the answer

B. The out-of-sample data has been used for selection, so there is nothing left to test against

Once data influences a choice it can no longer judge that choice. Adjusting against the held-out stretch converts the only genuine test back into fitting, and the next honest test needs data that has still never been seen.

Frequently asked

3
Is a backtest useless then?

It is useful for generating a hypothesis and for ruling things out. It is not evidence that a rule works, because the data that suggested the rule cannot also confirm it.

How long does forward observation need to run?

Long enough for the sample-size arithmetic to tell the result apart from the base rate. For a small effect that is usually much longer than people expect.

What if the forward result is disappointing?

Then the honest options are to keep observing or to drop the rule. Adjusting it against the forward data turns the test back into fitting and leaves nothing to check it with.

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.

Track complete: Is this pattern real?

Previous step: The Shuffle Test: Comparing a Result Against Nothing. A number on its own cannot be judged. The shuffle test builds something to judge it against. Take the same data, randomly break th…

Out-of-Sample Test

An out-of-sample test evaluates a rule on data that played no part in choosing it.

Read more