Hostname: page-component-77f85d65b8-g98kq Total loading time: 0 Render date: 2026-03-27T10:19:24.103Z Has data issue: false hasContentIssue false

Is the Hamilton regression filter really superior to Hodrick–Prescott detrending?

Published online by Cambridge University Press:  02 May 2024

Reiner Franke
Affiliation:
Chair of Monetary Economics and International Finance, University of Kiel, Kiel, Germany
Jiri Kukacka*
Affiliation:
Faculty of Social Sciences, Institute of Economic Studies, Charles University, Prague 1, Czechia Institute of Information Theory and Automation, Czech Academy of Sciences, Prague 8, Czechia
Stephen Sacht
Affiliation:
Hamburg Institute of International Economics (HWWI), Hamburg, Germany Institute of Economics, University of Kiel, Kiel, Germany
*
Corresponding author: Jiri Kukacka; Email: jiri.kukacka@fsv.cuni.cz
Rights & Permissions [Opens in a new window]

Abstract

An article published in 2018 by J.D. Hamilton gained significant attention due to its provocative title, “Why you should never use the Hodrick-Prescott filter.” Additionally, an alternative method for detrending, the Hamilton regression filter (HRF), was introduced. His work was frequently interpreted as a proposal to substitute the Hodrick–Prescott (HP) filter with HRF, therefore utilizing and understanding it similarly as HP detrending. This research disputes this perspective, particularly in relation to quarterly business cycle data on aggregate output. Focusing on economic fluctuations in the United States, this study generates a large amount of artificial data that follow a known pattern and include both a trend and cyclical component. The objective is to assess the effectiveness of a certain detrending approach in accurately identifying the real decomposition of the data. In addition to the standard HP smoothing parameter of $\lambda = 1600$, the study also examines values of $\lambda ^{\star }$ from earlier research that are seven to twelve times greater. Based on three unique statistical measures of the discrepancy between the estimated and real trends, it is evident that both versions of HP significantly surpass those of HRF. Additionally, HP with $\lambda ^{\star }$ consistently outperforms HP-1600.

Information

Type
Articles
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2024. Published by Cambridge University Press
Figure 0

Figure 1. Application of HRF in a sine wave scenario.

Figure 1

Table 1. Statistics of the estimated cyclical components $c_t^{\textrm{{HP}}}$ and $c_t^{\textrm{{HRF}}}$ from (3), varying with the noise level $m$

Figure 2

Table 2. Numerical coefficients ${\beta }^o$ (rounded) obtained from optimization (9)

Figure 3

Figure 2. HRF and HP were applied to a sample from (ST).

Figure 4

Table 3. Smoothing parameters $\lambda$ for HPc (conventional) and HPe (enhanced)

Figure 5

Table 4. Performance statistics for HRF, HPc, HPe from 1000 sample runs