Backtesting: Testing a Forecast Against Historical Data Before Relying on It

On this page

Have your forecasts been tested using your own data?

Let's plan an exchangeDiscover our sales forecasting software
Definition

A backtest involves replaying the past: the model forecasts a period for which the results are already known, using only the data available at the time, and the results are then compared to actual outcomes. In pricing, this is the evidence you should seek before relying on a sales forecast or a price simulation.

The Essentials

  • A backtest uses the model to predict a past period without providing it with any information after the simulated date.
  • It validates the ability to forecast, not the effect of a price that has never been charged.
  • It applies only to your data, at your scale, and in comparison with a reference method.

In 6 Questions

What?

A test about the past—the result of which we already know.

Who is it for?

Data scientists, pricing managers, software buyers.

When?

Before a deployment, and then with each model update.

Where?

Your sales, pricing, and promotional history.

Why?

Assess reliability before making a decision based on the model.

How?

By making a forecast for a past date and then comparing it to the actual results.

How does a backtest work?

The principle is simple: put yourself back in the past and act as if the future were unknown.

StepWhat We DoPoint to Watch For
1. Set a dateChoose a past date as a fictional "today"Everything that comes after is hidden from the model
2. TrainThe model learns from data prior to that dateNo data known until after the fact
3. PlanIt forecasts the following weeksSame horizon as in actual use
4. CompareWe measure the difference from actual salesErrors and Biases in a Simple Method
5. RepeatWe'll be doing it again on several datesLooking at just one period can be misleading

The comparison is based on the standard metrics: WAPE for the magnitude of the error, and forecast bias for its direction.

What a backtest proves—and what it doesn't prove

A backtest answers a specific question: Would the model have accurately predicted what happened?

It cannot say what would have happened if the price had been different. The past happened only once, at the price that was actually charged.

When it comes to pricing decisions, backtesting therefore validates the demand model, not the decision itself. The effect of a new price is then tested on a limited scale, as we explain in the article “Testing Your Prices Without Losing Customers.”

It is the combination of these two elements that makes predictive pricingcredible: a model proven over time, followed by recommendations proven in practice.

The Pitfalls of Backtesting

A poorly designed backtest produces excellent but false results.

  • Data leak: The model uses information that was not known as of the simulated date.
  • The period is too short: a few weeks without a promotion or a strong season do not constitute a year.
  • Repeated adjustment: by repeatedly fitting the model to the same time period, it eventually comes to reflect its random variations.
  • Hindsight bias: Choosing which products to analyze only after the results are known leads to false accusations.

The first pitfall is the most common and the hardest to spot. A significant discrepancy between backtest results and live trading results is a sign of this.

Backtesting in the Selection of a Pricing Tool

A demo shows what the tool can do. A backtest shows how it performs on your catalog.

This is one of the criteria to consider when choosing sales forecasting software: the same products, the same time period, and the same level of detail as your decision-making process.

It also supports traceability. Being able to determine the basis on which a recommendation was deemed reliable is one of the requirements described in our article on explainable and auditable price recommendations.

Our belief: a result that cannot be replicated using your data is not proof. We conduct this test with your teams before any deployment of our AI-powered sales forecast.

The rule for dividing up a backtest has a name: temporal validation, which always tests over a period that comes after the training phase.

See also in the glossary:CRPS · MSE and RMSE · ARIMA and exponential smoothing · global model

Frequently Asked Questions

Short answers to the most frequently asked questions about backtesting.

What is a backtest?

A backtest, or retrospective test, involves evaluating a model over a past period for which the outcome is already known. We start at a given date, provide the model only with the information available at that date, and have it predict what will happen next. We then compare its prediction with what actually happened. The term comes from finance, where it is used to test an investment strategy. In retail, it is used to evaluate a sales forecast before relying on it.

What is the difference between a backtest and a live test?

Backtesting simulates past performance: it is fast, risk-free, and can be repeated over many time periods. Live testing—conducted on a few stores or a portion of the catalog—observes what happens when a decision is actually implemented. The former validates the model’s ability to predict. The second validates the effect of a decision—such as a new price—which cannot be observed in historical data. The two complement each other: backtesting first, followed by real-world testing.

