Fourier SARIMA Model

Econometrics
Introduced by
Harvey & Scott (1994); Hyndman & Athanasopoulos (popularization)
Year
1994
Type
Seasonal time series model with trigonometric regressors
Family
Econometrics / time series

What does it do?

The Fourier SARIMA model extends the seasonal ARIMA framework by adding trigonometric (Fourier) terms as deterministic regressors.

A small number of sine and cosine pairs can approximate a smooth seasonal pattern, which avoids estimating a full seasonal ARIMA structure for a long seasonal period. The model assumes that the seasonal shape is stable over the sample.

The intuition behind the method

Standard SARIMA handles seasonality through seasonal differencing and seasonal AR and MA terms. This suits a recurring cycle of a short, fixed period, such as monthly or quarterly data. When the seasonal period is long, as with daily or weekly data, the number of seasonal lags and parameters grows quickly. Fourier SARIMA instead adds sine and cosine waves at selected harmonics of the seasonal period, and the ARIMA part captures the remaining autocorrelation. Because the sine and cosine coefficients are constant over time, the approach fits one seasonal shape that is assumed to hold across the whole sample.

History

Trigonometric seasonal terms in regression models are discussed by Harvey and Scott (1994), whose title, 'Seasonality in dynamic regression models', places the topic within dynamic regression with seasonality. The combination of Fourier regressors with ARIMA errors is covered in applied forecasting texts, including Hyndman and Athanasopoulos (2018). The name 'Fourier SARIMA' is used in applied work without a single standard originator.

When to use it

Choose Fourier SARIMA when the seasonal period is long relative to what a full seasonal ARIMA can estimate, such as weekly, daily or sub-daily data, or when the seasonal shape is smooth and cannot be captured by a few seasonal lags. It also suits overlapping seasonal cycles, for example weekly and annual patterns in daily data, where each cycle gets its own set of Fourier terms. Avoid it when the seasonal period is short and the pattern is stable, because seasonal differencing with seasonal ARMA terms is then usually simpler to estimate. Also avoid it when seasonality changes abruptly or drifts over time, since the fixed harmonics assume smooth, time-invariant seasonal variation.

Limitations and considerations

  • The number of harmonics K is an extra selection step. Too few harmonics leave residual seasonal autocorrelation, and too many spend parameters on noise.
  • Sinusoidal terms approximate smooth seasonal shapes. Sharp, irregular or abruptly shifting seasonality is poorly fitted.
  • Many overlapping seasonal frequencies can make the regressors nearly collinear, which complicates estimation.
  • The specification does not model seasonal structural breaks. If breaks are suspected, they need separate treatment that this model does not provide.
  • The sine and cosine coefficients are less intuitive to interpret than seasonal AR and MA parameters.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Handles long or non-integer seasonal periods, such as weekly or daily data, where a full set of seasonal lags would be over-parameterised.
  • Parsimonious: a few harmonics can represent a smooth, multi-frequency seasonal shape with fewer coefficients than seasonal AR and MA terms at each lag of the same period.
  • Overlapping seasonal cycles can be modelled together by stacking Fourier terms built on different periods.
  • The regressors are deterministic and simple to construct, and the model stays within the ARIMA framework, so standard estimation and diagnostic tools still apply.
  • Trend, integration and non-seasonal autocorrelation are handled by the ARIMA component.

Applications

  • Electricity load forecasting with daily, weekly and annual seasonal cycles modelled simultaneously.
  • Retail sales modelling with both weekly and annual seasonality in scanner data.
  • Tourism demand forecasting using monthly or weekly arrival data with long seasonal periods.
  • Forecasting of high-frequency economic or activity indicators observed daily or weekly.
  • Hospital admissions or call-centre volume forecasting with intra-day and day-of-week patterns.
  • Environmental time series (temperature, pollution) with smooth annual cycles and complex sub-seasonal variation.

How it works

How it works

1

Pairs of sine and cosine terms at harmonics k/m of the seasonal period m are constructed for t = 1, ..., T, with k = 1, ..., K. K must satisfy 1 <= K <= floor(m/2). At K = m/2 (m even) the sine term is identically zero for integer t and should be dropped, leaving only the cosine term. Each additional harmonic can capture a sharper seasonal feature but adds two coefficients to the model.

Formula
F_k(t) = \left[\sin\!\left(\frac{2\pi k t}{m}\right),\, \cos\!\left(\frac{2\pi k t}{m}\right)\right],\; k=1,\ldots,K
2

The Fourier terms enter the equation as deterministic regressors, and their coefficients are estimated alongside the ARIMA parameters. The non-seasonal polynomials phi(B) and theta(B) handle short-run autocorrelation. The seasonal polynomials Phi(B^m) and Theta(B^m) can be reduced or omitted when the Fourier terms account for most of the seasonal variation, which lowers the parameter count.

