Fourier WLS (Fourier Flexible Weighted Least Squares)

Econometrics
Introduced by
Enders & Lee (2012); Gallant (1984) for the Fourier flexible form
Year
2012 (Fourier WLS application); 1984 (Fourier flexible form)
Type
Nonlinear time-series regression
Family
Econometrics / time series

What does it do?

Fourier WLS is a time-series regression approach that adds low-frequency Fourier sine and cosine terms to a weighted least squares specification.

The terms allow the mean or trend of a series to shift smoothly over time, so the analyst does not need to specify the timing or number of breaks in advance. The method is aimed at gradual change rather than abrupt, dated shifts.

The intuition behind the method

Many economic series drift or shift slowly rather than jumping at a known date. Any smooth function can be approximated by a finite combination of sine and cosine waves, which is the idea behind the Fourier flexible form introduced by Gallant (1984). Adding a small number of such terms to a regression with an intercept and trend lets the conditional mean move smoothly over time. Observation weights are then applied to address non-constant error variance, which can improve efficiency if the weights are reasonably estimated.

History

The Fourier flexible form was presented by Gallant (1984) as a way to approximate unknown smooth functions in agricultural economics. Enders and Lee (2012) applied a low-frequency Fourier approximation to unit-root testing, augmenting a Dickey-Fuller regression so that smooth breaks need not be located in advance. Their paper describes a Fourier-augmented unit-root test, not a weighted least squares estimator, so the weighted variant discussed on this page should be treated as distinct from that test.

When to use it

Choose Fourier WLS when the series is moderately long, the mean or trend appears to change gradually, and break dates or the number of breaks cannot be specified in advance. Typical examples include macroeconomic aggregates, exchange rates and commodity prices. Do not use it when breaks look abrupt and dated; Bai-Perron or Chow-type tests are more appropriate in that case. Avoid it for very short samples, where the Fourier terms are hard to estimate reliably. No fixed sample-size cut-off is given here, so the adequacy of the sample should be judged case by case. It is a single-equation tool, so multivariate settings call for a different framework.

Limitations and considerations

  • Poorly suited to abrupt, discrete breaks, because trigonometric terms spread the change across the whole sample and can distort the estimates.
  • Selecting the frequency over a grid is data-driven, and AIC and BIC can select different frequencies.
  • Estimation needs a reasonably long series; in short samples, the Fourier terms can pick up spurious patterns.
  • The approach is primarily univariate or single-equation. Extending it to multivariate systems, such as a Fourier-VECM, adds considerable complexity.
  • The Fourier coefficients describe the shape of the smooth change rather than its size at a specific date, so they are not directly interpretable as economic effects.

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

Strengths

  • Detects smooth, gradual change in the level or trend without requiring break dates or the number of breaks.
  • A single low-frequency pair of sine and cosine terms captures the dominant smooth shift with few extra parameters, which limits overfitting.
  • Weighting by estimated residual variances targets efficiency when the error variance changes over time, provided the variance function is reasonably estimated.
  • The trigonometric basis can approximate a wide class of smooth time-varying functions, which is the property the Fourier flexible form is built on.
  • If the Fourier terms add no explanatory power, the specification reduces to the baseline regression. The page does not give the exact test for this step.

Applications

  • Testing for structural change in macroeconomic aggregates such as GDP, inflation and unemployment without fixing break dates.
  • Modelling smooth regime transitions in purchasing power parity and real exchange rate series.
  • Estimating trend functions in energy consumption or commodity price series that evolve gradually over decades.
  • Providing a baseline regression for unit-root pre-testing when smooth breaks are suspected.
  • Capturing slow-moving shifts in financial volatility or risk premia in long quarterly or annual panels.

How it works

How it works

1

Sine and cosine pairs at a chosen low integer frequency k are constructed over the sample of length T. Together they trace a slowly evolving shift in the level or trend. They act as an approximation to the unknown break function, not as a model of a specific break date.

Formula
F(t) = \sum_{k=1}^{n}\left[a_k \sin\!\left(\frac{2\pi k t}{T}\right) + b_k \cos\!\left(\frac{2\pi k t}{T}\right)\right]
2

