IDEAS home Printed from https://ideas.repec.org/a/spr/sankhb/v85y2023i1d10.1007_s13571-022-00290-5.html
   My bibliography  Save this article

Optimal Stock Portfolio Selection with a Multivariate Hidden Markov Model

Author

Listed:
  • Reetam Majumder

    (University of Maryland Baltimore County)

  • Qing Ji

    (Procter & Gamble)

  • Nagaraj K. Neerchal

    (University of Maryland Baltimore County)

Abstract

The underlying market trends that drive stock price fluctuations are often referred to in terms of bull and bear markets. Optimal stock portfolio selection methods need to take into account these market trends; however, the bull and bear market states tend to be unobserved and can only be assigned retrospectively. We fit a linked hidden Markov model (LHMM) to relative stock price changes for S&P 500 stocks from 2011–2016 based on weekly closing values. The LHMM consists of a multivariate state process whose individual components correspond to HMMs for each of the 12 sectors of the S&P 500 stocks. The state processes are linked using a Gaussian copula so that the states of the component chains are correlated at any given time point. The LHMM allows us to capture more heterogeneity in the underlying market dynamics for each sector. In this study, stock performances are evaluated in terms of capital gains using the LHMM by utilizing historical stock price data. Based on the fitted LHMM, optimal stock portfolios are constructed to maximize capital gain while balancing reward and risk. Under out-of-sample testing, the annual capital gain for the portfolios for 2016–2017 are calculated. Portfolios constructed using the LHMM are able to generate returns comparable to the S&P 500 index.

