Which data does a reliable demand forecast require?

The core input for demand forecasting is historical sales records kept by product, location and period. The complementary data that improves forecast accuracy includes: price and promotion history; stock levels, and especially stockout periods; calendar information such as holidays, seasons and special days; product attributes and life cycle; and, where needed, external factors such as weather or economic indicators. At SoftwareArge, we see that in demand forecasting projects, the real determinant of the outcome is feeding the model the right data.

Demand forecasting is one of the predictive analytics topics where businesses commonly use machine learning. Below, we summarize which data is needed for what purpose and the issues most often encountered during preparation.

Data required for demand forecasting (checklist)

DataContribution to the forecastImportance
Historical salesThe source of the main pattern the model learnsRequired
Stock and stockoutsPrevents sales that dropped because stock ran out from being mistaken for a drop in demandHigh
Price historyShows how price movements affect demandHigh
Campaigns and promotionsExplains the cause of short-term sales spikesHigh
Calendar informationBrings the effect of holidays, seasons and special days into the modelHigh
Product informationProvides category, whether it is a new product, and its life cycleMedium
External factorsAdds external effects such as weather and economic indicators to the modelIndustry-dependent

Common data issues

During data preparation, pay particular attention to these four issues (for the general approach, see our guide to data quality in AI projects):

  1. Stockout periods not being recorded Sales that didn't happen because stock ran out are interpreted by the model as a drop in demand.
  2. Insufficient history Capturing seasonality often requires sales history spanning several years.
  3. Unflagged promotions When promotion periods are not marked separately in the data, the model cannot understand the cause of unusual spikes.
  4. Changing product codes When a product continues to be sold under a new code, its link to its past sales history is broken.

Frequently asked questions

How many years of history does demand forecasting need?

If sales follow a seasonal pattern, the model usually needs at least two to three years of history, covering the seasonal cycle several times, to capture it. It is also possible to start with a shorter history, but in that case uncertainty in the forecasts remains high.

How are forecasts made for new products with no sales history?

For products with no historical data, we draw on the sales trajectory of similar products, the general trend of the relevant category and the product's own attributes.

At what level of granularity should forecasts be produced?

Forecasts should be produced at the level at which decisions are made. If the purchasing team makes its decisions by product and warehouse, the forecast should be prepared at the same level of detail. Where needed, results are aggregated to a higher level to check their consistency.

Let's assess your demand forecasting data together

Let's review your sales, stock and promotion data together and clarify the gaps and first steps for your forecasting project.