The baseline model, with an intercept and a linear trend, is augmented by a Fourier component built from low-frequency sine and cosine terms. The conditional mean can then move smoothly over time instead of being fixed at a constant level plus a straight-line trend. The Fourier component is written as a sum over low frequencies; the frequency-selection step below narrows this to one chosen frequency k.

Formula
y_t = \mu(t) + F(t) + \varepsilon_t,\quad \mu(t) = \alpha + \beta t
3

The frequency is chosen from a grid of candidate low integers by minimising the sum of squared residuals or an information criterion such as AIC or BIC. A small grid limits overfitting, because higher frequencies can track short-run noise rather than a smooth shift. Different criteria can select different frequencies, so the choice should be checked for sensitivity.

4

Estimation applies the weighted least squares formula with a diagonal weight matrix W. Weights are typically the inverse of estimated residual variances, which can be obtained from an auxiliary regression of squared residuals on the regressors or on a function of time. If the variance function is misspecified, the weights and any efficiency gain from them are affected.

Formula
\hat{\beta}_{WLS} = (X^{\top}WX)^{-1}X^{\top}Wy,\quad W = \mathrm{diag}(w_1,\ldots,w_T)
5

Tests on the Fourier coefficients, such as joint or individual tests on the weighted estimates, are used to judge whether smooth change is present. The page does not specify the standard error formula or the test distribution, so these should be taken from the documentation of the software used. A non-significant joint test is evidence that the smooth terms add little at the chosen frequency, not proof that no change occurred.

Common pitfalls

  • Choosing a high frequency lets the fit track short-run noise rather than a smooth shift. Keep the candidate grid to low integers and check whether the selected frequency changes the conclusions.
  • Interpreting the Fourier coefficients before a joint significance test. If the terms are not jointly significant, the data give no basis for describing a smooth break.
  • Fitting Fourier WLS to a series with a sharp break without checking residuals. A residual plot will show whether the smooth approximation misses an abrupt jump.
  • Not testing the weighted residuals for remaining autocorrelation. Unaddressed serial correlation invalidates the usual standard errors.
  • Confusing Fourier WLS with Fourier unit-root tests. Both use Fourier augmentation, but their estimation and inference logic differs.

Frequently asked questions

How many Fourier frequencies should I include?

Use a single frequency k, chosen from a small grid of low integers by minimising the sum of squared residuals or an information criterion (AIC or BIC). Including several frequencies raises the risk of overfitting and complicates inference. The candidate grid is set by the analyst, and the choice should be checked for sensitivity.

What is the difference between Fourier WLS and a standard Fourier unit-root test?

Fourier unit-root tests, such as the Enders-Lee FADF test, add Fourier terms to a Dickey-Fuller regression to test for a unit root without specifying the break. Fourier WLS is an estimation framework that combines Fourier augmentation with observation weights to model a series efficiently when the error variance is non-constant. The two share the augmentation but differ in purpose and in their inference.

Can Fourier WLS be used in panel data?

The sources cited for this entry cover time-series use only. Applying the method to panel data would need separate validation, including a decision on whether the frequency is common or specific to each cross-section, and whether estimation is pooled or heterogeneous.

What if my break is sharp rather than smooth?

If a Chow test or visual inspection reveals an abrupt jump, Fourier WLS is inappropriate. Use Bai-Perron multiple structural break tests or include dummy variables at the identified break date.

How do I choose the weights in the WLS step?

A common practice is to run an auxiliary OLS regression of squared residuals on the regressors, or on a function of time, to estimate the variance function, and then use the inverse of the fitted variances as weights. Re-estimating the weights iteratively is one option; whether it changes the estimates should be checked on the data, and a misspecified variance function can make the weights harmful.

Related methods

Sources

  1. Enders, W., & Lee, J. (2012). A unit root test using a Fourier series to approximate smooth breaks. Oxford Bulletin of Economics and Statistics, 74(4), 574–599.

    Open DOI reference
  2. Gallant, A. R. (1984). The Fourier flexible form. American Journal of Agricultural Economics, 66(2), 204–208.

    Open DOI reference