Economics at your fingertips  

Boosting: Why you Can Use the HP Filter

Peter Phillips and Zhentao Shi

No 2212, Cowles Foundation Discussion Papers from Cowles Foundation for Research in Economics, Yale University

Abstract: The Hodrick-Prescott (HP) filter is one of the most widely used econometric methods in applied macroeconomic research. The technique is nonparametric and seeks to decompose a time series into a trend and a cyclical component unaided by economic theory or prior trend specification. Like all nonparametric methods, the HP filter depends critically on a tuning parameter that controls the degree of smoothing. Yet in contrast to modern nonparametric methods and applied work with these procedures, empirical practice with the HP filter almost universally relies on standard settings for the tuning parameter that have been suggested largely by experimentation with macroeconomic data and heuristic reasoning about the form of economic cycles and trends. As recent research \citep{phillips2015business} has shown, standard settings may not be adequate in removing trends, particularly stochastic trends, in economic data. This paper proposes an easy-to-implement practical procedure of iterating the HP smoother that is intended to make the filter a smarter smoothing device for trend estimation and trend elimination. We call this iterated HP technique the \emph{boosted HP filter} in view of its connection to $L_{2}$-boosting in machine learning. The paper develops limit theory to show that the boosted HP (bHP) filter asymptotically recovers trend mechanisms that involve unit root processes, deterministic polynomial drifts, and polynomial drifts with structural breaks, thereby covering the most common trends that appear in macroeconomic data and current modeling methodology. In doing so, the boosted filter provides a new mechanism for consistently estimating multiple structural breaks even without knowledge of the number of such breaks. A stopping criterion is used to automate the iterative HP algorithm, making it a data-determined method that is ready for modern data-rich environments in economic research. The methodology is illustrated using three real data examples that highlight the differences between simple HP filtering, the data-determined boosted filter, and an alternative autoregressive approach. These examples show that the bHP filter is helpful in analyzing a large collection of heterogeneous macroeconomic time series that manifest various degrees of persistence, trend behavior, and volatility.

Keywords: Boosting; Cycles; Empirical macroeconomics; Hodrick-Prescott filter; Machine learning; Nonstationary time series; Trends; Unit root processes (search for similar items in EconPapers)
JEL-codes: C22 C55 E20 (search for similar items in EconPapers)
Pages: 57 pages
Date: 2019-12
New Economics Papers: this item is included in nep-big, nep-cmp, nep-mac and nep-ore
References: View references in EconPapers View complete reference list from CitEc
Citations: View citations in EconPapers (6) Track citations by RSS feed

Downloads: (external link) (application/pdf)

Related works:
Journal Article: BOOSTING: WHY YOU CAN USE THE HP FILTER (2021) Downloads
Working Paper: Boosting: Why You Can Use the HP Filter (2020) Downloads
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link:

Ordering information: This working paper can be ordered from
Cowles Foundation, Yale University, Box 208281, New Haven, CT 06520-8281 USA
The price is None.

Access Statistics for this paper

More papers in Cowles Foundation Discussion Papers from Cowles Foundation for Research in Economics, Yale University Yale University, Box 208281, New Haven, CT 06520-8281 USA. Contact information at EDIRC.
Bibliographic data for series maintained by Brittany Ladd ().

Page updated 2023-10-03
Handle: RePEc:cwl:cwldpp:2212