Overview
Theta decomposes a (deseasonalised) series into “theta lines”. The \(\theta=0\) line is the straight linear trend; the \(\theta=2\) line doubles the local curvature. The trend line is extrapolated, the \(\theta=2\) line is forecast with simple exponential smoothing, and the two forecasts are combined.
Hyndman & Billah later showed the standard Theta method is equivalent to simple exponential smoothing with drift, where the drift is half the slope of the linear trend. That explains why it works so well: it blends a stable long-run trend with an adaptive level.
How it works
A theta line keeps the mean and slope of the data but scales its second differences:
\[\nabla^2 Z_t(\theta)=\theta\,\nabla^2 y_t\]In its SES-with-drift form, with \(\tilde y_{T+h|T}\) the SES forecast (smoothing parameter \(\alpha\)) and \(\hat b_0\) the slope of a fitted linear trend:
\[\hat y_{T+h|T}=\tilde y_{T+h|T}+\tfrac{1}{2}\hat b_0\left[h-1+\frac{1}{\alpha}-\frac{(1-\alpha)^T}{\alpha}\right]\]Seasonal data is first deseasonalised (classical multiplicative decomposition) and the seasonality re-applied to the forecast.
When to use it
Use it for
- Monthly or quarterly business series with trend
- Large batches of series where speed matters
- A strong statistical benchmark beyond naive
Avoid it for
- Series with several seasonal cycles (use TBATS or MSTL)
- Problems that need external regressors
Key settings
| Setting | What it controls | Typical value |
|---|---|---|
period | Season length used for deseasonalising | 12 for monthly |
deseasonalize | Remove seasonality before fitting | True when seasonal |
theta | Weight on the curvature line (2 = classic Theta) | 2 |
Python example
import pandas as pd from statsmodels.tsa.forecasting.theta import ThetaModel 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:] # deseasonalize=True removes multiplicative seasonality before fitting, then puts it back res = ThetaModel(train, period=12, deseasonalize=True, method="auto").fit() print("SES alpha:", round(res.params["alpha"], 3), " trend slope b0:", round(res.params["b0"], 3)) forecast = res.forecast(12) intervals = res.prediction_intervals(12, alpha=0.2) # 80% interval mae = (test - forecast).abs().mean() print(f"MAE: {mae:.1f}") print(pd.concat([forecast.rename("forecast"), intervals], axis=1).head())
Tips & pitfalls
- Try AutoTheta in statsforecast: it also tests optimised and dynamic Theta variants.
- Theta assumes additive trend in the deseasonalised series; log-transform series with growing variance.
- It is a great second baseline after seasonal naive.
References
- Assimakopoulos, V., & Nikolopoulos, K. (2000). The theta model: a decomposition approach to forecasting. International Journal of Forecasting, 16(4), 521–530.
- Hyndman, R. J., & Billah, B. (2003). Unmasking the Theta method. International Journal of Forecasting, 19(2), 287–290.
- Makridakis, S., & Hibon, M. (2000). The M3-Competition: results, conclusions and implications. International Journal of Forecasting, 16(4), 451–476.