AI Open Source Radar #131 — StatsForecast
Edition #130 introduced Chronos-2 and the prospect of demand forecasting with a pretrained model. Establish a baseline before measuring that gain. Imagine 200 store–product pairs with daily demand, weekly replenishment, and a history containing stockouts. How much performance can weekly seasonality already explain?
The problem it solves
A zero sale can mean zero demand or an empty shelf. Separating the two is a data task. Keep a stockout record, decide how to handle those days, and use the same policy for every candidate. Evaluate new stores separately: four weeks of observations provide a different basis for comparison from two years of history.
How it works
StatsForecast accepts long-format series, typically with unique_id, ds, and y. It offers local models such as SeasonalNaive, AutoETS, and AutoARIMA. With daily data and a period of seven, SeasonalNaive repeats the last observation for the same weekday. AutoETS estimates components such as level and seasonality. The library provides a shared interface for evaluating candidates across many series.
Store–SKU history
↓
weekly baseline
↓
local statistical models
↓
errors by horizon and segmentHow to evaluate it
Start with three distinct month-end cutoffs and forecast the following seven days at each cutoff. Train from the history available at each origin. Compare MAE for frequently sold items and absolute error by product family for intermittent demand. If you summarize with WAPE, report its denominator and flag groups whose total actual demand is zero.
What to look for
Also record processing time, the number of series with insufficient history, and the effect of promotions left outside the model. A simple baseline may already be useful in stable stores and act as a fallback when a more complex candidate is unavailable.
Evidence to collect
One segment can change the decision. Imagine a product that sells every Monday and has no sales on other days. Compare its seven-day forecast as a sequence and as a sum. A method can get the weekly volume right and miss every purchasing window. Record who uses the forecast and which decision window actually matters.
Editorial assessment
I would adopt SeasonalNaive as a control and evaluate the other candidates by segment. For methods that provide intervals, check observed coverage. The next edition uses sktime to turn these cutoffs into a reproducible protocol.
