Simple Baseline Methods

Four rules make up the standard set of forecasting baselines, and each one is a hypothesis about the series written as a formula.

  • Mean โ€” \(\hat{y}_{t+1} = \bar{y}\). The series wanders around a fixed level.
  • Naive โ€” \(\hat{y}_{t+1} = y_t\). Whatever happened last is the best guess; a random walk behaves this way.
  • Seasonal naรฏve โ€” \(\hat y_{t+h}=y_{t+h-m(\lfloor(h-1)/m\rfloor+1)}\), for integer horizon \(h\geq1\) and seasonal period \(m\). Repeat the last observed value from the matching season, even when the horizon extends beyond one cycle.
  • Drift โ€” \(\hat{y}_{t+h} = y_t + h \cdot \frac{y_t - y_1}{t-1}\). Continue the straight line from the first observation to the last.

On monthly sales of \([100, 120, 130, 125]\) the mean method forecasts 118.75 forever, naive forecasts 125, and drift extrapolates the line from 100 to 125. They are cheap to compute and, as the advice goes, surprisingly hard to beat. The reason is worth seeing.

Each one wins where its assumption holds

import numpy as np

rng = np.random.default_rng(0)
n, m = 240, 12
t = np.arange(n)
series = {
    "a random walk": np.cumsum(rng.normal(size=n)) + 50,
    "seasonal, no trend": 50 + 8 * np.sin(2 * np.pi * t / m) + rng.normal(scale=1.5, size=n),
    "a steady upward trend": 50 + 0.25 * t + rng.normal(scale=2.0, size=n),
}
"""Four baselines, three kinds of series. Each forecast is made one step ahead
   from everything observed so far, and scored by mean absolute error."""

def forecasts(y, i):
    drift = y[i - 1] + (y[i - 1] - y[0]) / (i - 1)
    return {"mean": y[:i].mean(), "naive": y[i - 1],
            "seasonal naive": y[i - m], "drift": drift}

print(f"{'series':>24}  " + "  ".join(f"{k:>14}" for k in ("mean", "naive", "seasonal naive", "drift")))
for name, y in series.items():
    errors = {k: [] for k in ("mean", "naive", "seasonal naive", "drift")}
    for i in range(m + 1, n):
        for k, v in forecasts(y, i).items():
            errors[k].append(abs(y[i] - v))
    row = {k: float(np.mean(v)) for k, v in errors.items()}
    best = min(row, key=row.get)
    print(f"{name:>24}  " + "  ".join(f"{row[k]:>14.4f}" for k in errors) + f"   best: {best}")
print("\n  This table compares rolling test MAEs directly; it does not compute MASE.")
print("  MASE requires a training-series naive-error scale, defined separately.")
print("  A MASE below 1 does not guarantee beating the test-period naive forecast.")
#                   series            mean           naive  seasonal naive           drift
#            a random walk          3.7328          0.8223          2.9160          0.8219   best: drift
#       seasonal, no trend          5.2189          3.0688          1.7016          3.0896   best: seasonal naive
#    a steady upward trend         15.8737          2.2390          3.3564          2.2367   best: drift
#
#   This table compares rolling test MAEs directly; it does not compute MASE.
#   MASE requires a training-series naive-error scale, defined separately.
#   A MASE below 1 does not guarantee beating the test-period naive forecast.

Read down the diagonal. On a random walk the naive forecast and drift are almost tied at the top, because a random walk’s best prediction genuinely is its last value. On a seasonal series with no trend, seasonal naive wins at 1.7016 against naive’s 3.0688 โ€” nearly twice as good, by knowing one thing about the data. On a trending series, drift wins because it is the only one of the four that extrapolates.

And the mean method on a trending series scores 15.8737, seven times worse than naive. A baseline whose assumption is wrong is not a gentle floor; it is a number so bad that beating it proves nothing.

Which makes the baselines diagnostic rather than merely comparative. If seasonal naive is hard to beat, the series is dominated by seasonality and a model that ignores it will lose. If the naive forecast is hard to beat, the series is close to a random walk and the honest expectation from any model is small. That is a useful thing to learn in an afternoon, before building anything.

What MASE below 1 actually means

MASE scales forecast absolute errors by the training series’ average one-step naรฏve error, using seasonal naรฏve differences when appropriate. Its denominator is not the baseline’s error on the test window. MASE below 1 means the model’s mean forecast error is below that historical training scale; it does not guarantee that the model beats a baseline forecast on the same test cases.

The table reports rolling one-step test MAEs, including 3.0688 for naรฏve on the seasonal series and 0.8223 on the random walk. They are useful direct baseline comparisons, not the training denominators of MASE. To report MASE, identify the training period and seasonal lag used for scaling, and retain the separate test-baseline comparison. A training scale of 10 and a model test MAE of 5 give MASE 0.5 even if the test-period naรฏve MAE is 0.

Using them

  • Run all four, not one. They cost nothing and the pattern across them characterizes the series.
  • Score them the way you score the model โ€” same horizon, same origin, same metric. A baseline evaluated one step ahead against a model evaluated twelve steps ahead is not a comparison.
  • Respect the ordering of time. Each forecast above uses only data before the point being predicted; the article on time-based splits covers what goes wrong otherwise.
  • Keep them in production. A model that quietly stops beating the naive forecast has told you something, and nothing else in the monitoring stack will say it.

The same discipline outside forecasting โ€” which trivial rule, and measured how โ€” is in baseline heuristics.

References


Discover more from Insightful Data Lab

Subscribe to get the latest posts sent to your email.

Similar Posts

Questions, corrections, or additional insights?

This site uses Akismet to reduce spam. Learn how your comment data is processed.