run previsioni-ingenue.bas
MDN-119:32
DEMO by Michele di Nuzzo

Naive forecasts

MDN · LAB NAIVE FORECASTS Time series forecasting · 1982
categoria
category: whose sales are shown
ingenua / stagionale / media mobile
naive, seasonal, moving average: the forecasting method
settimane di anticipo h
weeks ahead h: how many weeks ahead to forecast
settimane nella media
weeks in the average: how many weeks go into the moving average
dimentica lo shift (la media include la settimana da prevedere)
forget the shift (the average includes the week to be forecast): in the moving average, shows how far the error drops

▶ Run ⬇ Download (.html)

Three forecasts of Ordito’s weekly sales that learn nothing: like this week, like the same week last year, like the average of the latest ones. You choose a category, a method and how many weeks ahead to forecast; the WAPE, the sum of the absolute errors divided by the sum of sales, is measured on 2025. The lab’s interface is in Italian.

Things to try

  • Last week. One week ahead the naive forecast is wrong by 11.5%; increase the lead time and watch the error rise.
  • A year ago. The seasonal one is wrong by 16% at any lead time, and from two weeks upwards it wins.
  • The forgotten shift. In the moving average tick “dimentica lo shift” (forget the shift): the error drops from 0.170 to 0.118, but it is false.

The article: Naive forecasts.

The demo is a single HTML file: download it and use it offline, even without an internet connection. Licence: CC BY-NC 4.0 — you may share it, crediting the author and this page, but not for commercial purposes.