Skip to content
SK Subham KumarTSF Hub · time-series forecasting
Classical & statisticalBaselineBenchmark

Naive baselines

Naive, seasonal naive, drift and mean forecasts

The simplest possible forecasts. They take seconds to compute, and they are surprisingly hard to beat. Report them next to every model you build.

Overview

A baseline answers one question: is my clever model actually adding anything? If a deep network can't beat “same as last year”, it isn’t ready. Four baselines cover almost every situation, and the seasonal naive forecast is the yardstick behind the MASE metric.

They also make excellent fall-backs in production: when data is too short or too erratic for anything else, a seasonal naive forecast is honest and explainable.

How it works

With history \(y_1,\dots,y_T\), horizon \(h\) and season length \(m\):

\[\text{Mean: } \hat y_{T+h}=\bar y \qquad \text{Naive: } \hat y_{T+h}=y_T\] \[\text{Seasonal naive: } \hat y_{T+h}=y_{T+h-m(k+1)},\quad k=\left\lfloor \tfrac{h-1}{m}\right\rfloor\] \[\text{Drift: } \hat y_{T+h}=y_T+h\,\frac{y_T-y_1}{T-1}\]

Drift draws a straight line from the first to the last observation and extends it. MASE divides a model’s MAE by the in-sample MAE of the seasonal naive forecast, so a value below 1 means you beat it.

When to use it

Use it for

  • Before any other model, to set the bar
  • Very short or noisy series
  • As a production fall-back when a model fails

Avoid it for

  • As your final answer when you have enough data to model trend and seasonality properly

Key settings

SettingWhat it controlsTypical value
mSeason length (12 monthly, 7 daily-with-weekly, 24 hourly)Domain knowledge
hForecast horizonBusiness need

Python example

✓ Tested: runs end to endDownload naive.py
import numpy as np
import pandas as pd

URL = "https://raw.githubusercontent.com/jbrownlee/Datasets/master/airline-passengers.csv"
y = pd.read_csv(URL, index_col="Month", parse_dates=True)["Passengers"].asfreq("MS")
train, test = y[:-12], y[-12:]
h, m = len(test), 12

forecasts = {
    "mean":           np.repeat(train.mean(), h),
    "naive":          np.repeat(train.iloc[-1], h),
    "seasonal naive": np.array([train.iloc[-m + (i % m)] for i in range(h)]),
    "drift":          train.iloc[-1] + np.arange(1, h + 1) * (train.iloc[-1] - train.iloc[0]) / (len(train) - 1),
}

# MASE scales errors by the in-sample seasonal-naive error: < 1 beats seasonal naive
scale = np.mean(np.abs(train.values[m:] - train.values[:-m]))
for name, f in forecasts.items():
    mae = np.mean(np.abs(test.values - f))
    print(f"{name:15s} MAE {mae:6.1f}   MASE {mae / scale:.2f}")

Tips & pitfalls

  • Always compare on the same test window and horizon as your model.
  • Use the seasonal naive forecast for strongly seasonal data; plain naive for random-walk-like series such as prices.
  • MASE above 1 means the model is worse than seasonal naive. Go back and check for leakage or overfitting.

References

  1. Hyndman, R. J., & Athanasopoulos, G. Forecasting: Principles and Practice (3rd ed.), §5.2 Some simple forecasting methods.
  2. Hyndman, R. J., & Koehler, A. B. (2006). Another look at measures of forecast accuracy. International Journal of Forecasting, 22(4), 679–688.