Formula
\phi(B)\Phi(B^m)\,\Delta^d\Delta_m^D y_t = \sum_{k=1}^{K}\left(\alpha_k \sin\frac{2\pi k t}{m} + \beta_k \cos\frac{2\pi k t}{m}\right) + \theta(B)\Theta(B^m)\varepsilon_t
3

The number of harmonics K and the ARIMA orders (p, d, q) are chosen jointly, typically by minimising AIC or BIC over a grid of candidate values. Compare criteria only across models fitted to the same differenced series (same d and D) and the same sample. A small K is usually enough for a smooth seasonal pattern. A larger K should be justified by a clear improvement in the criterion rather than added by default.

4

Given K and the ARIMA orders, parameters are estimated by maximum likelihood or conditional least squares. Maximum likelihood is the usual choice when the full likelihood can be evaluated; conditional least squares is simpler to compute and is typically less efficient. The Fourier coefficients (alpha_k, beta_k) and the ARIMA coefficients are estimated simultaneously, with standard errors obtained from the Fisher information matrix. Bootstrap standard errors are preferable when the Fisher information approximation is doubtful, for example in short samples or when parameters lie near the boundary of the stationarity or invertibility region.

5

Residual diagnostics include the Ljung-Box test for remaining autocorrelation, normality checks (Jarque-Bera), and ARCH tests for conditional heteroscedasticity. For the Ljung-Box test, the degrees of freedom should be reduced by the number of estimated ARMA parameters, including any seasonal ARMA terms. Non-normal residuals mainly affect the accuracy of prediction intervals rather than point forecasts, so a normality failure alone does not invalidate the model. Seasonal residual patterns or spectral density peaks signal that K is too small or the ARIMA orders are misspecified. No single test should be read as a pass/fail verdict; the results should be interpreted together.

Common pitfalls

  • Choosing K by trial and error without an information criterion. Compare AIC or BIC across candidate values of K jointly with the ARIMA orders, using the same differenced series and sample.
  • Using Fourier SARIMA on a short series where m is close to or above T/2. With fewer than about two full seasonal cycles in the sample, the seasonal coefficients are weakly identified and may be collinear with the trend or the ARIMA terms. Check standard errors and forecast stability before relying on the fit.
  • Forgetting seasonal integration: if the series has a seasonal unit root, seasonal differencing (D > 0) is still needed even when Fourier terms capture the deterministic seasonal pattern.
  • Ignoring heteroscedasticity. Financial or high-frequency series may need GARCH errors alongside the Fourier SARIMA mean equation.
  • Expecting the forecast to follow a seasonal shape that drifts over time. The sine and cosine coefficients are estimated once and held constant, so the forecast repeats the seasonal pattern implied by the sample.

Frequently asked questions

How many Fourier terms K should I include?

Start with K = 1 and increase K only while AIC or BIC improves, keeping K no larger than floor(m/2). Select K jointly with the ARIMA orders rather than fixing it by rule. Compare criteria only across models fitted to the same differenced series (same d and D) and the same sample, because changing the differencing changes the data being compared. For most applied series a small number of harmonics is enough to capture the dominant seasonal shape.

Can I use Fourier terms together with seasonal differencing (D = 1)?

Yes, but do so carefully. If the seasonal pattern has a stochastic (unit root) component, seasonal differencing is appropriate; Fourier terms then model the deterministic residual seasonality. However, combining seasonal differencing with a full set of Fourier terms can introduce near-collinearity, so use information criteria to guide the balance.

How does Fourier SARIMA differ from TBATS or Prophet?

TBATS and Prophet also represent seasonality with trigonometric or Fourier-type terms, but within different frameworks: TBATS is built on a state-space formulation, and Prophet is an additive regression with a piecewise trend. Fourier SARIMA keeps the seasonal terms as regressors inside the ARIMA framework, so standard ARIMA estimation and diagnostic tools apply directly. The trade-off is that the choice of ARIMA orders and harmonics is more manual.

Is Fourier SARIMA appropriate for weekly data?

Yes. Weekly data with an annual cycle has m = 52, which makes a full seasonal ARIMA with 52 seasonal lags impractical. A small number of Fourier harmonics usually gives an efficient and estimable approximation of the annual shape, with the number of harmonics chosen by an information criterion.

What software implements Fourier SARIMA?

In R, the forecast package (Hyndman et al.) provides the fourier() function to generate Fourier regressors paired with auto.arima() or Arima() with an xreg argument. Python users can construct Fourier regressors manually and pass them to statsmodels SARIMAX as exogenous variables.

Related methods

Sources

  1. Harvey, A., & Scott, A. (1994). Seasonality in dynamic regression models. The Economic Journal, 104(427), 1324-1345.

    Open publication reference
  2. Hyndman, R. J., & Athanasopoulos, G. (2018). Forecasting: Principles and Practice (2nd ed.). OTexts.

    Open publication reference