Suggested Citation

  • Reetam Majumder & Qing Ji & Nagaraj K. Neerchal, 2023. "Optimal Stock Portfolio Selection with a Multivariate Hidden Markov Model," Sankhya B: The Indian Journal of Statistics, Springer;Indian Statistical Institute, vol. 85(1), pages 177-198, May.
  • Handle: RePEc:spr:sankhb:v:85:y:2023:i:1:d:10.1007_s13571-022-00290-5
    DOI: 10.1007/s13571-022-00290-5
    as

    Download full text from publisher

    File URL: http://link.springer.com/10.1007/s13571-022-00290-5
    File Function: Abstract
    Download Restriction: Access to the full text of the articles in this series is restricted.

    File URL: https://libkey.io/10.1007/s13571-022-00290-5?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. Nguyet Nguyen, 2018. "Hidden Markov Model for Stock Trading," IJFS, MDPI, vol. 6(2), pages 1-17, March.
    2. Robert J. Elliott & John van der Hoek, 1997. "An application of hidden Markov models to asset allocation problems (*)," Finance and Stochastics, Springer, vol. 1(3), pages 229-238.
    3. 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).
    4. Mark Fiecas & Jürgen Franke & Rainer von Sachs & Joseph Tadjuidje Kamgaing, 2017. "Shrinkage Estimation for Multivariate Hidden Markov Models," Journal of the American Statistical Association, Taylor & Francis Journals, vol. 112(517), pages 424-435, January.
    5. Nguyet Nguyen & Dung Nguyen, 2015. "Hidden Markov Model for Stock Selection," Risks, MDPI, vol. 3(4), pages 1-19, October.
    6. Elliott, Robert J. & Siu, Tak Kuen & Badescu, Alex, 2010. "On mean-variance portfolio selection under a hidden Markovian regime-switching model," Economic Modelling, Elsevier, vol. 27(3), pages 678-686, May.
    7. Hamilton, James D, 1989. "A New Approach to the Economic Analysis of Nonstationary Time Series and the Business Cycle," Econometrica, Econometric Society, vol. 57(2), pages 357-384, March.
    8. Fiecas, Marc & Franke, Jurgen & von Sachs, Rainer & Tadjuidje, Joseph, 2017. "Shrinkage Estimation for Multivariate Hidden Markov Mixture Models," LIDAM Reprints ISBA 2017032, Université catholique de Louvain, Institute of Statistics, Biostatistics and Actuarial Sciences (ISBA).
    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. 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.
    2. Marcelo Lewin & Carlos Heitor Campani, 2023. "Constrained portfolio strategies in a regime-switching economy," Financial Markets and Portfolio Management, Springer;Swiss Society for Financial Market Research, vol. 37(1), pages 27-59, March.
    3. Hunt, Julien & Devolder, Pierre, 2011. "Semi Markov regime switching interest rate models and minimal entropy measure," LIDAM Discussion Papers ISBA 2011010, Université catholique de Louvain, Institute of Statistics, Biostatistics and Actuarial Sciences (ISBA).
    4. Shen, Yang & Siu, Tak Kuen, 2012. "Asset allocation under stochastic interest rate with regime switching," Economic Modelling, Elsevier, vol. 29(4), pages 1126-1136.
    5. Dong-Mei Zhu & Jiejun Lu & Wai-Ki Ching & Tak-Kuen Siu, 2019. "Option Pricing Under a Stochastic Interest Rate and Volatility Model with Hidden Markovian Regime-Switching," Computational Economics, Springer;Society for Computational Economics, vol. 53(2), pages 555-586, February.
    6. Tak Kuen Siu & Robert J. Elliott, 2019. "Hedging Options In A Doubly Markov-Modulated Financial Market Via Stochastic Flows," International Journal of Theoretical and Applied Finance (IJTAF), World Scientific Publishing Co. Pte. Ltd., vol. 22(08), pages 1-41, December.
    7. Matthew Wang & Yi-Hong Lin & Ilya Mikhelson, 2020. "Regime-Switching Factor Investing with Hidden Markov Models," JRFM, MDPI, vol. 13(12), pages 1-15, December.
    8. Vrontos, Spyridon D. & Galakis, John & Vrontos, Ioannis D., 2021. "Modeling and predicting U.S. recessions using machine learning techniques," International Journal of Forecasting, Elsevier, vol. 37(2), pages 647-671.
    9. Georges Dionne & Amir Saissi Hassani, 2015. "Endogenous Hidden Markov Regimes in Operational Loss Data: Application to the Recent Financial Crisis," Cahiers de recherche 1516, CIRPEE.
    10. Hunt, Julien & Devolder, Pierre, 2011. "Semi-Markov regime switching interest rate models and minimal entropy measure," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 390(21), pages 3767-3781.
    11. Rob Hayward & Jens Hölscher, 2017. "The Forward-Discount Puzzle in Central and Eastern Europe," Comparative Economic Studies, Palgrave Macmillan;Association for Comparative Economic Studies, vol. 59(4), pages 472-497, December.
    12. Siu, Tak Kuen, 2008. "A game theoretic approach to option valuation under Markovian regime-switching models," Insurance: Mathematics and Economics, Elsevier, vol. 42(3), pages 1146-1158, June.
    13. Nguyet Nguyen & Dung Nguyen, 2020. "Global Stock Selection with Hidden Markov Model," Risks, MDPI, vol. 9(1), pages 1-18, December.
    14. von Sachs, Rainer, 2019. "Spectral Analysis of Multivariate Time Series," LIDAM Discussion Papers ISBA 2019008, Université catholique de Louvain, Institute of Statistics, Biostatistics and Actuarial Sciences (ISBA).
    15. Levy, Moshe & Kaplanski, Guy, 2015. "Portfolio selection in a two-regime world," European Journal of Operational Research, Elsevier, vol. 242(2), pages 514-524.
    16. Liang, Zongxia & Song, Min, 2015. "Time-consistent reinsurance and investment strategies for mean–variance insurer under partial information," Insurance: Mathematics and Economics, Elsevier, vol. 65(C), pages 66-76.
    17. Zhengjun Jiang & Martijn Pistorius, 2012. "Optimal dividend distribution under Markov regime switching," Finance and Stochastics, Springer, vol. 16(3), pages 449-476, July.
    18. 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.
    19. Su, Xiaoshan & Bai, Manying & Han, Yingwei, 2021. "Robust portfolio selection with regime switching and asymmetric dependence," Economic Modelling, Elsevier, vol. 99(C).
    20. Zhu, Dong-Mei & Lu, Jiejun & Ching, Wai-Ki & Siu, Tak-Kuen, 2017. "Discrete-time optimal asset allocation under Higher-Order Hidden Markov Model," Economic Modelling, Elsevier, vol. 66(C), pages 223-232.

    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:spr:sankhb:v:85:y:2023:i:1:d:10.1007_s13571-022-00290-5. 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: Sonal Shukla or Springer Nature Abstracting and Indexing (email available below). General contact details of provider: http://www.springer.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.