IDEAS home Printed from https://ideas.repec.org/p/arx/papers/2007.14874.html
   My bibliography  Save this paper

Detecting bearish and bullish markets in financial time series using hierarchical hidden Markov models

Author

Listed:
  • Lennart Oelschlager
  • Timo Adam

Abstract

Financial markets exhibit alternating periods of rising and falling prices. Stock traders seeking to make profitable investment decisions have to account for those trends, where the goal is to accurately predict switches from bullish towards bearish markets and vice versa. Popular tools for modeling financial time series are hidden Markov models, where a latent state process is used to explicitly model switches among different market regimes. In their basic form, however, hidden Markov models are not capable of capturing both short- and long-term trends, which can lead to a misinterpretation of short-term price fluctuations as changes in the long-term trend. In this paper, we demonstrate how hierarchical hidden Markov models can be used to draw a comprehensive picture of financial markets, which can contribute to the development of more sophisticated trading strategies. The feasibility of the suggested approach is illustrated in two real-data applications, where we model data from two major stock indices, the Deutscher Aktienindex and the Standard & Poor's 500.

Suggested Citation

  • Lennart Oelschlager & Timo Adam, 2020. "Detecting bearish and bullish markets in financial time series using hierarchical hidden Markov models," Papers 2007.14874, arXiv.org.
  • Handle: RePEc:arx:papers:2007.14874
    as

    Download full text from publisher

    File URL: http://arxiv.org/pdf/2007.14874
    File Function: Latest version
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. 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.
    2. Nguyet Nguyen, 2018. "Hidden Markov Model for Stock Trading," IJFS, MDPI, vol. 6(2), pages 1-17, March.
    3. Bulla, Jan & Bulla, Ingo, 2006. "Stylized facts of financial time series and hidden semi-Markov models," Computational Statistics & Data Analysis, Elsevier, vol. 51(4), pages 2192-2209, December.
    4. Vianey Leos-Barajas & Eric J. Gangloff & Timo Adam & Roland Langrock & Floris M. Beest & Jacob Nabe-Nielsen & Juan M. Morales, 2017. "Multi-scale Modeling of Animal Movement and General Behavior Data Using Hidden Markov Models with Hierarchical Structures," Journal of Agricultural, Biological and Environmental Statistics, Springer;The International Biometric Society;American Statistical Association, vol. 22(3), pages 232-248, September.
    5. Cohen, Lauren & Diether, Karl & Malloy, Christopher, 2013. "Legislating stock prices," Journal of Financial Economics, Elsevier, vol. 110(3), pages 574-595.
    6. Andreas Humpe & Peter Macmillan, 2009. "Can macroeconomic variables explain long-term stock market movements? A comparison of the US and Japan," Applied Financial Economics, Taylor & Francis Journals, vol. 19(2), pages 111-119.
    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. 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.
    2. Tiago Monteiro, 2024. "AI-Powered Energy Algorithmic Trading: Integrating Hidden Markov Models with Neural Networks," Papers 2407.19858, arXiv.org, revised Aug 2024.
    3. Adam, Timo & Mayr, Andreas & Kneib, Thomas, 2022. "Gradient boosting in Markov-switching generalized additive models for location, scale, and shape," Econometrics and Statistics, Elsevier, vol. 22(C), pages 3-16.

    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. 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.
    2. Yizhan Shu & Chenyu Yu & John M. Mulvey, 2024. "Downside risk reduction using regime-switching signals: a statistical jump model approach," Journal of Asset Management, Palgrave Macmillan, vol. 25(5), pages 493-507, September.
    3. Holzmann, Hajo & Schwaiger, Florian, 2016. "Testing for the number of states in hidden Markov models," Computational Statistics & Data Analysis, Elsevier, vol. 100(C), pages 318-330.
    4. Yizhan Shu & Chenyu Yu & John M. Mulvey, 2024. "Downside Risk Reduction Using Regime-Switching Signals: A Statistical Jump Model Approach," Papers 2402.05272, arXiv.org, revised Sep 2024.
    5. Jan Bulla, 2010. "Hidden Markov models with t components. Increased persistence and other aspects," Quantitative Finance, Taylor & Francis Journals, vol. 11(3), pages 459-475.
    6. Laurie Davies & Walter Kraemer, 2016. "Stylized Facts and Simulating Long Range Financial Data," CESifo Working Paper Series 5796, CESifo.
    7. Maruotti, Antonello & Petrella, Lea & Sposito, Luca, 2021. "Hidden semi-Markov-switching quantile regression for time series," Computational Statistics & Data Analysis, Elsevier, vol. 159(C).
    8. Elie Bouri & Rangan Gupta & Shixuan Wang, 2019. "Contagion between Stock and Real Estate Markets: International Evidence from a Local Gaussian Correlation Approach," Working Papers 201917, University of Pretoria, Department of Economics.
    9. Kaihua Deng, 2018. "Another Look at Large-Cap Stock Return Comovement: A Semi-Markov-Switching Approach," Computational Economics, Springer;Society for Computational Economics, vol. 51(2), pages 227-262, February.
    10. 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.
    11. Milan Kumar Das & Anindya Goswami, 2018. "Testing of Binary Regime Switching Models using Squeeze Duration Analysis," Papers 1807.04393, arXiv.org, revised Aug 2018.
    12. Apergis, Nicholas & Gozgor, Giray & Lau, Chi Keung Marco & Wang, Shixuan, 2019. "Decoding the Australian electricity market: New evidence from three-regime hidden semi-Markov model," Energy Economics, Elsevier, vol. 78(C), pages 129-142.
    13. 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.
    14. Haas, Markus, 2009. "Persistence in volatility, conditional kurtosis, and the Taylor property in absolute value GARCH processes," Statistics & Probability Letters, Elsevier, vol. 79(15), pages 1674-1683, August.
    15. 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.
    16. Roland Langrock & Timo Adam & Vianey Leos‐Barajas & Sina Mews & David L. Miller & Yannis P. Papastamatiou, 2018. "Spline‐based nonparametric inference in general state‐switching models," Statistica Neerlandica, Netherlands Society for Statistics and Operations Research, vol. 72(3), pages 179-200, August.
    17. Bernardi, Mauro & Maruotti, Antonello & Petrella, Lea, 2017. "Multiple risk measures for multivariate dynamic heavy–tailed models," Journal of Empirical Finance, Elsevier, vol. 43(C), pages 1-32.
    18. Jan Bulla & Sascha Mergner & Ingo Bulla & André Sesboüé & Christophe Chesneau, 2011. "Markov-switching asset allocation: Do profitable strategies exist?," Journal of Asset Management, Palgrave Macmillan, vol. 12(5), pages 310-321, November.
    19. Liu, Zhenya & Wang, Shixuan, 2017. "Decoding Chinese stock market returns: Three-state hidden semi-Markov model," Pacific-Basin Finance Journal, Elsevier, vol. 44(C), pages 127-149.
    20. Elie Bouri & Rangan Gupta & Shixuan Wang, 2022. "Nonlinear contagion between stock and real estate markets: International evidence from a local Gaussian correlation approach," International Journal of Finance & Economics, John Wiley & Sons, Ltd., vol. 27(2), pages 2089-2109, April.

    More about this item

    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:arx:papers:2007.14874. 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: arXiv administrators (email available below). General contact details of provider: http://arxiv.org/ .

    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.