IDEAS home Printed from https://ideas.repec.org/a/vrs/manmar/v16y2021i4p334-351n2.html
   My bibliography  Save this article

Trading using Hidden Markov Models during COVID-19 turbulences

Author

Listed:
  • Lolea Iulian Cornel

    (Bucharest University of Economic Studies, Bucharest, Romania)

  • Stamule Simona

    (Technical University of Civil Engineering of Bucharest, Bucharest, Romania)

Abstract

Obtaining higher than market returns is a difficult goal to achieve, especially in times of turbulence such as the COVID-19 crisis, which tested the resilience of many models and algorithms. We used a Hidden Markov Models (HMM) methodology based on monthly data (DAX returns, VSTOXX index Germany’s industrial production and Germany’s annual inflation rate) to calibrate a trading strategy in order to obtain higher returns than a buy-and-hold strategy for the DAX index., following Talla (2013) and Nguyen and Nguyen (2015). The stock selection was based on 26 stocks from DAX’s composition, which had enough data for this study, aiming to select the 15 best performing. The training period was January 2000 - December 2015, and the out-of-sample January 2016 - August 2021, including the period of high turbulence generated by COVID-19. Fitting the best model revealed that the following regimes are the most suitable: two regimes for DAX returns, two regimes for VSTOXX and three regimes for the inflation rate and for the industrial production, while the posterior transition probabilities were event-depending on the training sample. Furthermore, portfolios built using HMM strategy outperformed the DAX index for the out-of-sample period, both in terms of annualized returns and risk-adjusted returns. The results were in line with expectations and what other researchers like Talla (2013), Nguyen and Nguyen (2015) and Varenius (2020) found out. We managed to highlight that a strategy calibrated based on HMM methodology works well even in periods of extreme volatility such as the one generated in 2020 by COVID-19 pandemic.

