How does demand forecasting work?
The model studies sales history together with the factors that influence it: seasonality, prices, promotions, holidays, product availability. Using the patterns it finds, it estimates demand for the next period. The forecast is compared with a simple baseline, such as the average of past weeks, and used for purchasing and stock planning.
More in the guide to machine learning for business.