HOME

TheInfoList



OR:

The Hodrick–Prescott filter (also known as Hodrick–Prescott decomposition) is a mathematical tool used in
macroeconomics Macroeconomics (from the Greek prefix ''makro-'' meaning "large" + ''economics'') is a branch of economics dealing with performance, structure, behavior, and decision-making of an economy as a whole. For example, using interest rates, taxes, and ...
, especially in
real business cycle theory Real business-cycle theory (RBC theory) is a class of new classical macroeconomics models in which business-cycle fluctuations are accounted for by real (in contrast to nominal) shocks. Unlike other leading theories of the business cycle, RBC the ...
, to remove the cyclical component of a time series from raw data. It is used to obtain a smoothed-curve representation of a
time series In mathematics, a time series is a series of data points indexed (or listed or graphed) in time order. Most commonly, a time series is a sequence taken at successive equally spaced points in time. Thus it is a sequence of discrete-time data. Exa ...
, one that is more sensitive to long-term than to short-term fluctuations. The adjustment of the sensitivity of the trend to short-term fluctuations is achieved by modifying a multiplier \lambda. The filter was popularized in the field of economics in the 1990s by economists
Robert J. Hodrick Robert James Hodrick (born September 12, 1950), is a U.S. economist specialized in International Finance. AB, Princeton, 1972; PhD, University of Chicago, 1976. Until 1983, he served as a professor at Carnegie-Mellon University, where he worked ...
and
Nobel Memorial Prize The Nobel Memorial Prize in Economic Sciences, officially the Sveriges Riksbank Prize in Economic Sciences in Memory of Alfred Nobel ( sv, Sveriges riksbanks pris i ekonomisk vetenskap till Alfred Nobels minne), is an economics award administered ...
winner
Edward C. Prescott Edward Christian Prescott (December 26, 1940 – November 6, 2022) was an American economist. He received the Nobel Memorial Prize in Economics in 2004, sharing the award with Finn E. Kydland, "for their contributions to dynamic macroeconomics: ...
, though it was first proposed much earlier by
E. T. Whittaker Sir Edmund Taylor Whittaker (24 October 1873 – 24 March 1956) was a British mathematician, physicist, and historian of science. Whittaker was a leading mathematical scholar of the early 20th-century who contributed widely to applied mathema ...
in 1923.


The equation

The reasoning for the methodology uses ideas related to the
decomposition of time series The decomposition of time series is a statistical task that deconstructs a time series into several components, each representing one of the underlying categories of patterns. There are two principal types of decomposition, which are outlined belo ...
. Let y_t\, for t = 1, 2, ..., T\, denote the logarithms of a time series variable. The series y_t\, is made up of a trend component \tau_t, a cyclical component c_t, and an error component \epsilon_t such that y_t\ = \tau_t\ + c_t\ + \epsilon_t\,. Given an adequately chosen, positive value of \lambda, there is a trend component that will solve :\min_\left(\sum_^T + \lambda \sum_^ \right).\, The first term of the equation is the sum of the squared deviations d_t=y_t-\tau_t, which penalizes the cyclical component. The second term is a multiple \lambda of the sum of the squares of the trend component's second differences. This second term penalizes variations in the growth rate of the trend component. The larger the value of \lambda, the higher is the penalty. Hodrick and Prescott suggest 1600 as a value for \lambda for quarterly data. Ravn and Uhlig (2002) state that \lambda should vary by the fourth power of the frequency observation ratio; thus, \lambda should equal 6.25 (1600/4^4) for annual data and 129,600 (1600*3^4) for monthly data; in practice, \lambda = 100 for yearly data and \lambda = 14,400 for monthly data are commonly used, however. The Hodrick–Prescott filter is explicitly given by :\mathit = \left \lambda L^2 - 4\lambda L + (1 + 6\lambda) - 4\lambda L^ + \lambda L^ \right where L denotes the
lag operator In time series analysis, the lag operator (L) or backshift operator (B) operates on an element of a time series to produce the previous element. For example, given some time series :X= \ then : L X_t = X_ for all t > 1 or similarly in term ...
, as can seen from the first-order condition for the minimization problem.