Suggested Citation

  • Lolea Iulian Cornel & Stamule Simona, 2021. "Trading using Hidden Markov Models during COVID-19 turbulences," Management & Marketing, Sciendo, vol. 16(4), pages 334-351, December.
  • Handle: RePEc:vrs:manmar:v:16:y:2021:i:4:p:334-351:n:2
    DOI: 10.2478/mmcks-2021-0020
    as

    Download full text from publisher

    File URL: https://doi.org/10.2478/mmcks-2021-0020
    Download Restriction: no

    File URL: https://libkey.io/10.2478/mmcks-2021-0020?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
    ---><---

    References listed on IDEAS

    as
    1. Hasan Arda BURHAN & Eylem ACAR, 2021. "Adaptive Market Hypothesis and Return Predictability: A Hidden Markov Model Application in Borsa IstanbulAbstract: The adaptive market hypothesis (AMH) has recently attracted significant interest in t," Sosyoekonomi Journal, Sosyoekonomi Society.
    2. Fei, Fei & Fuertes, Ana-Maria & Kalotychou, Elena, 2017. "Dependence in credit default swap and equity markets: Dynamic copula with Markov-switching," International Journal of Forecasting, Elsevier, vol. 33(3), pages 662-678.
    3. Tobias Rydén & Timo Teräsvirta & Stefan Åsbrink, 1998. "Stylized facts of daily return series and the hidden Markov model," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 13(3), pages 217-244.
    4. Nana Liu & Zeshui Xu & Marinko Skare, 2021. "The research on COVID-19 and economy from 2019 to 2020: analysis from the perspective of bibliometrics," Oeconomia Copernicana, Institute of Economic Research, vol. 12(2), pages 217-268, June.
    5. Zbigniew Korzeb & Pawel Niedziolka, 2020. "Resistance of commercial banks to the crisis caused by the COVID-19 pandemic: the case of Poland," Equilibrium. Quarterly Journal of Economics and Economic Policy, Institute of Economic Research, vol. 15(2), pages 205-234, June.
    6. Azael Carrasco Sierra & Maria Jesus Cobos Flores & Beatriz Fuentes Duarte & Boris Isauro Hernandez Comi, 2020. "Successful Management System By A Metalworking Mexican Company During Covid-19 Situation. Analysis Through A New Index (Case Study)," International Journal of Entrepreneurial Knowledge, Center for International Scientific Research of VSO and VSPP, vol. 8(2), pages 42-55, June.
    7. Marcucci Juri, 2005. "Forecasting Stock Market Volatility with Regime-Switching GARCH Models," Studies in Nonlinear Dynamics & Econometrics, De Gruyter, vol. 9(4), pages 1-55, December.
    8. Lennart Oelschlager & Timo Adam, 2020. "Detecting bearish and bullish markets in financial time series using hierarchical hidden Markov models," Papers 2007.14874, arXiv.org.
    9. He, Zhen & O'Connor, Fergal & Thijssen, Jacco, 2018. "Is gold a Sometime Safe Haven or an Always Hedge for equity investors? A Markov-Switching CAPM approach for US and UK stock indices," International Review of Financial Analysis, Elsevier, vol. 60(C), pages 30-37.
    10. Jun Zhang & Lan Li & Wei Chen, 2021. "Predicting Stock Price Using Two-Stage Machine Learning Techniques," Computational Economics, Springer;Society for Computational Economics, vol. 57(4), pages 1237-1261, April.
    11. Visser, Ingmar & Speekenbrink, Maarten, 2010. "depmixS4: An R Package for Hidden Markov Models," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 36(i07).
    12. Cepoi, Cosmin-Octavian, 2020. "Asymmetric dependence between stock market returns and news during COVID-19 financial turmoil," Finance Research Letters, Elsevier, vol. 36(C).
    13. Pedro Pardal & Rui Dias & Petr Suler & Nuno Teixeira & Tomas Krulicky, 2020. "Integration in Central European capital markets in the context of the global COVID-19 pandemic," Equilibrium. Quarterly Journal of Economics and Economic Policy, Institute of Economic Research, vol. 15(4), pages 627-650, December.
    14. Joanna Landmesser, 2021. "The use of the dynamic time warping (DTW) method to describe the COVID-19 dynamics in Poland," Oeconomia Copernicana, Institute of Economic Research, vol. 12(3), pages 539-556, September.
    15. Eun-chong Kim & Han-wook Jeong & Nak-young Lee, 2019. "Global Asset Allocation Strategy Using a Hidden Markov Model," JRFM, MDPI, vol. 12(4), pages 1-15, November.
    16. Mingwen Liu & Junbang Huo & Yulin Wu & Jinge Wu, 2021. "Stock Market Trend Analysis Using Hidden Markov Model and Long Short Term Memory," Papers 2104.09700, arXiv.org.
    17. Hosun Ryou & Han Hee Bae & Hee Soo Lee & Kyong Joo Oh, 2020. "Momentum Investment Strategy Using a Hidden Markov Model," Sustainability, MDPI, vol. 12(17), pages 1-16, August.
    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. Andrej Privara, 2022. "Economic growth and labour market in the European Union: lessons from COVID-19," Oeconomia Copernicana, Institute of Economic Research, vol. 13(2), pages 355-377, June.
    2. Diniz-Maganini, Natalia & Diniz, Eduardo H. & Rasheed, Abdul A., 2021. "Bitcoin’s price efficiency and safe haven properties during the COVID-19 pandemic: A comparison," Research in International Business and Finance, Elsevier, vol. 58(C).
    3. Beata Bieszk-Stolorz & Iwona Markowicz, 2022. "The Impact of the COVID-19 Pandemic on the Situation of the Unemployed in Poland. A Study Using Survival Analysis Methods," Sustainability, MDPI, vol. 14(19), pages 1-19, October.
    4. Andriy Stavytskyy & Ganna Kharlamova & Olena Komendant & Jarosław Andrzejczak & Joanna Nakonieczny, 2021. "Methodology for Calculating the Energy Security Index of the State: Taking into Account Modern Megatrends," Energies, MDPI, vol. 14(12), pages 1-19, June.
    5. Haas Markus, 2010. "Skew-Normal Mixture and Markov-Switching GARCH Processes," Studies in Nonlinear Dynamics & Econometrics, De Gruyter, vol. 14(4), pages 1-56, September.
    6. Haas, Markus & Mittnik, Stefan, 2008. "Multivariate regimeswitching GARCH with an application to international stock markets," CFS Working Paper Series 2008/08, Center for Financial Studies (CFS).
    7. Pollák František & Vavrek Roman & Váchal Jan & Markovič Peter & Konečný Michal, 2021. "Analysis of Digital Customer Communities in terms of their interactions during the first wave of the COVID-19 pandemic," Management & Marketing, Sciendo, vol. 16(2), pages 134-151, June.
    8. Marcin Bogdański, 2021. "Employment Diversification as a Determinant of Economic Resilience and Sustainability in Provincial Cities," Sustainability, MDPI, vol. 13(9), pages 1-13, April.
    9. Luca De Angelis & Leonard J. Paas, 2013. "A dynamic analysis of stock markets using a hidden Markov model," Journal of Applied Statistics, Taylor & Francis Journals, vol. 40(8), pages 1682-1700, August.
    10. Anton Gerunov, 2023. "Stock Returns Under Different Market Regimes: An Application of Markov Switching Models to 24 European Indices," Economic Studies journal, Bulgarian Academy of Sciences - Economic Research Institute, issue 1, pages 18-35.
    11. Joanna Landmesser, 2021. "The use of the dynamic time warping (DTW) method to describe the COVID-19 dynamics in Poland," Oeconomia Copernicana, Institute of Economic Research, vol. 12(3), pages 539-556, September.
    12. Jan Bulla & Roland Langrock & Antonello Maruotti, 2019. "Guest editor’s introduction to the special issue on “Hidden Markov Models: Theory and Applications”," METRON, Springer;Sapienza Università di Roma, vol. 77(2), pages 63-66, August.
    13. Beata Bieszk-Stolorz & Iwona Markowicz, 2022. "Changes in Share Prices of Macrosector Companies on the Warsaw Stock Exchange as a Reaction to the COVID-19 Pandemic," Sustainability, MDPI, vol. 14(16), pages 1-18, August.
    14. Katarina Valaskova & Tomas Kliestik & Dominika Gajdosikova, 2021. "Distinctive determinants of financial indebtedness: evidence from Slovak and Czech enterprises," Equilibrium. Quarterly Journal of Economics and Economic Policy, Institute of Economic Research, vol. 16(3), pages 639-659, September.
    15. Milan Kumar Das & Anindya Goswami, 2019. "Testing of binary regime switching models using squeeze duration analysis," International Journal of Financial Engineering (IJFE), World Scientific Publishing Co. Pte. Ltd., vol. 6(01), pages 1-20, March.
    16. Billio, Monica & Casarin, Roberto & Osuntuyi, Anthony, 2016. "Efficient Gibbs sampling for Markov switching GARCH models," Computational Statistics & Data Analysis, Elsevier, vol. 100(C), pages 37-57.
    17. Ataurima Arellano, Miguel & Rodríguez, Gabriel, 2020. "Empirical modeling of high-income and emerging stock and Forex market return volatility using Markov-switching GARCH models," The North American Journal of Economics and Finance, Elsevier, vol. 52(C).
    18. Roman Mestre, 2021. "A wavelet approach of investing behaviors and their effects on risk exposures," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 7(1), pages 1-37, December.
    19. Krämer, Walter & Sibbertsen, Philipp & Kleiber, Christian, 2001. "Long memory vs. structural change in financial time series," Technical Reports 2001,37, Technische Universität Dortmund, Sonderforschungsbereich 475: Komplexitätsreduktion in multivariaten Datenstrukturen.
    20. Massimiliano Marzo & Paolo Zagaglia, 2010. "Volatility forecasting for crude oil futures," Applied Economics Letters, Taylor & Francis Journals, vol. 17(16), pages 1587-1599.

    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:vrs:manmar:v:16:y:2021:i:4:p:334-351: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.sciendo.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.