IDEAS home Printed from https://ideas.repec.org/p/nbr/nberwo/23429.html
   My bibliography  Save this paper

Why You Should Never Use the Hodrick-Prescott Filter

Author

Listed:
  • James D. Hamilton

Abstract

Here's why. (1) The HP filter produces series with spurious dynamic relations that have no basis in the underlying data-generating process. (2) Filtered values at the end of the sample are very different from those in the middle, and are also characterized by spurious dynamics. (3) 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. (4) 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.

Suggested Citation

  • James D. Hamilton, 2017. "Why You Should Never Use the Hodrick-Prescott Filter," NBER Working Papers 23429, National Bureau of Economic Research, Inc.
  • Handle: RePEc:nbr:nberwo:23429
    Note: EFG ME PR
    as

    Download full text from publisher

    File URL: http://www.nber.org/papers/w23429.pdf
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Hall, Robert E, 1978. "Stochastic Implications of the Life Cycle-Permanent Income Hypothesis: Theory and Evidence," Journal of Political Economy, University of Chicago Press, vol. 86(6), pages 971-987, December.
    2. Sargent, Thomas J, 1976. "A Classical Macroeconometric Model for the United States," Journal of Political Economy, University of Chicago Press, vol. 84(2), pages 207-237, April.
    3. Òscar Jordà & Moritz Schularick & Alan M. Taylor, 2017. "Macrofinancial History and the New Business Cycle Facts," NBER Macroeconomics Annual, University of Chicago Press, vol. 31(1), pages 213-263.
    4. Pesando, James E, 1979. "On the Random Walk Characteristics of Short- and Long-Term Interest Rates in an Efficient Market," Journal of Money, Credit and Banking, Blackwell Publishing, vol. 11(4), pages 457-466, November.
    5. Tucker McElroy, 2008. "Exact formulas for the Hodrick-Prescott filter," Econometrics Journal, Royal Economic Society, vol. 11(1), pages 209-217, March.
    6. Mehmet Balcilar & Rangan Gupta & Anandamayee Majumdar & Stephen M. Miller, 2015. "Was the recent downturn in US real GDP predictable?," Applied Economics, Taylor & Francis Journals, vol. 47(28), pages 2985-3007, June.
    7. Park, Joon Y. & Phillips, Peter C.B., 1989. "Statistical Inference in Regressions with Integrated Processes: Part 2," Econometric Theory, Cambridge University Press, vol. 5(1), pages 95-131, April.
    8. Phillips, P C B, 1987. "Time Series Regression with a Unit Root," Econometrica, Econometric Society, vol. 55(2), pages 277-301, March.
    9. James D. Hamilton, 2009. "Understanding Crude Oil Prices," The Energy Journal, International Association for Energy Economics, vol. 0(Number 2), pages 179-206.
    10. Morten O. Ravn & Harald Uhlig, 2002. "On adjusting the Hodrick-Prescott filter for the frequency of observations," The Review of Economics and Statistics, MIT Press, vol. 84(2), pages 371-375.
    11. Peter C. B. Phillips & Sainan Jin, 2021. "Business Cycles, Trend Elimination, And The Hp Filter," International Economic Review, Department of Economics, University of Pennsylvania and Osaka University Institute of Social and Economic Research Association, vol. 62(2), pages 469-520, May.
    12. Cheung, Yin-Wong & Chinn, Menzie D. & Pascual, Antonio Garcia, 2005. "Empirical exchange rate models of the nineties: Are any fit to survive?," Journal of International Money and Finance, Elsevier, vol. 24(7), pages 1150-1175, November.
    13. Beveridge, Stephen & Nelson, Charles R., 1981. "A new approach to decomposition of economic time series into permanent and transitory components with particular attention to measurement of the `business cycle'," Journal of Monetary Economics, Elsevier, vol. 7(2), pages 151-174.
    14. King, Robert G. & Rebelo, Sergio T., 1993. "Low frequency filtering and real business cycles," Journal of Economic Dynamics and Control, Elsevier, vol. 17(1-2), pages 207-231.
    15. Singleton, Kenneth J., 1988. "Econometric issues in the analysis of equilibrium business cycle models," Journal of Monetary Economics, Elsevier, vol. 21(2-3), pages 361-386.
    16. James D. Hamilton & Ethan S. Harris & Jan Hatzius & Kenneth D. West, 2016. "The Equilibrium Real Funds Rate: Past, Present, and Future," IMF Economic Review, Palgrave Macmillan;International Monetary Fund, vol. 64(4), pages 660-707, November.
    17. Nelson, Charles R. & Plosser, Charles I., 1982. "Trends and random walks in macroeconmic time series : Some evidence and implications," Journal of Monetary Economics, Elsevier, vol. 10(2), pages 139-162.
    18. Harvey, A C & Jaeger, A, 1993. "Detrending, Stylized Facts and the Business Cycle," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 8(3), pages 231-247, July-Sept.
    19. Meese, Richard A. & Rogoff, Kenneth, 1983. "Empirical exchange rate models of the seventies : Do they fit out of sample?," Journal of International Economics, Elsevier, vol. 14(1-2), pages 3-24, February.
    20. Mankiw, N. Gregory, 1987. "The optimal collection of seigniorage : Theory and evidence," Journal of Monetary Economics, Elsevier, vol. 20(2), pages 327-341, September.
    21. Sims, Christopher A & Stock, James H & Watson, Mark W, 1990. "Inference in Linear Time Series Models with Some Unit Roots," Econometrica, Econometric Society, vol. 58(1), pages 113-144, January.
    22. Phillips, P C B, 1987. "Time Series Regression with a Unit Root," Econometrica, Econometric Society, vol. 55(2), pages 277-301, March.
    23. Cogley, Timothy & Nason, James M., 1995. "Effects of the Hodrick-Prescott filter on trend and difference stationary time series Implications for business cycle research," Journal of Economic Dynamics and Control, Elsevier, vol. 19(1-2), pages 253-278.
    24. Andrew Atkeson & Lee E. Ohanian, 2001. "Are Phillips curves useful for forecasting inflation?," Quarterly Review, Federal Reserve Bank of Minneapolis, vol. 25(Win), pages 2-11.
    25. Choi, In, 1993. "Asymptotic Normality of the Least-Squares Estimates for Higher Order Autoregressive Integrated Processes with Some Applications," Econometric Theory, Cambridge University Press, vol. 9(2), pages 263-282, April.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. John Y. Campbell & Pierre Perron, 1991. "Pitfalls and Opportunities: What Macroeconomists Should Know about Unit Roots," NBER Chapters, in: NBER Macroeconomics Annual 1991, Volume 6, pages 141-220, National Bureau of Economic Research, Inc.
    2. Tawadros, George B., 2011. "The stylised facts of Australia's business cycle," Economic Modelling, Elsevier, vol. 28(1), pages 549-556.
    3. Viv B. Hall & Peter Thomson, 2022. "A boosted HP filter for business cycle analysis:evidence from New Zealand's small open economy," CAMA Working Papers 2022-45, Centre for Applied Macroeconomic Analysis, Crawford School of Public Policy, The Australian National University.
    4. Mr. Andreas Billmeier, 2004. "Ghostbusting: Which Output Gap Measure Really Matters?," IMF Working Papers 2004/146, International Monetary Fund.
    5. Roberto Iannaccone & Edoardo Otranto, 2003. "Signal Extraction in Continuous Time and the Generalized Hodrick- Prescott Filter," Econometrics 0311002, University Library of Munich, Germany.
    6. Alain Guay & Pierre St-Amant, 1996. "Do Mechanical Filters Provide a Good Approximation of Business Cycles?," Technical Reports 78, Bank of Canada.
    7. Peter C. B. Phillips & Sainan Jin, 2021. "Business Cycles, Trend Elimination, And The Hp Filter," International Economic Review, Department of Economics, University of Pennsylvania and Osaka University Institute of Social and Economic Research Association, vol. 62(2), pages 469-520, May.
    8. Leo Butler, 1996. "The Bank of Canada's New Quarterly Porjection Model Part 4 : A Semi- Structural Method to Estimate Potential Output : Combining Economic Theory with a Time-Series Filter," Technical Reports 77, Bank of Canada.
    9. Frederic Dufourt, 2000. "Dynamic Properties of the New Neoclassical Synthesis Model of Business Cycle," Econometric Society World Congress 2000 Contributed Papers 0389, Econometric Society.
    10. Maravall, A. & del Rio, A., 2007. "Temporal aggregation, systematic sampling, and the Hodrick-Prescott filter," Computational Statistics & Data Analysis, Elsevier, vol. 52(2), pages 975-998, October.
    11. Hall, Viv B & Thomson, Peter, 2022. "A boosted HP filter for business cycle analysis: evidence from New Zealand’s small open economy," Working Paper Series 9473, Victoria University of Wellington, School of Economics and Finance.
    12. Günes Kamber & James Morley & Benjamin Wong, 2018. "Intuitive and Reliable Estimates of the Output Gap from a Beveridge-Nelson Filter," The Review of Economics and Statistics, MIT Press, vol. 100(3), pages 550-566, July.
    13. Gregory, Allan W. & Smith, Gregor W., 1996. "Measuring business cycles with business-cycle models," Journal of Economic Dynamics and Control, Elsevier, vol. 20(6-7), pages 1007-1025.
    14. Ziwei Mei & Zhentao Shi & Peter C. B. Phillips, 2022. "The boosted HP filter is more general than you might think," Cowles Foundation Discussion Papers 2348, Cowles Foundation for Research in Economics, Yale University.
    15. Lin, Yingqian & Tu, Yundong, 2020. "Robust inference for spurious regressions and cointegrations involving processes moderately deviated from a unit root," Journal of Econometrics, Elsevier, vol. 219(1), pages 52-65.
    16. Josefine Quast & Maik H. Wolters, 2022. "Reliable Real-Time Output Gap Estimates Based on a Modified Hamilton Filter," Journal of Business & Economic Statistics, Taylor & Francis Journals, vol. 40(1), pages 152-168, January.
    17. Robert J. Hodrick, 2020. "An Exploration of Trend-Cycle Decomposition Methodologies in Simulated Data," NBER Working Papers 26750, National Bureau of Economic Research, Inc.
    18. Athanasios Orphanides & Simon van Norden, 2002. "The Unreliability of Output-Gap Estimates in Real Time," The Review of Economics and Statistics, MIT Press, vol. 84(4), pages 569-583, November.
    19. Javier León & Carlos Oliva, 1992. "Componente no Estacionario y la Paridad del Poder de Compra en 12 Países Latinoamericanos," Latin American Journal of Economics-formerly Cuadernos de Economía, Instituto de Economía. Pontificia Universidad Católica de Chile., vol. 29(88), pages 481-504.
    20. Alain Guay & Pierre Saint-Amant, 2005. "Do the Hodrick-Prescott and Baxter-King Filters Provide a Good Approximation of Business Cycles?," Annals of Economics and Statistics, GENES, issue 77, pages 133-155.

    More about this item

    JEL classification:

    • C22 - Mathematical and Quantitative Methods - - Single Equation Models; Single Variables - - - Time-Series Models; Dynamic Quantile Regressions; Dynamic Treatment Effect Models; Diffusion Processes
    • E32 - Macroeconomics and Monetary Economics - - Prices, Business Fluctuations, and Cycles - - - Business Fluctuations; Cycles
    • E47 - Macroeconomics and Monetary Economics - - Money and Interest Rates - - - Forecasting and Simulation: Models and Applications

    NEP fields

    This paper has been announced in the following NEP Reports:

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:nbr:nberwo:23429. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: the person in charge (email available below). General contact details of provider: https://edirc.repec.org/data/nberrus.html .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.