IDEAS home Printed from https://ideas.repec.org/a/gam/jecnmx/v5y2017i1p9-d88731.html
   My bibliography  Save this article

A Fast Algorithm for the Computation of HAC Covariance Matrix Estimators

Author

Listed:
  • Jochen Heberle

    (Faculty of Business Administration, Universität Hamburg, 20146 Hamburg, Germany)

  • Cristina Sattarhoff

    (Faculty of Business Administration, Universität Hamburg, 20146 Hamburg, Germany)

Abstract

This paper considers the algorithmic implementation of the heteroskedasticity and autocorrelation consistent (HAC) estimation problem for covariance matrices of parameter estimators. We introduce a new algorithm, mainly based on the fast Fourier transform, and show via computer simulation that our algorithm is up to 20 times faster than well-established alternative algorithms. The cumulative effect is substantial if the HAC estimation problem has to be solved repeatedly. Moreover, the bandwidth parameter has no impact on this performance. We provide a general description of the new algorithm as well as code for a reference implementation in R .

Suggested Citation

  • Jochen Heberle & Cristina Sattarhoff, 2017. "A Fast Algorithm for the Computation of HAC Covariance Matrix Estimators," Econometrics, MDPI, vol. 5(1), pages 1-16, January.
  • Handle: RePEc:gam:jecnmx:v:5:y:2017:i:1:p:9-:d:88731
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2225-1146/5/1/9/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2225-1146/5/1/9/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Smith, Richard J., 2005. "Automatic Positive Semidefinite Hac Covariance Matrix And Gmm Estimation," Econometric Theory, Cambridge University Press, vol. 21(1), pages 158-170, February.
    2. Lux, Thomas, 2008. "The Markov-Switching Multifractal Model of Asset Returns: GMM Estimation and Linear Forecasting of Volatility," Journal of Business & Economic Statistics, American Statistical Association, vol. 26, pages 194-210, April.
    3. White,Halbert, 1996. "Estimation, Inference and Specification Analysis," Cambridge Books, Cambridge University Press, number 9780521574464, January.
    4. Andreas Noack Jensen & Morten Ørregaard Nielsen, 2014. "A Fast Fractional Difference Algorithm," Journal of Time Series Analysis, Wiley Blackwell, vol. 35(5), pages 428-436, August.
    5. White, Halbert, 1980. "A Heteroskedasticity-Consistent Covariance Matrix Estimator and a Direct Test for Heteroskedasticity," Econometrica, Econometric Society, vol. 48(4), pages 817-838, May.
    6. Zeileis, Achim, 2004. "Econometric Computing with HC and HAC Covariance Matrix Estimators," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 11(i10).
    7. Zeileis, Achim, 2006. "Object-oriented Computation of Sandwich Estimators," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 16(i09).
    8. Newey, Whitney & West, Kenneth, 2014. "A simple, positive semi-definite, heteroscedasticity and autocorrelation consistent covariance matrix," Applied Econometrics, Russian Presidential Academy of National Economy and Public Administration (RANEPA), vol. 33(1), pages 125-132.
    9. Bacry, E. & Kozhemyak, A. & Muzy, Jean-Francois, 2008. "Continuous cascade models for asset returns," Journal of Economic Dynamics and Control, Elsevier, vol. 32(1), pages 156-199, January.
    10. Andrews, Donald W K, 1991. "Heteroskedasticity and Autocorrelation Consistent Covariance Matrix Estimation," Econometrica, Econometric Society, vol. 59(3), pages 817-858, May.
    11. Thomas Lux & Leonardo Morales‐Arias & Cristina Sattarhoff, 2014. "Forecasting Daily Variations of Stock Index Returns with a Multifractal Model of Realized Volatility," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 33(7), pages 532-541, November.
    12. Ruiz, Esther, 1994. "Quasi-maximum likelihood estimation of stochastic volatility models," Journal of Econometrics, Elsevier, vol. 63(1), pages 289-306, July.
    13. Peter Reinhard Hansen & Zhuo Huang & Howard Howan Shek, 2012. "Realized GARCH: a joint model for returns and realized measures of volatility," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 27(6), pages 877-906, September.
    14. MacKinnon, James G. & White, Halbert, 1985. "Some heteroskedasticity-consistent covariance matrix estimators with improved finite sample properties," Journal of Econometrics, Elsevier, vol. 29(3), pages 305-325, September.
    15. Emmanuel Bacry & Alexey Kozhemyak & J.-F. Muzy, 2008. "Continuous cascade models for asset returns," Post-Print hal-00604449, HAL.
    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. Sattarhoff, Cristina & Gronwald, Marc, 2022. "Measuring informational efficiency of the European carbon market — A quantitative evaluation of higher order dependence," International Review of Financial Analysis, Elsevier, vol. 84(C).
    2. Muhammad Usman & Atif Jahanger & Muhammad Sohail Amjad Makhdum & Magdalena Radulescu & Daniel Balsalobre-Lorente & Elena Jianu, 2022. "An Empirical Investigation of Ecological Footprint Using Nuclear Energy, Industrialization, Fossil Fuels and Foreign Direct Investment," Energies, MDPI, vol. 15(17), pages 1-26, September.
    3. Dobdinga C. Fonchamnyo & Etoh-Anzah P. Angyie & Nges S. Afumbom & Gildas D. Dinga & Simplice A. Asongu, 2022. "Structural Change, Environmental Pollution and Health Expenditure: Evidence from a Global Panel," Working Papers of the African Governance and Development Institute. 22/071, African Governance and Development Institute..
    4. Kostyrka, Andreï & Malakhov, Dmitry, 2021. "Was there ever a shift: Empirical analysis of structural-shift tests for return volatility," Applied Econometrics, Russian Presidential Academy of National Economy and Public Administration (RANEPA), vol. 61, pages 110-139.
    5. Sattarhoff, Cristina & Lux, Thomas, 2021. "Forecasting the Variability of Stock Index Returns with the Multifractal Random Walk Model for Realized Volatilities," Economics Working Papers 2021-02, Christian-Albrechts-University of Kiel, Department of Economics.
    6. Sattarhoff, Cristina & Lux, Thomas, 2023. "Forecasting the variability of stock index returns with the multifractal random walk model for realized volatilities," International Journal of Forecasting, Elsevier, vol. 39(4), pages 1678-1697.
    7. Da Fonseca, José & Malevergne, Yannick, 2021. "A simple microstructure model based on the Cox-BESQ process with application to optimal execution policy," Journal of Economic Dynamics and Control, Elsevier, vol. 128(C).
    8. Ali, Qamar & Yaseen, Muhammad Rizwan & Anwar, Sofia & Makhdum, Muhammad Sohail Amjad & Khan, Muhammad Tariq Iqbal, 2021. "The impact of tourism, renewable energy, and economic growth on ecological footprint and natural resources: A panel data analysis," Resources Policy, Elsevier, vol. 74(C).
    9. Nattapan Kongbuamai & Quocviet Bui & Festus Fatai Adedoyin & Festus Victor Bekun, 2023. "Developing environmental policy framework for sustainable development in Next-11 countries: the impacts of information and communication technology and urbanization on the ecological footprint," Environment, Development and Sustainability: A Multidisciplinary Approach to the Theory and Practice of Sustainable Development, Springer, vol. 25(10), pages 11307-11335, October.
    10. Hashemizadeh, Ali & Bui, Quocviet & Kongbuamai, Nattapan, 2021. "Unpacking the role of public debt in renewable energy consumption: New insights from the emerging countries," Energy, Elsevier, vol. 224(C).

    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. Hartigan, Luke, 2018. "Alternative HAC covariance matrix estimators with improved finite sample properties," Computational Statistics & Data Analysis, Elsevier, vol. 119(C), pages 55-73.
    2. repec:jss:jstsof:16:i09 is not listed on IDEAS
    3. Timo Dimitriadis & Xiaochun Liu & Julie Schnaitmann, 2020. "Encompassing Tests for Value at Risk and Expected Shortfall Multi-Step Forecasts based on Inference on the Boundary," Papers 2009.07341, arXiv.org.
    4. repec:jss:jstsof:11:i10 is not listed on IDEAS
    5. Damian Kozbur, 2017. "Testing-Based Forward Model Selection," American Economic Review, American Economic Association, vol. 107(5), pages 266-269, May.
    6. Ding, Peng, 2021. "The Frisch–Waugh–Lovell theorem for standard errors," Statistics & Probability Letters, Elsevier, vol. 168(C).
    7. Kajal Lahiri & Liu Yang, 2018. "Confidence Bands for ROC Curves With Serially Dependent Data," Journal of Business & Economic Statistics, Taylor & Francis Journals, vol. 36(1), pages 115-130, January.
    8. Zeileis, Achim, 2006. "Object-oriented Computation of Sandwich Estimators," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 16(i09).
    9. Haitham A. Al-Zoubi & Aktham Maghyereh, 2007. "Stationary Component in Stock Prices: A Reappraisal of Empirical Findings," Multinational Finance Journal, Multinational Finance Journal, vol. 11(3-4), pages 287-322, September.
    10. James G. MacKinnon, 2012. "Thirty Years Of Heteroskedasticity-robust Inference," Working Paper 1268, Economics Department, Queen's University.
    11. Fitzenberger, Bernd, 1998. "The moving blocks bootstrap and robust inference for linear least squares and quantile regressions," Journal of Econometrics, Elsevier, vol. 82(2), pages 235-287, February.
    12. Millo, Giovanni, 2014. "Robust standard error estimators for panel models: a unifying approach," MPRA Paper 54954, University Library of Munich, Germany.
    13. Gu, Chen & Kurov, Alexander & Wolfe, Marketa Halova, 2018. "Relief Rallies after FOMC Announcements as a Resolution of Uncertainty," Journal of Empirical Finance, Elsevier, vol. 49(C), pages 1-18.
    14. Paulo M. D. C. Parente & Richard J. Smith, 2021. "Quasi‐maximum likelihood and the kernel block bootstrap for nonlinear dynamic models," Journal of Time Series Analysis, Wiley Blackwell, vol. 42(4), pages 377-405, July.
    15. Frédérique Bec & Mélika Ben Salem & Marine Carrasco, 2010. "Detecting Mean Reversion in Real Exchange Rates from a Multiple Regime star Model," Annals of Economics and Statistics, GENES, issue 99-100, pages 395-427.
    16. Frank Kleibergen, 2004. "Expansions of GMM statistics that indicate their properties under weak and/or many instruments and the bootstrap," Econometric Society 2004 North American Summer Meetings 408, Econometric Society.
    17. Masaru Chiba, 2023. "Robust and efficient specification tests in Markov-switching autoregressive models," Statistical Inference for Stochastic Processes, Springer, vol. 26(1), pages 99-137, April.
    18. Kleibergen, Frank & Paap, Richard, 2006. "Generalized reduced rank tests using the singular value decomposition," Journal of Econometrics, Elsevier, vol. 133(1), pages 97-126, July.
    19. Sviták, Jan & Tichem, Jan & Haasbeek, Stefan, 2021. "Price effects of search advertising restrictions," International Journal of Industrial Organization, Elsevier, vol. 77(C).
    20. Cheng, Tsung-Chi, 2012. "On simultaneously identifying outliers and heteroscedasticity without specific form," Computational Statistics & Data Analysis, Elsevier, vol. 56(7), pages 2258-2272.
    21. Russell Davidson & Victoria Zinde‐Walsh, 2017. "Advances in specification testing," Canadian Journal of Economics/Revue canadienne d'économique, John Wiley & Sons, vol. 50(5), pages 1595-1631, December.
    22. Marcelo Moreira & Geert Ridder, 2019. "Efficiency loss of asymptotically efficient tests in an instrumental variables regression," CeMMAP working papers CWP03/19, Centre for Microdata Methods and Practice, Institute for Fiscal Studies.

    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:gam:jecnmx:v:5:y:2017:i:1:p:9-:d:88731. 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: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.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.