Forecasting Calculator (Moving Average & Exponential Smoothing)

Paste your historical time series (one value per line, oldest to newest) and compute forecasts using simple moving average or single exponential smoothing. The tool also shows error metrics (MAD, MAPE) for the in-sample fit.

number of periods to average

Blue: actual, Orange: forecast (from first available point). Only first 24 points shown.

Next forecast

MAD

MAPE (%)

Method

t Actual Forecast Error |Error| |PE| %

How the calculator works

1. Simple Moving Average

\( \hat{Y}_{t+1} = \dfrac{Y_t + Y_{t-1} + \dots + Y_{t-m+1}}{m} \)

where m is the window size.

Use this when your data is fairly stable. A larger window means smoother forecasts but slower reaction to changes.

2. Single Exponential Smoothing

\( F_t = \alpha Y_{t-1} + (1-\alpha) F_{t-1} \)

with starting \( F_1 = Y_1 \) (simple initialization).

Use this when you want the most recent data to matter more. α close to 1 makes the forecast very reactive.

Error metrics

  • MAD (Mean Absolute Deviation): average of |error|.
  • MAPE: average of |error|/actual, as percentage.