Early access

Market Intelligence · Inside the Machine · Method Note · synthetic demonstration · no market data

How a time leak manufactures apparent skill

A forecasting mistake, measured in a world where the answer is known.

RetrospectiveAI-assisted editorial

SYNTHETIC — generated test worlds, not market data

We built a world where the direction of the next four hours cannot be predicted. A forecast there still beat a matched random baseline; no random repeat did as well (p = 0.005). Switching one rule, about which past cases it may consult, made that apparent skill disappear: p = 1.0.

The forecast is a common kind: find the past moments most like now, called neighbours, and use what happened after them.

What a time wall is

Every past case has an outcome window: the stretch whose result is forecast, here the next four hours (sixteen fifteen-minute bars).

A time wall decides which past cases a forecast may look at. The obvious rule admits any case that started earlier. But a case one bar earlier shares fifteen of the forecast’s sixteen outcome bars, which have not yet happened.

The stricter rule, a purged wall, admits a past case only if its outcome window closed at least a day before the forecast.

Diagram, SYNTHETIC illustration, not data: Two rules for which past cases a forecast may look at. Each case has an outcome window: the 16 bars after it. The loose rule only asks that a case start earlier. The purged rule asks that its outcome window has closed, plus a one-day gap.

Figure 1 (SYNTHETIC illustration of the two rules, not data).

How a loose wall can leak the answer

A case a bar or two earlier looks very like now, so a neighbour method picks it and can partly copy the answer. The test measures what switching the rule does to the result, not how often copying happened; that copying explains it is our inference.

The demonstration

We generated 75 days of fifteen-minute bars from a fixed random seed. Volatility shifts over time and by time of day; moves have fat tails. No drift was planted and moves are symmetric, so by construction direction cannot be predicted.

We took 2,000 test moments from the last third of the world, each with 50 nearest neighbours: 100,000 neighbour slots. The same method ran on the same moments behind each wall. The baseline swapped each neighbour for a random case of the same volatility level and hour of day, drawn from cases the purged wall admits, repeated 200 times.

Behind the loose wall (measured):

  • 67,238 of the 100,000 slots held a case whose outcome window had not closed at least one day before its test moment: the cases the purged wall refuses. How many shared outcome bars with the test moment itself is not counted.
  • The median neighbour sat 44 bars, about 11 hours, back.
  • On direction, the forecasts beat the baseline by 0.014 on the Brier score (a score for yes-or-no forecasts; lower is better). No random repeat did as well: p = 0.005, the smallest possible (p is one plus the repeats at least as good, over 201).

Behind the purged wall (measured):

  • 0 of the 100,000 slots held such a case. An independent check would have stopped the run on any.
  • The median neighbour sat 683 bars, about a week, back.
  • The forecasts scored 0.063 worse than the baseline, with p = 1.0: every random repeat did at least as well.

Bar charts, SYNTHETIC: The loose rule admits what the purged rule refuses. Neighbour slots that fail the purged rule, of 100,000: 67,238 under the loose wall, 0 under the purged wall. Median distance from neighbour to test moment: 44 bars (about 11 hours) under the loose wall, 683 bars (about 7.1 days) under the purged wall.

Figure 2 (SYNTHETIC): slots failing the purged rule, and median distance back.

A second forecast, the size of the four-hour range, moved the same way (p = 0.005, then p = 1.0). By our reading it is weaker evidence, since persistent volatility may make range partly predictable.

Bar charts, SYNTHETIC: Apparent skill under one rule only. Score difference versus the matched random baseline, below zero looks better. Direction (Brier score): -0.0140, p = 0.005, under the loose wall; +0.0628, p = 1.0, under the purged wall. Range (CRPS): -0.0109, p = 0.005, under the loose wall; +0.0112, p = 1.0, under the purged wall.

Figure 3 (SYNTHETIC): score difference from the baseline; below zero is better.

What is inferred. Only the wall changed, and direction has nothing to find, so by our reading the apparent skill came from what the loose wall let in. The run’s report agrees: “significant” skill made out of shared outcome bars.

A separate effect

The run’s report explains the purged forecasts’ worse score as a separate effect of this world: with a test moment on every bar, purged neighbours come in runs whose outcome windows overlap each other, so the forecast becomes overconfident. The record does not measure this. The purged run shows no apparent skill plus a separate penalty, not a clean zero.

Why we checked

As of the report on this run, a retrieval tool of ours admits any earlier case: the loose rule. We do not claim the stricter rule as new. Our test harness applies it, so far on generated worlds only. We have not measured whether any earlier result was affected.

Our own checklist, applied here

  • How many versions were tried before this one was shown? One world, one seed (the demonstration’s fixed default); whether other seeds were run beforehand is not recorded.
  • Were the rules, settings and pass marks fixed before the test was run? The rules and baseline are fixed in the harness code the record names; whether before the first run is not recorded.
  • What was the method compared with? The matched random baseline, 200 repeats; p is one plus the repeats at least as good, over 201.
  • Are the test cases really independent of each other? No. Moments on consecutive bars have overlapping outcome windows, so 2,000 moments are far fewer than 2,000 independent tests.
  • Would the author show you the record that could prove them wrong? Not yet. Measured numbers and test settings come from one hashed record; the world’s design (its length, the last third, the one-bar example) from the generator code; hours and days are our conversions. None of these is public yet.

What this does not show

  • One generated test world, not market data. The figures describe that world, not a general rate.
  • Nothing about real markets, any strategy, or whether any forecasting method works.
  • A measurement error and its correction: not a trading result, not advice.

The question to ask of any backtest: was everything this test consulted really known at the moment it was tested?

Illustration · not data

A fair test and a leaky test on the same timelineTwo rows share one timeline. On the left is what was known before the decision, in the middle the decision point, on the right what was learned afterwards. In the fair test, only what was known feeds the decision and the outcome is used afterwards only to grade it. In the leaky test, later information flows back into the decision, so the test can look skilful when it is not.KNOWN BEFORETHE DECISIONDECISIONLEARNEDAFTERWARDSA FAIR TESTWhat was knownThe outcome, usedonly to grade itA LEAKY TESTWhat was knownLater informationleaks back in
Illustration, not data. A fair test lets each decision use only what was known before it; the outcome is used afterwards, only to grade the decision. In a leaky test, information from after the decision slips back in, so the test can look skilful when the method has none.