How long should a backtest run?

Over a time period that covers the situations the model will encounter. For retail sales, a full year allows you to include seasons, holidays, sales, and major promotional campaigns. A few slow weeks do not reveal anything about how the model behaves during promotional periods. It is better to repeat the test with multiple start dates rather than limiting it to a single period, which may happen to be exceptionally easy or difficult.

What data should be used for a backtest?

Your own data—and only those that were known as of the simulated date. Sales figures, prices, planned promotions, and the schedule are generally available in advance. Other information becomes available only after the fact: the actual price paid (including discounts), the actual weather conditions, and competitors’ sales figures. Using this information skews the test. A backtest performed on a set of Demo Data does not provide insight into how the model will perform on your catalog.

Does a good backtest guarantee future results?

No. It indicates that the model would have performed well under past conditions. If the market changes—for example, with the arrival of a competitor or high inflation—the results may differ. A backtest can also be overly favorable if the model has been adjusted numerous times over the same period, to the point of perfectly matching its specific characteristics. That is why we set aside a period that the model has never seen before and track its performance after it is put into operation.

What should you ask a software vendor about its backtest?

At least five points. What data was used for the test—yours or a demo dataset? Over what time period and with how many start dates? At what level of detail—by product and store, or across the entire chain? What metrics were used, and what were the margins of error and sources of bias? And what was the benchmark method, since a single figure proves nothing on its own. It’s also helpful to ask how the test avoids using information that wasn’t available at the time of the forecast.

How often should you rerun a backtest?

Whenever there is a significant change to the model or the data—such as a new variable, a new source, or a new product family. In between, continuous monitoring of actual performance takes over and serves the same purpose on an ongoing basis. When this monitoring reveals a sustained decline in performance, a new backtest helps determine whether the model needs to be retrained or revised. There is no fixed frequency that applies universally; it is the observed deviation that triggers the test.

Key Takeaways

  • A backtest simulates a past period without information available after the simulated date.
  • He approves the application form; the impact of a price is then verified in the field.
  • It analyzes your data, at your level, using a benchmark method.

Would you like to test a forecast using your own historical data?

Booper reviews your past sales data with your teams to assess the reliability of its forecasts before any rollout.

Let's talk about a test on your data →Discover our sales forecasting software

These articles can
interest you

This is some text inside a div block.
Sales forecast curve surrounded by question marks; choosing forecasting software
Comparing Sales Forecasting Solutions: 5 Questions to Ask Before the POC

When comparing sales forecasting solutions, there are five key points to check before conducting any tests: demand hidden by stockouts, the forecast granularity, an explanation of each figure, the relationship with prices and promotions, and an honest assessment of accuracy.

A demonstration doesn't prove anything on these points. Only a test using your own data, compared to a simple baseline, will show whether the forecast truly improves your decisions.

October 24, 2026
Read the article →
This is some text inside a div block.
A store aisle with two price tags tested in two different areas
Testing Your Prices Without Losing Customers: What a Test Should Prove

Companies rarely experiment with their prices because the risk of failure is obvious, while the cost of doing nothing is not. Customers mainly focus on benchmark products: the real question isn't whether they are price-sensitive, but which products they are sensitive to.

A useful test starts with a written hypothesis, compares test stores with control stores, and is evaluated over a full purchasing cycle, within the category margin. A price decrease is tested with greater caution than an increase, because it is difficult to reverse and may trigger subsequent discount announcements.

August 28, 2026
Read the article →
This is some text inside a div block.
AI Price Recommendation with Explanatory Factors and Audit Log
AI Pricing Recommendations: Explainable and Auditable for Retail

A price recommendation is justifiable when the team knows, at the time of approval, what factors led to it; it is auditable when, months later, it is possible to determine who approved it and on what basis. Auditing a rule verifies a calculation, but does not explain why that price was chosen over another.

The real risk isn't the model's error; it's the fair price that no one knows how to defend and that ends up being corrected manually. For a French retailer, the log of pricing decisions is also a legal asset: it serves as proof of a reference price or a “ below-cost resale threshold.”

September 25, 2026
Read the article →
Want to discuss your pricing strategy?
30 minutes with our teams, with no obligation.
Request an exchange