IDEAS home Printed from https://ideas.repec.org/a/abg/anprac/v25y2021i11420.html
   My bibliography  Save this article

A GARCH Tutorial with R

Author

Listed:
  • Marcelo Scherer Perlin
  • Mauro Mastella
  • Daniel Francisco Vancin
  • Henrique Pinto Ramos

Abstract

Context: modeling volatility is an advanced technique in financial econometrics, with several applications for academic research. Objective: in this tutorial paper, we will address the topic of volatility modeling in R. We will discuss the underlying logic of GARCH models, their representation and estimation process, along with a descriptive example of a real-world application of volatility modeling. Methods: we use a GARCH model to predict how much time it will take, after the latest crisis, for the Ibovespa index to reach its historical peak once again. The empirical data covers the period between years 2000 and 2020, including the 2009 financial crisis and the current 2020’s episode of the COVID-19 pandemic. Conclusion: we find that, according to our GARCH model, Ibovespa is more likely than not to reach its peak once again in one year and four months from June 2020. All data and R code used to produce this tutorial are freely available on the internet and all results can be easily replicated.

Suggested Citation

  • Marcelo Scherer Perlin & Mauro Mastella & Daniel Francisco Vancin & Henrique Pinto Ramos, 2021. "A GARCH Tutorial with R," RAC - Revista de Administração Contemporânea (Journal of Contemporary Administration), ANPAD - Associação Nacional de Pós-Graduação e Pesquisa em Administração, vol. 25(1), pages 200088-2000.
  • Handle: RePEc:abg:anprac:v:25:y:2021:i:1:1420
    as

    Download full text from publisher

    File URL: https://rac.anpad.org.br/index.php/rac/article/view/1420
    Download Restriction: no

    File URL: https://rac.anpad.org.br/index.php/rac/article/download/1420/1517/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Asger Lunde & Peter R. Hansen, 2005. "A forecast comparison of volatility models: does anything beat a GARCH(1,1)?," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 20(7), pages 873-889.
    2. Hans Bystrom, 2004. "Orthogonal GARCH and covariance matrix forecasting: The Nordic stock markets during the Asian financial crisis 1997-1998," The European Journal of Finance, Taylor & Francis Journals, vol. 10(1), pages 44-67.
    3. Luc Bauwens & Sébastien Laurent & Jeroen V. K. Rombouts, 2006. "Multivariate GARCH models: a survey," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 21(1), pages 79-109, January.
    4. R. Cont, 2001. "Empirical properties of asset returns: stylized facts and statistical issues," Quantitative Finance, Taylor & Francis Journals, vol. 1(2), pages 223-236.
    5. Aït-Sahalia, Yacine & Mykland, Per A. & Zhang, Lan, 2011. "Ultra high frequency volatility estimation with dependent microstructure noise," Journal of Econometrics, Elsevier, vol. 160(1), pages 160-175, January.
    6. Robert Engle, 2001. "GARCH 101: The Use of ARCH/GARCH Models in Applied Econometrics," Journal of Economic Perspectives, American Economic Association, vol. 15(4), pages 157-168, Fall.
    7. James M. Carson & Elyas Elyasiani & Iqbal Mansur, 2008. "Market Risk, Interest Rate Risk, and Interdependencies in Insurer Stock Returns: A System‐GARCH Model," Journal of Risk & Insurance, The American Risk and Insurance Association, vol. 75(4), pages 873-891, December.
    8. de Goeij, P. C. & Marquering, W., 2004. "Modeling the conditional covariance between stock and bond returns : A multivariate GARCH approach," Other publications TiSEM 94fe5ada-715a-4339-b94c-f, Tilburg University, School of Economics and Management.
    9. Jos� A. Fioruci & Ricardo S. Ehlers & Marinho G. Andrade Filho, 2014. "Bayesian multivariate GARCH models with dynamic correlations and asymmetric error distributions," Journal of Applied Statistics, Taylor & Francis Journals, vol. 41(2), pages 320-331, February.
    10. Engle, Robert F, 1982. "Autoregressive Conditional Heteroscedasticity with Estimates of the Variance of United Kingdom Inflation," Econometrica, Econometric Society, vol. 50(4), pages 987-1007, July.
    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. Claudeci Da Silva & Hugo Agudelo Murillo & Joaquim Miguel Couto, 2014. "Early Warning Systems: Análise De Ummodelo Probit De Contágio De Crise Dos Estados Unidos Para O Brasil(2000-2010)," Anais do XL Encontro Nacional de Economia [Proceedings of the 40th Brazilian Economics Meeting] 110, ANPEC - Associação Nacional dos Centros de Pós-Graduação em Economia [Brazilian Association of Graduate Programs in Economics].
    2. Helmut Lütkepohl & Thore Schlaak, 2018. "Choosing Between Different Time‐Varying Volatility Models for Structural Vector Autoregressive Analysis," Oxford Bulletin of Economics and Statistics, Department of Economics, University of Oxford, vol. 80(4), pages 715-735, August.
    3. Allen, David E. & Amram, Ron & McAleer, Michael, 2013. "Volatility spillovers from the Chinese stock market to economic neighbours," Mathematics and Computers in Simulation (MATCOM), Elsevier, vol. 94(C), pages 238-257.
    4. repec:zbw:rwirep:0243 is not listed on IDEAS
    5. Massimiliano Caporin & Michael McAleer, 2011. "Thresholds, news impact surfaces and dynamic asymmetric multivariate GARCH," Statistica Neerlandica, Netherlands Society for Statistics and Operations Research, vol. 65(2), pages 125-163, May.
    6. Ñíguez, Trino-Manuel & Perote, Javier, 2017. "Moments expansion densities for quantifying financial risk," The North American Journal of Economics and Finance, Elsevier, vol. 42(C), pages 53-69.
    7. Bernardi, Mauro & Costola, Michele, 2019. "High-dimensional sparse financial networks through a regularised regression model," SAFE Working Paper Series 244, Leibniz Institute for Financial Research SAFE.
    8. Ardelean, Vlad & Pleier, Thomas, 2013. "Outliers & predicting time series: A comparative study," FAU Discussion Papers in Economics 05/2013, Friedrich-Alexander University Erlangen-Nuremberg, Institute for Economics.
    9. Chen, Hongtao & Liu, Li & Li, Xiaolei, 2018. "The predictive content of CBOE crude oil volatility index," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 492(C), pages 837-850.
    10. DUȚĂ, Violeta, 2018. "Using The Symmetric Models Garch (1.1) And Garch-M (1.1) To Investigate Volatility And Persistence For The European And Us Financial Markets," Studii Financiare (Financial Studies), Centre of Financial and Monetary Research "Victor Slavescu", vol. 22(1), pages 64-86.
    11. Andersen, Torben G. & Bollerslev, Tim & Christoffersen, Peter F. & Diebold, Francis X., 2013. "Financial Risk Measurement for Financial Risk Management," Handbook of the Economics of Finance, in: G.M. Constantinides & M. Harris & R. M. Stulz (ed.), Handbook of the Economics of Finance, volume 2, chapter 0, pages 1127-1220, Elsevier.
    12. Belke, Ansgar & Gokus, Christian, 2011. "Volatility Patterns of CDS, Bond and Stock Markets Before and During the Financial Crisis – Evidence from Major Financial Institutions," Ruhr Economic Papers 243, RWI - Leibniz-Institut für Wirtschaftsforschung, Ruhr-University Bochum, TU Dortmund University, University of Duisburg-Essen.
    13. Gatfaoui, Hayette, 2013. "Translating financial integration into correlation risk: A weekly reporting's viewpoint for the volatility behavior of stock markets," Economic Modelling, Elsevier, vol. 30(C), pages 776-791.
    14. Javier Sánchez García & Salvador Cruz Rambaud, 2022. "A GARCH approach to model short‐term interest rates: Evidence from Spanish economy," International Journal of Finance & Economics, John Wiley & Sons, Ltd., vol. 27(2), pages 1621-1632, April.
    15. Tim Bollerslev, 2008. "Glossary to ARCH (GARCH)," CREATES Research Papers 2008-49, Department of Economics and Business Economics, Aarhus University.
    16. Long H. Vo, 2017. "Estimating Financial Volatility with High-Frequency Returns," Journal of Finance and Economics Research, Geist Science, Iqra University, Faculty of Business Administration, vol. 2(2), pages 84-114, October.
    17. Ajay Singh & Dinghai Xu, 2016. "Random matrix application to correlations amongst the volatility of assets," Quantitative Finance, Taylor & Francis Journals, vol. 16(1), pages 69-83, January.
    18. Ercan Özen & Özdemir Letife & Simon Grima & Frank Bezzina, 2014. "Investigating Causality Effects in Return Volatility among Five Major Futures Markets in European Countries with a Mediterranean Connection," Journal of Financial Management, Markets and Institutions, Società editrice il Mulino, issue 2, pages 207-220, December.
    19. Rodrigo Alfaro & Carmen Gloria Silva, 2008. "Measuring Equity Volatility: the case of Chilean Stock Index," Working Papers Central Bank of Chile 462, Central Bank of Chile.
    20. Allen, David E. & McAleer, Michael & Powell, Robert J. & Singh, Abhay K., 2017. "Volatility Spillovers from Australia's major trading partners across the GFC," International Review of Economics & Finance, Elsevier, vol. 47(C), pages 159-175.
    21. Fresoli, Diego E. & Ruiz, Esther, 2016. "The uncertainty of conditional returns, volatilities and correlations in DCC models," Computational Statistics & Data Analysis, Elsevier, vol. 100(C), pages 170-185.

    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:abg:anprac:v:25:y:2021:i:1:1420. 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: Information Technology of ANPAD (email available below). General contact details of provider: http://anpad.org.br .

    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.