IDEAS home Printed from https://ideas.repec.org/a/bpj/sndecm/v15y2011i2n2.html
   My bibliography  Save this article

Filtering Time Series with Penalized Splines

Author

Listed:
  • Kauermann Goeran

    (University Bielefeld)

  • Krivobokova Tatyana

    (University of Göttingen)

  • Semmler Willi

    (The New School)

Abstract

The decomposition and filtering of time series is an important issue in economics and econometrics and related fields. Even though there are numerous competing methods on the market, in applications one often meets one of the few favorites, like the Hodrick-Prescott filter or the bandpass filter.In this paper, we suggest to employ penalized splines fitting for detrending. The approach allows to take correlation of the residuals into account and provides a data driven setting of the smoothing parameter, none of which the classical filters allow. We show the simplicity of the penalized spline filter using the open source software R and demonstrate differences and features with numerous data examples.

Suggested Citation

  • Kauermann Goeran & Krivobokova Tatyana & Semmler Willi, 2011. "Filtering Time Series with Penalized Splines," Studies in Nonlinear Dynamics & Econometrics, De Gruyter, vol. 15(2), pages 1-28, March.
  • Handle: RePEc:bpj:sndecm:v:15:y:2011:i:2:n:2
    DOI: 10.2202/1558-3708.1789
    as

    Download full text from publisher

    File URL: https://doi.org/10.2202/1558-3708.1789
    Download Restriction: For access to full text, subscription to the journal or payment for the individual article is required.

    File URL: https://libkey.io/10.2202/1558-3708.1789?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to search for a different version of it.

    References listed on IDEAS

    as
    1. Miles S. Kimball & John G. Fernald & Susanto Basu, 2006. "Are Technology Improvements Contractionary?," American Economic Review, American Economic Association, vol. 96(5), pages 1418-1448, December.
    2. Ruppert,David & Wand,M. P. & Carroll,R. J., 2003. "Semiparametric Regression," Cambridge Books, Cambridge University Press, number 9780521785167, September.
    3. Harvey, Andrew C. & Trimbur, Thomas M. & Van Dijk, Herman K., 2007. "Trends and cycles in economic time series: A Bayesian approach," Journal of Econometrics, Elsevier, vol. 140(2), pages 618-649, October.
    4. Lawrence J. Christiano & Terry J. Fitzgerald, 2003. "The Band Pass Filter," International Economic Review, Department of Economics, University of Pennsylvania and Osaka University Institute of Social and Economic Research Association, vol. 44(2), pages 435-465, May.
    5. Yu Y. & Ruppert D., 2002. "Penalized Spline Estimation for Partially Linear Single-Index Models," Journal of the American Statistical Association, American Statistical Association, vol. 97, pages 1042-1054, December.
    6. Yuedong Wang, 1998. "Mixed effects smoothing spline analysis of variance," Journal of the Royal Statistical Society Series B, Royal Statistical Society, vol. 60(1), pages 159-174.
    7. Canova, Fabio, 1998. "Detrending and business cycle facts," Journal of Monetary Economics, Elsevier, vol. 41(3), pages 475-512, May.
    8. Yingxing Li & David Ruppert, 2008. "On the asymptotics of penalized splines," Biometrika, Biometrika Trust, vol. 95(2), pages 415-436.
    9. Gerda Claeskens & Tatyana Krivobokova & Jean D. Opsomer, 2009. "Asymptotic properties of penalized spline estimators," Biometrika, Biometrika Trust, vol. 96(3), pages 529-544.
    10. S. N. Wood, 2000. "Modelling and smoothing parameter estimation with multiple quadratic penalties," Journal of the Royal Statistical Society Series B, Royal Statistical Society, vol. 62(2), pages 413-428.
    11. Andrew C. Harvey & Thomas M. Trimbur, 2003. "General Model-Based Filters for Extracting Cycles and Trends in Economic Time Series," The Review of Economics and Statistics, MIT Press, vol. 85(2), pages 244-255, May.
    12. 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.
    13. Thomas M. Trimbur, 2006. "Detrending economic time series: a Bayesian generalization of the Hodrick-Prescott filter," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 25(4), pages 247-273.
    14. 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.
    15. Göran Kauermann & Tatyana Krivobokova & Ludwig Fahrmeir, 2009. "Some asymptotic results on generalized penalized spline smoothing," Journal of the Royal Statistical Society Series B, Royal Statistical Society, vol. 71(2), pages 487-503, April.
    16. Tommaso Proietti, 2005. "Forecasting and signal extraction with misspecified models," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 24(8), pages 539-556.
    17. 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.
    18. Dagum, Estela Bee & Giannerini, Simone, 2006. "A critical investigation on detrending procedures for non-linear processes," Journal of Macroeconomics, Elsevier, vol. 28(1), pages 175-191, March.
    19. Ruppert,David & Wand,M. P. & Carroll,R. J., 2003. "Semiparametric Regression," Cambridge Books, Cambridge University Press, number 9780521780506, September.
    20. Krivobokova, Tatyana & Kauermann, Goran, 2007. "A Note on Penalized Spline Smoothing With Correlated Errors," Journal of the American Statistical Association, American Statistical Association, vol. 102, pages 1328-1337, December.
    21. Inyoung Kim & Noah D. Cohen & Raymond J. Carroll, 2003. "Semiparametric Regression Splines in Matched Case-Control Studies," Biometrics, The International Biometric Society, vol. 59(4), pages 1158-1169, December.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Bloechl, Andreas, 2014. "Reducing the Excess Variability of the Hodrick-Prescott Filter by Flexible Penalization," Discussion Papers in Economics 17940, University of Munich, Department of Economics.
    2. Holst, Carsten & von Cramon-Taubadel, Stephan, 2012. "International Synchronisation of the Pork Cycle," Acta Oeconomica et Informatica, Faculty of Economics and Management, Slovak Agricultural University in Nitra (FEM SPU), vol. 15(1), pages 1-6, March.
    3. Blöchl, Andreas, 2014. "Penalized Splines as Frequency Selective Filters - Reducing the Excess Variability at the Margins," Discussion Papers in Economics 20687, University of Munich, Department of Economics.
    4. Rosales, Francisco & von-Cramon, Stephan, 2015. "Analysis of Price Transmission using a Nonparametric Error Correction Model with Time-Varying Cointegration," 2015 Conference, August 9-14, 2015, Milan, Italy 230227, International Association of Agricultural Economists.
    5. Bloechl, Andreas, 2014. "Penalized Splines, Mixed Models and the Wiener-Kolmogorov Filter," Discussion Papers in Economics 21406, University of Munich, Department of Economics.
    6. Göran Kauermann & Timo Teuber & Peter Flaschel, 2012. "Exploring US Business Cycles with Bivariate Loops Using Penalized Spline Regression," Computational Economics, Springer;Society for Computational Economics, vol. 39(4), pages 409-427, April.
    7. Anusha, "undated". "Evaluating reliability of some symmetric and asymmetric univariate filters," Indira Gandhi Institute of Development Research, Mumbai Working Papers 2015-030, Indira Gandhi Institute of Development Research, Mumbai, India.
    8. Feng, Yuanhua & Härdle, Wolfgang Karl, 2020. "A data-driven P-spline smoother and the P-Spline-GARCH models," IRTG 1792 Discussion Papers 2020-016, Humboldt University of Berlin, International Research Training Group 1792 "High Dimensional Nonstationary Time Series".
    9. Blöchl, Andreas, 2014. "Trend Estimation with Penalized Splines as Mixed Models for Series with Structural Breaks," Discussion Papers in Economics 18446, University of Munich, Department of Economics.

    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. Göran Kauermann & Timo Teuber & Peter Flaschel, 2012. "Exploring US Business Cycles with Bivariate Loops Using Penalized Spline Regression," Computational Economics, Springer;Society for Computational Economics, vol. 39(4), pages 409-427, April.
    2. Álvarez, Luis J. & Gómez-Loscos, Ana, 2018. "A menu on output gap estimation methods," Journal of Policy Modeling, Elsevier, vol. 40(4), pages 827-850.
    3. Wu, Ximing & Sickles, Robin, 2018. "Semiparametric estimation under shape constraints," Econometrics and Statistics, Elsevier, vol. 6(C), pages 74-89.
    4. Takuma Yoshida, 2016. "Asymptotics and smoothing parameter selection for penalized spline regression with various loss functions," Statistica Neerlandica, Netherlands Society for Statistics and Operations Research, vol. 70(4), pages 278-303, November.
    5. Holland, Ashley D., 2017. "Penalized spline estimation in the partially linear model," Journal of Multivariate Analysis, Elsevier, vol. 153(C), pages 211-235.
    6. Anusha, "undated". "Evaluating reliability of some symmetric and asymmetric univariate filters," Indira Gandhi Institute of Development Research, Mumbai Working Papers 2015-030, Indira Gandhi Institute of Development Research, Mumbai, India.
    7. Jaqueson K. Galimberti & Marcelo L. Moura, 2011. "Improving the reliability of real-time Hodrick-Prescott filtering using survey forecasts," Centre for Growth and Business Cycle Research Discussion Paper Series 159, Economics, The University of Manchester.
    8. Feng, Yuanhua & Härdle, Wolfgang Karl, 2020. "A data-driven P-spline smoother and the P-Spline-GARCH models," IRTG 1792 Discussion Papers 2020-016, Humboldt University of Berlin, International Research Training Group 1792 "High Dimensional Nonstationary Time Series".
    9. Blöchl, Andreas, 2014. "Penalized Splines as Frequency Selective Filters - Reducing the Excess Variability at the Margins," Discussion Papers in Economics 20687, University of Munich, Department of Economics.
    10. Bloechl, Andreas, 2014. "Penalized Splines, Mixed Models and the Wiener-Kolmogorov Filter," Discussion Papers in Economics 21406, University of Munich, Department of Economics.
    11. Lee, Wang-Sheng, 2014. "Big and Tall: Is there a Height Premium or Obesity Penalty in the Labor Market?," IZA Discussion Papers 8606, Institute of Labor Economics (IZA).
    12. Galimberti, Jaqueson K. & Moura, Marcelo L., 2016. "Improving the reliability of real-time output gap estimates using survey forecasts," International Journal of Forecasting, Elsevier, vol. 32(2), pages 358-373.
    13. Michael Wegener & Göran Kauermann, 2017. "Forecasting in nonlinear univariate time series using penalized splines," Statistical Papers, Springer, vol. 58(3), pages 557-576, September.
    14. Sonja Greven & Ciprian Crainiceanu, 2013. "On likelihood ratio testing for penalized splines," AStA Advances in Statistical Analysis, Springer;German Statistical Society, vol. 97(4), pages 387-402, October.
    15. Blöchl, Andreas, 2014. "Trend Estimation with Penalized Splines as Mixed Models for Series with Structural Breaks," Discussion Papers in Economics 18446, University of Munich, Department of Economics.
    16. Lauren N. Berry & Nathaniel E. Helwig, 2021. "Cross-Validation, Information Theory, or Maximum Likelihood? A Comparison of Tuning Methods for Penalized Splines," Stats, MDPI, vol. 4(3), pages 1-24, September.
    17. Morteza Amini & Mahdi Roozbeh & Nur Anisah Mohamed, 2024. "Separation of the Linear and Nonlinear Covariates in the Sparse Semi-Parametric Regression Model in the Presence of Outliers," Mathematics, MDPI, vol. 12(2), pages 1-17, January.
    18. Chen, Haiqiang & Fang, Ying & Li, Yingxing, 2015. "Estimation And Inference For Varying-Coefficient Models With Nonstationary Regressors Using Penalized Splines," Econometric Theory, Cambridge University Press, vol. 31(4), pages 753-777, August.
    19. I. Gijbels & I. Prosdocimi & G. Claeskens, 2010. "Nonparametric estimation of mean and dispersion functions in extended generalized linear models," TEST: An Official Journal of the Spanish Society of Statistics and Operations Research, Springer;Sociedad de Estadística e Investigación Operativa, vol. 19(3), pages 580-608, November.
    20. Drew Creal & Siem Jan Koopman & Eric Zivot, 2010. "Extracting a robust US business cycle using a time-varying multivariate model-based bandpass filter," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 25(4), pages 695-719.

    More about this item

    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:bpj:sndecm:v:15:y:2011:i:2:n:2. 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: Peter Golla (email available below). General contact details of provider: https://www.degruyter.com .

    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.