What is Walk-Forward Testing? — AI Glossary

What it is: Training a model on older data, then testing it only on newer data it has never seen.
Who it is for: Anyone judging whether a trading model or forecast actually generalises.
Best if: You want the strictest test available before trusting a model.
Skip if: You have not run a basic backtest yet. Start there. Want one practical AI workflow every morning? Subscribe to our free daily newsletter.

What is walk-forward testing?

You split your history by date. The model learns from the earlier period only, then you measure it on the later period, which it has never seen.

Testing on different stocks from the same years is not the same thing. Correlated companies in one decade share the same conditions, and a model can memorise those conditions.

Why is it the test that matters?

Every other check can be passed by a model that has simply memorised its own era. Walk-forward is the only one that asks whether the pattern survives into conditions the model was never shown.

It is also the test people skip, because it takes the most effort and it is the easiest to talk yourself out of once earlier results look good.

What failure looks like

Two symptoms. The model may stop firing, producing far fewer signals because new data no longer resembles what it learned. Or it keeps firing and loses, because the relationship it found was never real.

Consistent inputs across training windows are not proof of a working model. They show a measurement is informative, which is a separate question from whether the model can act on it.

Related terms

Learn more on Beginners in AI

Sources and further reading

Last reviewed: August 2026. AI terminology evolves quickly — verify specifics on the official source pages above.

Get Smarter About AI Every Morning

Free daily newsletter — one term, one tool, one tip. Plain English.

Free forever. Unsubscribe anytime.

You may also like

Two ways to go further

The AI Prompt Library

1,000+ ready-to-use prompts for Claude, ChatGPT, and Gemini. Stop staring at a blank box.

Get it for $39 →

2-Hour Live AI Crash Course

A private, beginner-friendly session across Claude, ChatGPT, Gemini, and the wider landscape.

Book for $125 →