Drawbacks to the Hodrick–Prescott filter

The Hodrick–Prescott filter will only be optimal when: *Data exists in a I(2) trend. **If one-time permanent shocks or split growth rates occur, the filter will generate shifts in the trend that do not actually exist. *Noise in data is approximately normally distributed. *Analysis is purely historical and static (closed domain). The filter causes misleading predictions when used dynamically since the algorithm changes (during iteration for minimization) the past state (unlike a
moving average In statistics, a moving average (rolling average or running average) is a calculation to analyze data points by creating a series of averages of different subsets of the full data set. It is also called a moving mean (MM) or rolling mean and is ...
) of the time series to adjust for the current state regardless of the size of \lambda used. The standard two-sided Hodrick–Prescott filter is non-causal as it is not purely backward looking. Hence, it should not be used when estimating DSGE models based on recursive state-space representations (e.g., likelihood-based methods that make use of the Kalman filter). The reason is that the Hodrick–Prescott filter uses observations at t+i, i>0 to construct the current time point t, while the recursive setting assumes that only current and past states influence the current observation. One way around this is to use the one-sided Hodrick–Prescott filter. Exact algebraic formulas are available for the two-sided Hodrick–Prescott filter in terms of its signal-to-noise ratio \lambda. A working paper by
James D. Hamilton James Douglas Hamilton (born November 29, 1954) is an American econometrician currently teaching at University of California, San Diego. His work is especially influential in time series and energy economics. He received his PhD from the Univer ...
at
UC San Diego The University of California, San Diego (UC San Diego or colloquially, UCSD) is a public university, public Land-grant university, land-grant research university in San Diego, California. Established in 1960 near the pre-existing Scripps Insti ...
titled "Why You Should Never Use the Hodrick-Prescott Filter" presents evidence against using the HP filter. Hamilton writes that: # The HP filter produces series with spurious dynamic relations that have no basis in the underlying data-generating process. # A one-sided version of the filter reduces but does not eliminate spurious predictability and moreover produces series that do not have the properties sought by most potential users of the HP filter. # A statistical formalization of the problem typically produces values for the smoothing parameter vastly at odds with common practice, e.g., a value for λ far below 1600 for quarterly data. # There’s a better alternative. A regression of the variable at date t+h on the four most recent values as of date t offers a robust approach to detrending that achieves all the objectives sought by users of the HP filter with none of its drawbacks." A working paper by
Robert J. Hodrick Robert James Hodrick (born September 12, 1950), is a U.S. economist specialized in International Finance. AB, Princeton, 1972; PhD, University of Chicago, 1976. Until 1983, he served as a professor at Carnegie-Mellon University, where he worked ...
titled "An Exploration of Trend-Cycle Decomposition Methodologies in Simulated Data" examines whether the proposed alternative approach of
James D. Hamilton James Douglas Hamilton (born November 29, 1954) is an American econometrician currently teaching at University of California, San Diego. His work is especially influential in time series and energy economics. He received his PhD from the Univer ...
is actually better than the HP filter at extracting the cyclical component of several simulated time series calibrated to approximate U.S. real GDP. Hodrick finds that for time series in which there are distinct growth and cyclical components, the HP filter comes closer to isolating the cyclical component than the Hamilton alternative.


See also

*
Band-pass filter A band-pass filter or bandpass filter (BPF) is a device that passes frequencies within a certain range and rejects (attenuates) frequencies outside that range. Description In electronics and signal processing, a filter is usually a two-por ...
*
Kalman filter For statistics and control theory, Kalman filtering, also known as linear quadratic estimation (LQE), is an algorithm that uses a series of measurements observed over time, including statistical noise and other inaccuracies, and produces estimat ...


References


Further reading

* * *


External links


a freeware Hodrick Prescott Excel Add-InPrescott's Fortran codeHodrick–Prescott filter in matlabHP filter in R with package 'mFilter'HP filter online appOne-sided Hodrick-Prescott filter in Excel
{{DEFAULTSORT:Hodrick-Prescott Filter Time series