Statistical integrity
Plenty of tools will take a CSV and produce a number. These are the rules /forecast follows, and what separates it from “an AI predicts your spreadsheet.” Each rule is enforced by tests.
Backtest every model
A model is trusted only for how it forecast held-out history. How well it fits the past, or how plausible its output looks, doesn’t count.
Compare against baselines
Naive and HistoricAverage always run, and SeasonalNaive runs when a seasonal period is found. A more capable model has to beat the best baseline by at least 5% to be selected. If it doesn’t, the baseline wins and the result says so.
Expose uncertainty
Forecasts come with 80% and 95% prediction intervals. The engine also checks how often a model’s own 80% interval contained the actual value in the backtest. If that was under 60%, it widens the intervals (never narrows them) and says so. Intervals for each period are not added together to make an interval for a total, because errors across periods are correlated.
Don’t force unreliable forecasts
The engine refuses, with a reason, instead of producing a number when the data can’t support one:
- a constant series
- too little history
- irregular sampling
- more than 10% of values missing
- a horizon the history can’t validate
- a file that can’t be read
A warning fires when the winner beats Naive by less than 10%, so a forecast that is barely better than repeating the last value is flagged. There are 33 catalogued warning codes and 12 refusal codes, each tested. A test fails if a warning is emitted but not catalogued, or catalogued but never triggered.
Distinguish forecasts from observations
Output files and charts keep observed history and forecast values separate. Claude’s explanation is expected to say which is which.
Correlation is not causation
A forecast extrapolates patterns in the series. It doesn’t know why they exist, and it doesn’t know about a price change, a launch, or a holiday it hasn’t seen. V1 doesn’t use external drivers, and the explanation should not attribute a forecast to a cause.
Deterministic calculations
Every number comes from code: the same dataset and settings produce the same metrics, the same winner, and the same forecast.
Claude does not do the math
Claude doesn’t compute forecasts, compare errors, or choose the model. It interprets the engine’s output and quotes values from the result files. Its numbers are checked: a test requires every number in the engine’s text summary to appear in result.json.
Known limitations in V1
- One series per run.
- Structural breaks such as a level shift aren’t modeled; a warning is raised when recent backtest windows degrade.
- Only one seasonal period is modeled; multiple seasonality is flagged, not handled.
- Intermittent (zero-heavy) demand runs baselines only, with a warning.
- With only a few backtest windows, model selection is noisy. That is why the margin rule exists.
- There is no interval for the sum of a forecast.