# DeepAR (2017)

> One recurrent network trained across thousands of related series, forecasting a full distribution instead of one number.

Page: https://mralbu.github.io/ai-datasets/p/deepar

## Key facts

- Title: DeepAR: Probabilistic Forecasting with Autoregressive Recurrent Networks
- Authors: David Salinas, Valentin Flunkert, Jan Gasthaus, Tim Januschowski
- Venue: International Journal of Forecasting 2020 (arXiv 2017)
- Category: Time series
- Paper: https://www.alphaxiv.org/abs/1704.04110

## Why it matters

Classical forecasting fitted one model per series. DeepAR, built for Amazon's demand forecasting, made "global" models trained across many series the norm for neural forecasting, and its electricity and traffic benchmarks became standard. It is a direct ancestor of today's time series foundation models.

## The idea

Train a single autoregressive LSTM on many series at once (for example every product a store sells), scaled so that big and small series can share what they learn. At each step it outputs the parameters of a probability distribution, and forecasts are drawn as sample paths.

## The result

About 15% more accurate than the state-of-the-art methods of the time on several datasets, including electricity consumption and traffic, with calibrated prediction intervals.

## The data

- [Electricity Load Diagrams (2015)](https://mralbu.github.io/ai-datasets/d/electricity.md): The power use of 370 Portuguese clients every 15 minutes for four years, with clear daily and weekly rhythms.

## Builds on

- [Yule's autoregression (1927)](https://mralbu.github.io/ai-datasets/p/yule-1927.md)

## Led to

- [Chronos (2024)](https://mralbu.github.io/ai-datasets/p/chronos.md)

## Part of

- [Forecasting](https://mralbu.github.io/ai-datasets/t/forecasting.md) (step 3 of 7)
