Load-Bearing · No. 07 · 17 November 2026

statsforecast

Sets the bar any forecasting investment has to clear, in under a minute on a laptop, so you fund trained or foundation models only where they actually beat it.

Load-Bearing is a weekly note for people who fund and run AI products: one open-source repository, run hands-on, and the adopt, build or buy decision behind it. All issues

Repo
Nixtla/statsforecast
Licence
Apache-2.0
Age
4 yr 11 mo
Contributors
74
Releases, 6 mo
2
Installs / month
1.5M pypi:statsforecast
Who owns it
Head of data science, with the planning owner who uses the forecast
First value
1 week
Verdict
Adopt
Measured 2026-10-19 from GitHub, PyPI and npm

The decision

A forecasting team asks for budget to move from spreadsheet methods to AutoML or one of the new foundation models. Before you fund it, how much of the gain do the classical statistical models already give you, and on which series is the new approach worth paying for?

The problem it removes

Most forecasting projects skip the honest baseline. Teams compare a new model against last year's spreadsheet, declare a win and never learn whether a seasonal model fitted in seconds would have done as well. That decides how much compute, headcount and vendor spend the forecast really needs.

What I ran

I forecast the next 24 hours of Dutch, Belgian and German electricity prices and demand, every day for 28 days: 168 forecasts per method, on a laptop CPU.

On demand, which follows daily and weekly cycles, statsforecast's MSTL model tied Timestral, the zero-shot foundation model Mistral released this October, and beat AutoGluon after five minutes of training, in 54 seconds with no training at all.

On prices, with spikes and negative hours, Timestral was clearly ahead, with 21% lower error than the best statistical model and better than AutoGluon too.

Rerunning AutoGluon with weekly refits, a week of validation and two more model types took ten times the compute for the same accuracy, though its interval became honest.

The surprises were elsewhere. The biggest Timestral was barely better than one seven times smaller, AutoARIMA did not finish in 34 minutes, and AutoTheta's 80% price interval covered 100% of outcomes, so wide it gave no useful range.

Where it sits in the stack

statsforecast is a Python library that fits classical models (seasonal naive, exponential smoothing, Theta, ARIMA, multi-seasonal decomposition) to thousands of series in parallel. It sits where the forecast is produced, between the data warehouse and the planning tool, and needs only pandas and a CPU. AutoML and foundation models plug in at the same point, which makes it the natural benchmark harness for both.

The first 30 days

Week 1. Pick the forecast that drives the most money, such as staffing, stock or energy purchase, and run seasonal naive and MSTL on the last year as a backtest. That is your floor.

Weeks 2 to 4. Add the challenger you were asked to fund, trained or foundation, on the same backtest, and compare accuracy, interval coverage and running cost per series type. Fund it only where it beats the floor by enough to matter.

Skills. One data scientist comfortable with pandas and backtesting. No GPU and no ML platform.

Running cost. Close to zero: under a minute of CPU for 168 hourly forecasts per model.

Working at day 30 means every forecast in production has a named baseline, a backtest result and an interval whose coverage someone has checked.

Risk

Intervals you can't trust. In my run, two of the automatic models produced 80% intervals that covered 100% and 69% of outcomes, and AutoGluon's default validation on a single day gave 94%. Check coverage before anyone plans on a range.

Slow defaults. AutoARIMA with a daily season on hourly data is too slow for daily refits. Use MSTL or ETS for high-frequency series and keep ARIMA for daily or weekly data.

Concentration. One maintainer holds 71% of the commits, and the company behind it also sells a hosted forecasting API. The licence is Apache-2.0 and the models are textbook methods, so a fork or a rewrite is realistic.

The organisational risk is a forecast with no baseline. Whoever approves forecasting spend should ask for the floor first.

Build, adopt or buy

Build. Classical models are in many libraries, but fitting thousands of series in parallel with consistent intervals is the work this library has already done.

Adopt it as the baseline and the backtest harness, whatever you buy.

Buy. AutoML platforms and hosted forecasting APIs earn their cost where series are irregular and many. My run suggests a zero-shot foundation model such as Timestral now does that job without training, on a CPU, so test one before committing to a training pipeline.

Verdict

I'd adopt statsforecast as the floor every forecasting proposal has to clear. On regular series it matched Timestral in under a minute, and on volatile prices it showed exactly how much a foundation model added. Fund the challenger where the gap is real, and turn AutoARIMA off for hourly data.

Engineering notes
  • Separate environments: installing statsforecast with autogluon.timeseries resolved to statsforecast 2.0.3 although 2.1.1 is current and allowed. Alone: uv pip install statsforecast==2.1.1 pandas, 4 s, 318 MB.
  • macOS: with n_jobs=-1 the worker processes re-run the script, so wrap it in if __name__ == "__main__": or the run restarts itself recursively.
  • Models used: SeasonalNaive(24), SeasonalNaive(168), AutoETS(season_length=24), AutoTheta(season_length=24), MSTL(season_length=[24, 168], trend_forecaster=AutoETS(model="ZZN")). forecast(df, h=24, level=[80]) gives the interval columns.
  • About 40 s of a seasonal naive run was process start-up: 28 separate forecast calls each create a pool. Batch windows with cross_validation when you can.
  • AutoGluon-TimeSeries 1.6.3: pass target="y" (default column is target), and list hyperparameters explicitly to exclude the pretrained Chronos models from a trained-only comparison. Fit took 311 s, and the ensemble leaned on DeepAR.
  • AutoGluon validates on one window by default. num_val_windows=7, val_step_size=24 made the price interval honest (81% against 94%) at the cost of about 12 minutes per fit with TFT and TiDE added, and the best single model changed every week, so keep the ensemble.
  • Timestral 1.0.0: uv pip install git+https://github.com/mistralai/timestral.git (not on PyPI), code Apache-2.0, weights under a Modified MIT licence on Hugging Face in four sizes (5M, 28M, 123M, 209M). TimestralForecaster.from_pretrained("mistralai/Timestral-28M", device="cpu").forecast(context, prediction_length=24) returns 21 quantiles. The smallest-but-one (28M) ran 168 forecasts in 31 s on CPU with context up to 16,384 hours.
  • Data: Energy-Charts API (prices CC BY 4.0, Bundesnetzagentur | SMARD.de). It rate-limits, so pause about 1.5 s between requests.
  • MASE is scaled by the 24-hour seasonal naive before the test period, so values above 1 on prices mean the test month was harder than the history.