IDEAS home Printed from https://ideas.repec.org/a/gam/jjrfmx/v13y2020i12p311-d457386.html
   My bibliography  Save this article

Regime-Switching Factor Investing with Hidden Markov Models

Author

Listed:
  • Matthew Wang

    (Electrical and Computer Engineering, Northwestern University, Evanston, IL 60208, USA)

  • Yi-Hong Lin

    (Media IC & System Lab, National Taiwan University, Taipei 10617, Taiwan)

  • Ilya Mikhelson

    (Electrical and Computer Engineering, Northwestern University, Evanston, IL 60208, USA)

Abstract

This study uses the hidden Markov model (HMM) to identify different market regimes in the US stock market and proposes an investment strategy that switches factor investment models depending on the current detected regime. We first backtested an array of different factor models over a roughly 10.5 year period from January 2007 to September 2017, then we trained the HMM on S&P 500 ETF historical data to identify market regimes of that period. By analyzing the relationship between factor model returns and different market regimes, we are able to establish the basis of our regime-switching investing model. We then back-tested our model on out-of-sample historical data from September 2017 to April 2020 and found that it both delivers higher absolute returns and performs better than each of the individual factor models according to traditional portfolio benchmarking metrics.

Suggested Citation

  • 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.
  • Handle: RePEc:gam:jjrfmx:v:13:y:2020:i:12:p:311-:d:457386
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/1911-8074/13/12/311/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/1911-8074/13/12/311/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. José P. Dapena & Juan A. Serur & Julián R. Siri, 2019. "Risk on-Risk off: A regime switching model for active portfolio management," CEMA Working Papers: Serie Documentos de Trabajo. 706, Universidad del CEMA.
    2. Andrew Ang & Geert Bekaert & Min Wei, 2008. "The Term Structure of Real Rates and Expected Inflation," Journal of Finance, American Finance Association, vol. 63(2), pages 797-849, April.
    3. Nguyet Nguyen & Dung Nguyen, 2015. "Hidden Markov Model for Stock Selection," Risks, MDPI, vol. 3(4), pages 1-19, October.
    4. Stephen A. Ross, 2013. "The Arbitrage Theory of Capital Asset Pricing," World Scientific Book Chapters, in: Leonard C MacLean & William T Ziemba (ed.), HANDBOOK OF THE FUNDAMENTALS OF FINANCIAL DECISION MAKING Part I, chapter 1, pages 11-30, World Scientific Publishing Co. Pte. Ltd..
    5. Frazzini, Andrea & Pedersen, Lasse Heje, 2014. "Betting against beta," Journal of Financial Economics, Elsevier, vol. 111(1), pages 1-25.
    6. 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.
    7. 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.
    8. Carhart, Mark M, 1997. "On Persistence in Mutual Fund Performance," Journal of Finance, American Finance Association, vol. 52(1), pages 57-82, March.
    9. Fama, Eugene F. & French, Kenneth R., 1993. "Common risk factors in the returns on stocks and bonds," Journal of Financial Economics, Elsevier, vol. 33(1), pages 3-56, February.
    10. Manuel Ammann & Michael Verhofen, 2006. "The Effect of Market Regimes on Style Allocation," Financial Markets and Portfolio Management, Springer;Swiss Society for Financial Market Research, vol. 20(3), pages 309-337, September.
    11. Eugene F. Fama & Kenneth R. French, 2004. "The Capital Asset Pricing Model: Theory and Evidence," Journal of Economic Perspectives, American Economic Association, vol. 18(3), pages 25-46, Summer.
    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. Lim Hao Shen Keith, 2024. "Covariance Matrix Analysis for Optimal Portfolio Selection," Papers 2407.08748, arXiv.org.

    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. Beck, Elliot & De Nard, Gianluca & Wolf, Michael, 2023. "Improved inference in financial factor models," International Review of Economics & Finance, Elsevier, vol. 86(C), pages 364-379.
    2. Adam Zaremba & Jacob Koby Shemer, 2018. "Price-Based Investment Strategies," Springer Books, Springer, number 978-3-319-91530-2, February.
    3. Gagliardini, Patrick & Ossola, Elisa & Scaillet, Olivier, 2019. "A diagnostic criterion for approximate factor structure," Journal of Econometrics, Elsevier, vol. 212(2), pages 503-521.
    4. Scott Condie & Lars Stentoft & Marie-Louise Vierø, 2023. "Unawareness Premia," Economics Working Papers 2023-09, Department of Economics and Business Economics, Aarhus University.
    5. Sabine Elmiger, 2019. "CAPM-anomalies: quantitative puzzles," Economic Theory, Springer;Society for the Advancement of Economic Theory (SAET), vol. 68(3), pages 643-667, October.
    6. Joel M. Vanden, 2021. "Equilibrium asset pricing and the cross section of expected returns," Annals of Finance, Springer, vol. 17(2), pages 153-186, June.
    7. Jan A. Kempkes & Francesco Suprano & Andreas Wömpener, 2023. "An empirical evaluation of dynamic approaches for estimating firms’ expected cost of equity capital," The Financial Review, Eastern Finance Association, vol. 58(4), pages 859-886, November.
    8. Stafylas, Dimitrios & Anderson, Keith & Uddin, Moshfique, 2018. "Hedge fund performance attribution under various market conditions," International Review of Financial Analysis, Elsevier, vol. 56(C), pages 221-237.
    9. Carlo Rosa, 2022. "Understanding intraday momentum strategies," Journal of Futures Markets, John Wiley & Sons, Ltd., vol. 42(12), pages 2218-2234, December.
    10. Alex R. Horenstein, 2021. "The Unintended Impact of Academic Research on Asset Returns: The Capital Asset Pricing Model Alpha," Management Science, INFORMS, vol. 67(6), pages 3655-3673, June.
    11. Amit Goyal, 2012. "Empirical cross-sectional asset pricing: a survey," Financial Markets and Portfolio Management, Springer;Swiss Society for Financial Market Research, vol. 26(1), pages 3-38, March.
    12. Olivier, Jacques & Dessaint, Olivier & Otto, Clemens A. & Thesmar, David, 2017. "CAPM-Based Company (Mis)valuations," HEC Research Papers Series 1235, HEC Paris, revised 20 Mar 2018.
    13. Ma, Tian & Leong, Wen Jun & Jiang, Fuwei, 2023. "A latent factor model for the Chinese stock market," International Review of Financial Analysis, Elsevier, vol. 87(C).
    14. Paul Schneider & Christian Wagner & Josef Zechner, 2020. "Low‐Risk Anomalies?," Journal of Finance, American Finance Association, vol. 75(5), pages 2673-2718, October.
    15. Gagliardini, Patrick & Ossola, Elisa & Scaillet, Olivier, 2019. "Estimation of large dimensional conditional factor models in finance," Working Papers unige:125031, University of Geneva, Geneva School of Economics and Management.
    16. Sangwon Suh & Wonho Song & Bong-Soo Lee, 2014. "A new method for forming asset pricing factors from firm characteristics," Applied Economics, Taylor & Francis Journals, vol. 46(28), pages 3463-3482, October.
    17. Alles Rodrigues, Alexandre & Casalin, Fabrizio, 2022. "Factor investing in Brazil: Diversifying across factor tilts and allocation strategies," Emerging Markets Review, Elsevier, vol. 52(C).
    18. Golam Sarwar & Cesario Mateus & Natasa Todorovic, 2017. "A tale of two states: asymmetries in the UK small, value and momentum premiums," Applied Economics, Taylor & Francis Journals, vol. 49(5), pages 456-476, January.
    19. Güler ARAS & İlhan ÇAM & Bilal ZAVALSIZ & Serkan KESKİN, 2018. "Fama-French Çok Faktör Varlık Fiyatlama Modellerinin Performanslarının Karşılaştırılması: Borsa İstanbul Üzerine Bir Uygulama," Istanbul Business Research, Istanbul University Business School, vol. 47(2), pages 183-207, November.
    20. Vendrame, Vasco & Guermat, Cherif & Tucker, Jon, 2023. "A conditional higher-moment CAPM," International Review of Financial Analysis, Elsevier, vol. 86(C).

    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:jjrfmx:v:13:y:2020:i:12:p:311-:d:457386. 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.