I wanted to test my forecasting tool on data that isn't mine, so I ran it on two public US economic series: retail sales and consumer price inflation. The two behave very differently. One has a pattern a model can learn. The other mostly doesn't, and the tool said so.
This is a forecasting exercise, not investment advice. The code, data and every result file are in the repository, linked at the end.
What I did
/forecast is a tool I built. You give it a time series and it does four things:
- Profiles the data.
- Tests several models with rolling backtests.
- Picks the best one by error, and only trusts a complex model if it clearly beats a simple baseline.
- Produces a forecast with prediction intervals.
I ran it with its default settings on two series from FRED, the St. Louis Fed's public database. I didn't tune anything.
The data
Both series are monthly, from January 2010 to September 2026, retrieved on October 29, 2026.
- Retail sales: advance retail sales for retail trade and food services, in millions of dollars, not seasonally adjusted. It comes from the US Census Bureau (RSAFSNA). I kept it unadjusted so the seasonal pattern is still in the data.
- Inflation: the year-over-year change in the Consumer Price Index for All Urban Consumers, in percent. The index comes from the Bureau of Labor Statistics (CPIAUCSL), and I computed the year-over-year change from it.
How the backtest works
A forecast is only worth trusting if it has been wrong in public first. So the tool hides part of the history, forecasts it, and scores the forecast against what really happened. It does that five times, each time moving forward 12 months:
- Windows: five windows of 12 months each, covering October 2021 to September 2026. In each one the model sees only the data before the window.
- Main score: MASE, which compares a model's error to the error of simply repeating the previous value. Below 1 means it beats that rule. Lower is better.
- Baselines: the tool always includes simple models, such as repeating the last value or repeating the same month from last year. A fancier model has to beat the best baseline by at least 5% to be picked.
Retail sales: a pattern the model can use
Retail sales is strongly seasonal. Each December is far above each January. The tool measured the yearly pattern's strength at 0.83 and picked AutoTheta.
| Model | MASE | Average monthly error ($ billions) | Error as % of sales |
|---|---|---|---|
| AutoTheta | 0.72 | 17.3 | 2.5% |
| AutoETS | 0.88 | 21.1 | 3.1% |
| AutoARIMA | 1.04 | 24.9 | 3.7% |
| Seasonal naive (baseline) | 1.23 | 29.5 | 4.3% |
| Naive (baseline) | 1.99 | 47.9 | 7.1% |
AutoTheta beat the best baseline, the seasonal naive, by 41%. Its average miss was about $17 billion a month on roughly $700 billion of sales. Its forecast errors also shrank over the five windows, from about $30 billion in the first window to about $11 billion in the last two.

The forecast for the next 12 months (October 2026 to September 2027) totals about $9.10 trillion, which is 5.3% above the previous 12 months ($8.64 trillion). It expects a December peak near $843 billion (80% interval: $816 to $869 billion) and a trough near $676 billion in February.
The tool's own 80% intervals also held up here. They contained 90% of the actual values in the backtest.
Inflation: barely better than repeating the last number
The inflation series is a different story. There is no seasonality, and the tool said so. It picked AutoETS, but only just.
| Model | MASE | Average error (percentage points) |
|---|---|---|
| AutoETS | 5.23 | 1.35 |
| Naive (baseline) | 5.56 | 1.43 |
| AutoTheta | 5.69 | 1.47 |
| AutoARIMA | 6.49 | 1.67 |
| Historic average (baseline) | 8.08 | 2.08 |
The winner beat "just repeat last month's number" by 6%. That clears the 5% bar by a hair, and the tool flagged it with warnings:
- Poor backtest: the selected model added very little skill over the baseline.
- Unstable: its accuracy varied a lot from window to window.
- Low coverage: its 80% prediction intervals contained only 61% of the actual values, and its 95% intervals only 68%. In other words, on average the model was more confident than it should have been.

The chart below shows where those misses came from, and the average hides a split. In the first two windows (October 2021 through September 2023), inflation rose to nearly 9% and then fell, and the forecast stayed nearly flat. The 80% interval contained 1 of 24 actual values in that stretch. In the three calmer windows since, it contained all 35.

The model's forecast for the next 12 months is for inflation to stay near today's 3.7%, drifting to about 4.0% by September 2027. Its 80% interval for that last month runs from 1.7% to 6.3%. Whether that range is wide enough depends on what comes next. In calm conditions the backtest intervals were wide enough every time (35 of 35), but in the surge they failed almost completely (1 of 24).

What I take from it
- A model needs something to learn. Retail sales has a stable seasonal shape, and a model that captures it cut the error by 41% against the best simple rule. Inflation has no seasonal pattern, and the best model barely beat the simple rule.
- Year-over-year numbers are hard to beat naively. Each year-over-year figure shares 11 of its 12 monthly price changes with the next month's, so last month's value is already a strong forecast.
- Check the intervals, and check them in different conditions. The 61% coverage number sounded like a simple "too narrow," but it was really two regimes: reliable when inflation was calm, and almost useless in a surge. A single accuracy number can hide that, and the surge is the case where you most need the range to be right.
- Choose by backtest, not by sophistication. The tool picked a different model for each series, and a plain baseline was within 6% on one of them.
Limits
- Five windows is a short record. The inflation backtest also covers an unusual stretch, the post-2021 surge, so results could look different in calmer or more volatile periods.
- Default settings only. I didn't tune models, add outside predictors, or try other series.
- Data gets revised. The Census Bureau revises retail sales, and the BLS revises seasonal factors. The files in the repository are a snapshot from October 29, 2026.
- Not investment advice. These are forecasts of published statistics, not of markets.
Reproduce it
The folder contains the data snapshots, the scripts, the engine's result files, and the charts. run.sh re-runs everything with my forecasting tool.
Code, data and results on GitHub
Data: U.S. Bureau of Labor Statistics (CPI) and U.S. Census Bureau (retail sales), via FRED, Federal Reserve Bank of St. Louis.