--- id: statsforecast version: "2.1.1" license: Apache Software License 2.0 license_treatment: permissive maintenance: active --- # statsforecast — Time series forecasting suite using statistical models License: permissive · Maintenance: active · Downloads: 1.9M/mo ## What it is and what it does StatsForecast is a Python library for univariate time series forecasting built around statistical and econometric models. It provides automatic model selection and fitting for ARIMA, ETS, CES, Theta, and related methods, optimized for speed and accuracy. The library includes both point forecasts and probabilistic forecasts with confidence intervals, supports exogenous variables and static covariates, and integrates with distributed computing frameworks (Spark, Dask, Ray) for scaling to large numbers of time series. The package is designed for production forecasting and benchmarking scenarios where speed and accuracy matter. It uses sklearn-like syntax (fit/predict) and includes utilities for anomaly detection, cross-validation, and handling multiple seasonalities. Dependencies include numpy, pandas, scipy, and statsmodels for core statistical computation, plus utilities for parallel processing and data handling. Use it for: - Fit automatic ARIMA or ETS models to hundreds of thousands of time series in parallel using Ray or Dask. - Generate probabilistic forecasts with confidence intervals for demand planning or inventory management. - Detect anomalies in time series using in-sample prediction intervals. - Forecast electricity load or other multi-seasonal data using MSTL decomposition. - Replace or benchmark against other forecasting libraries (e.g., Prophet) with faster, more accurate models. - Handle intermittent demand or sparse time series data with specialized models. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. StatsForecast provides fast implementations of statistical forecasting models including AutoARIMA, AutoETS, AutoCES, and Theta for univariate time series prediction, with support for distributed computing via Spark, Dask, and Ray. Yes. StatsForecast is actively maintained, has no known vulnerabilities, and offers a mature, well-documented suite of statistical forecasting models with strong performance characteristics. The permissive Apache license and broad Python version support (3.10–3.14) make it low-risk. Install friction is moderate due to multiple dependencies, but pre-built wheels and active maintenance mitigate this. Suitable for production forecasting and benchmarking work. ## Install pip install statsforecast uv add statsforecast poetry add statsforecast ## Installing statsforecast Before you install: Medium install friction due to 10 runtime dependencies including numpy, pandas, scipy, and statsmodels. Package is actively maintained with recent release (29 days old) and broad Python version support (3.10–3.14). Pre-built wheels available for multiple platforms. License in practice: Licensed under Apache Software License 2.0 (permissive), allowing commercial use, modification, and distribution with minimal restrictions. Quickstart: pip install statsforecast from statsforecast import StatsForecast from statsforecast.models import AutoARIMA df = AirPassengersDF sf = StatsForecast(models=[AutoARIMA(season_length=12)], freq='ME') sf.fit(df) sf.predict(h=12, level=[95]) Requires Python 3.10 or later; depends on compiled dependencies (numpy, scipy, statsmodels). Verify before relying: - Whether distributed execution (Spark, Dask, Ray) requires additional setup beyond the base install. - Performance benchmarks cited in description (e.g., '20x faster than pmdarima') and their applicability to typical use cases. - Specific memory or computational requirements for fitting millions of series as claimed. ## Package facts - License: Apache Software License 2.0 (permissive) - Python support: supports_current - Install friction: medium - Maintenance: active - Downloads: 1.9M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags time series forecasting, arima forecasting, statistical forecasting models, automatic forecasting, univariate time series prediction, distributed forecasting, probabilistic forecasting, exogenous variables forecasting, time-series, forecasting, distributed-computing [View on SkillFed](https://skillfed.io/packages/statsforecast) · [View on PyPI](https://pypi.org/project/statsforecast/)