Data and retrieval

Forecasting

Forecasting is the use of historical data and statistical or machine learning models to estimate future values, such as next month's sales, call volumes or stock needs, usually with a range that shows how uncertain the estimate is.

Every business plans on guesses about the future: how much stock to order, how many staff to roster, how much cash will come in. Forecasting turns those guesses into estimates grounded in past data. AI and machine learning can improve forecasts by picking up patterns across many products or locations and by using extra signals such as promotions, weather or holidays. For buyers the real question is not whether a model can forecast, but whether it forecasts better than the spreadsheet already in use.

How it works

A forecast starts with a time series: values recorded at regular intervals, such as daily sales per product. Classical statistical methods, such as exponential smoothing and ARIMA, model trend and seasonality and remain strong baselines. Machine learning methods, such as gradient-boosted trees and neural networks, can add external drivers like price changes, marketing spend or local events, and learn shared patterns across thousands of related series. Several foundation models for time series have also appeared that can forecast without much training.

A good forecast gives a range rather than a single number, for example a likely value with low and high bounds, because decisions such as safety stock depend on how uncertain the estimate is. Models are tested by backtesting: pretending to stand at past dates, forecasting forward and comparing against what actually happened.

An example: a bakery chain forecasts next week's demand per item per shop using two years of sales, the weather forecast and the calendar of school holidays, then sets production quantities from the upper range for fast-selling items.

What it means for cost

Most of the effort goes into data rather than models. History must be long and clean enough, with stock-outs, promotions and one-off events identified, because a week with no sales due to an empty shelf is not a week of no demand; see data cleaning. Connecting sources into a data warehouse and delivering forecasts back into the tools planners use adds integration work.

Ongoing cost comes from retraining and monitoring, since patterns change and models drift; see model drift. Ask a builder what baseline they will beat, how accuracy will be measured on held-out periods, and how planners will see and override forecasts. Live figures are on the forecasting and prediction cost page.

Common questions

How much history is needed for a forecast?

Enough to see the patterns that matter. Capturing yearly seasonality generally needs at least a couple of years of data; short-term operational forecasts can work with less. New products with no history are usually forecast from similar items.

Is AI forecasting always better than traditional methods?

No. On short or simple series, classical methods often match or beat complex models and are easier to explain. Machine learning tends to help when there are many related series and useful external drivers. A fair comparison on backtests should decide.

Related terms

Pricing a build that involves Forecasting? Send the brief and get a fixed price set next to the market range.Get a quote