- Introduced by
- Becker, Enders, and Hurn
- Year
- 2004
- Type
- Augmented linear regression
- Family
- Econometrics / time series
What does it do?
Fourier OLS is an ordinary least squares regression augmented with low-frequency sine and cosine terms.
The added terms are a smooth function of time, so they can absorb gradual variation in the outcome that the regressors do not explain, without fixing the timing or number of breaks in advance. Because the terms enter additively, they shift the average level of the outcome smoothly over time; by themselves they do not let the slope coefficients vary.
The intuition behind the method
Standard OLS assumes that the average of the outcome, given the regressors, is fixed up to random error. In many long time series that assumption is strained, because the average can drift slowly across the sample. Tests for sharp breaks are poorly suited to such drift, since they presume a discrete change date. Fourier OLS adds a few smooth waves to the regression, so that slow, wave-like movements in the average are captured by the Fourier terms rather than pushed into the residuals. The coefficients on those waves are technical approximation terms, not economic parameters. Becker, Enders and Hurn (2004) use a related trigonometric expansion to test for time-dependent parameters, which is a distinct use of the same idea.
History
Becker, Enders and Hurn (2004) proposed the Trig-test, a test for time-dependent parameters that uses a trigonometric expansion to approximate the unknown functional form of parameter variation. Enders and Lee (2012) built on Gallant's (1981) flexible Fourier form, using a simple variant of it in a unit root test that approximates smooth structural breaks with low-frequency components. The augmented regression described here adapts these ideas to the outcome equation. The name 'Fourier OLS' is a label for this regression rather than a method introduced in the works cited here.
When to use it
Use Fourier OLS with time-series data and a continuous outcome when the average relation may have drifted gradually over the sample and you do not know when or how many breaks occurred. Becker, Enders and Hurn (2004) use a trigonometric expansion to detect a statistically significant increase in the US inflation rate from the early 1970s to the early 1980s, and Enders and Lee (2012) use Fourier approximation of smooth breaks in a unit root test, illustrated with interest rate spreads. Both show the underlying idea of approximating smooth variation with a few sine and cosine terms, but neither estimates the regression described here. Do not use it as a substitute for theoretically motivated regressors: the Fourier terms absorb residual smooth variation but cannot replace economic controls. Avoid it when sharp breaks at known or suspected dates are the main concern, since dummy-variable break tests are designed for that case. Also avoid it in very short samples, where the extra regressors use up degrees of freedom, and when every coefficient must have a direct economic meaning, because the Fourier coefficients have none.
Limitations and considerations
- The Fourier terms absorb smooth variation but do not identify its economic source, so a better fit does not explain what drove the change.
- Because f(t) enters additively, it shifts the average of the outcome over time; the specification as written does not capture changes in the slope coefficients.
- Frequency selection by information criteria can be unreliable in short samples, where over-fitting or under-fitting becomes more likely.
- When several sharp breaks coexist with smooth drift, low-frequency terms may approximate the true pattern poorly.
- Each added frequency consumes degrees of freedom and can inflate standard errors in small samples.
- Standard OLS inference depends on the residuals behaving well; Fourier augmentation does not correct for autocorrelation or heteroscedasticity.
- Inference depends on the variables being stationary, or cointegrated if integrated. Fourier terms do not correct for non-stationarity, and regressions on integrated series can be spurious, which invalidates the usual t and F tests.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Accommodates smooth, gradual change in the outcome without requiring the number, timing or functional form of breaks to be specified.
- Stays within the OLS framework: the augmented model is still estimated by the closed-form formula, so no nonlinear optimisation is needed.
- Low-frequency terms are parsimonious; each frequency adds one sine and one cosine regressor.
- Standard OLS diagnostics and HAC standard errors can be applied as usual, because the Fourier terms are ordinary regressors.
Applications
- Testing for time variation in a macroeconomic series with a trigonometric approach, as in Becker, Enders and Hurn (2004), which detects a significant increase in US inflation from the early 1970s to the early 1980s.
- Absorbing smooth, unexplained level shifts in a macroeconomic or financial outcome when the timing of any change is unknown.
- Controlling for slow-moving unobserved influences in a time-series regression before interpreting the coefficients on theory-based regressors.
How it works
How it works
Choose the frequency k, for example by fitting the model for integer values k = 1, 2, … and comparing information criteria. Index time as t = 1, …, T, where T is the sample size, and construct the regressors sin(2πkt/T) and cos(2πkt/T). With this convention, the term for frequency k completes k full cycles over the sample, so k = 1 is the slowest cyclical pattern the model can represent. Low frequencies capture slow movements across the sample; higher frequencies are more likely to track noise.
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]Append the Fourier terms f(t) to the regressor matrix X. As written, the model is y_t = X_t·β + f(t) + ε_t: f(t) is added to the conditional mean, so it captures a smooth, time-varying level that the regressors do not explain. Because f(t) is not multiplied by X_t, it does not by itself allow the slope coefficients to change over time.
Formula
y_t = X_t \beta + f(t) + \varepsilon_t
Choose the frequency k that minimises AIC or BIC over a finite grid of candidate values. Information criteria penalise the extra regressors, which limits over-fitting, but they do not guarantee that the selected k matches the true pattern of change.
Stack the original regressors and the Fourier terms into an augmented design matrix X̃ and apply the OLS formula β̂ = (X̃ᵀX̃)⁻¹X̃ᵀy. The estimator is linear in y and has a closed form. The Fourier columns are estimated jointly with β, so the coefficients on X are conditional on the Fourier terms included.
Formula
\hat{\beta} = (\tilde{X}^{\top}\tilde{X})^{-1}\tilde{X}^{\top}yUse the estimated coefficients and their standard errors to test hypotheses about the original predictors. A joint Wald or F test of the hypothesis that all Fourier coefficients are zero shows whether the added terms are jointly significant. When residual heteroscedasticity or autocorrelation is suspected, use heteroscedasticity- and autocorrelation-consistent (HAC) standard errors, such as the Newey-West estimator, because adding Fourier terms does not remove these problems. Before interpreting the coefficients, check that the outcome and regressors are stationary; the Fourier terms do not substitute for this check.
Common pitfalls
- Using a high frequency k can fit noise as if it were structural change; select k with an information criterion rather than by visual fit.
- Reading the Fourier coefficients a_k and b_k as economic parameters; they are technical approximation terms.
- Assuming the Fourier terms have removed serial correlation; they capture smooth shifts in the mean but do not whiten the error process.
- Applying the method to a very short series, where the extra regressors leave little information per coefficient.
- Confusing Fourier OLS with Fourier-based unit root tests such as the Enders-Lee test: those place Fourier terms inside a unit root regression, use different critical values, and address a different question.
Frequently asked questions
How do I choose the Fourier frequency k?
Estimate the model for several integer values of k, starting at k = 1, and select the value that minimises AIC or BIC. Keep the candidate set small so that the added terms remain parsimonious relative to the sample.
Is Fourier OLS the same as a Fourier unit root test?
No. Fourier OLS is a regression that adds Fourier terms to the outcome equation to absorb smooth time variation. Fourier unit root tests, such as the Enders-Lee test, embed Fourier terms inside a unit root regression and use their own critical values; they answer a different question.
Can I combine Fourier augmentation with robust or HAC standard errors?
Yes. The Fourier terms are just additional regressors, so all standard post-estimation corrections — heteroscedasticity-robust, HAC, and cluster-robust standard errors — apply exactly as in ordinary OLS.
How many Fourier terms should I include?
One frequency (k = 1) with its sine and cosine pair is often the starting point. Adding frequencies improves the approximation but uses degrees of freedom; information criteria penalise this, which limits over-fitting but does not guarantee the best k.
What if the structural change is sharp rather than smooth?
Fourier terms approximate smooth, gradual shifts poorly when the true change is abrupt. In that case, use dummy-variable Chow tests, the Bai-Perron multiple break procedure, or the Zivot-Andrews test, which are designed for sharp structural breaks.
Related methods
Sources
Becker, R., Enders, W., & Hurn, S. (2004). A general test for time dependence in parameters. Journal of Applied Econometrics, 19(7), 899–906.
Open DOI referenceEnders, 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