statsforecast

Lightning ⚡️ fast forecasting with statistical and econometric models.

What is statsforecast?

Lightning ⚡️ fast forecasting with statistical and econometric models.

Overview of statsforecast

What it is

StatsForecast is a Python library that provides a collection of univariate time series forecasting models, including automatic ARIMA, ETS, CES, and Theta modeling. It is designed for high performance and can fit millions of time series efficiently. The library is part of the Nixtla ecosystem and is available under the Apache-2.0 license.

Key features

  • Fastest and most accurate implementations of AutoARIMA, AutoETS, AutoCES, MSTL, and Theta in Python.
  • Out-of-the-box compatibility with Spark, Dask, and Ray.
  • Probabilistic forecasting and confidence intervals.
  • Support for exogenous variables and static covariates.
  • Anomaly detection.
  • Familiar sklearn syntax: .fit and .predict.

Use cases

  • Production forecasting for large collections of univariate time series.
  • Benchmarking against other forecasting methods.
  • Anomaly detection in time series data.
  • Forecasting with multiple seasonalities (e.g., electricity load, logs).
  • Intermittent demand forecasting for series with few non-zero observations.

Getting started

Install with pip: python pip install statsforecast Or with conda: python conda install -c conda-forge statsforecast Minimal example: python from statsforecast import StatsForecast from statsforecast.models import AutoARIMA from statsforecast.utils import AirPassengersDF df = AirPassengersDF sf = StatsForecast( models=[AutoARIMA(season_length=12)], freq='ME', ) sf.fit(df) sf.predict(h=12, level=[95]) For further instructions, see the repository README.

License and pricing

The license is Apache-2.0. The project is open source and free to use.

Based on the project's public README and repository metadata.

Add this badge to your README

Featured on YunoDB Badge styles & help

Maintain this project? Show that it is featured on YunoDB.

Markdown[![Featured on YunoDB](https://yunodb.com/badge/nixtlastatsforecast.svg)](https://yunodb.com/tools/nixtlastatsforecast?utm_source=github&utm_medium=badge)
HTML<a href="https://yunodb.com/tools/nixtlastatsforecast?utm_source=github&utm_medium=badge"><img src="https://yunodb.com/badge/nixtlastatsforecast.svg" alt="Featured on YunoDB" height="20"></a>