Skip to content

AI Glossary · Concepts

What is Time-Series Forecasting?

Time-Series Forecasting

Time-series forecasting predicts future values of something measured over time, such as next month's sales, tomorrow's electricity demand or next hour's server load, from its past values and related signals.

Also known as: time series forecasting

· Chain of Thought

Model Training

  • 4 sources

A grocery chain needs to know how much milk to order for each store next week. Its history shows patterns: a steady trend, weekly peaks on Saturdays, spikes before holidays. Time-series forecasting turns those patterns, plus related signals such as weather, promotions or price changes, into a prediction, ideally with a range (“between 900 and 1,100 cartons”) rather than one number. Utilities forecast power demand, cloud teams forecast server load, and finance teams forecast cash flow the same way.

Methods run from simple to complex. The first check is a naive baseline such as “same as last week” or “same as this week last year.” Classic statistical models such as exponential smoothing and ARIMA, documented in libraries like statsmodels, come next. Machine learning approaches include gradient boosting on engineered lag features (feature engineering), recurrent neural networks, and newer pretrained foundation models such as Google’s TimesFM, which forecast series they weren’t trained on.

Testing needs special care because time only runs one way. Training data must come before test data, which is why ordinary shuffled cross-validation is replaced with time-ordered splits; using future information is a classic form of data leakage. Forecasts also degrade when the world changes, as many demand models did abruptly in 2020, so production forecasts need monitoring like any other model (model drift). Flagging unusual points in a series, rather than predicting the next one, is anomaly detection.

Sources