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. 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..
    2. 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.
    3. 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.
    4. Nguyet Nguyen & Dung Nguyen, 2015. "Hidden Markov Model for Stock Selection," Risks, MDPI, vol. 3(4), pages 1-19, October.
    5. Carhart, Mark M, 1997. "On Persistence in Mutual Fund Performance," Journal of Finance, American Finance Association, vol. 52(1), pages 57-82, March.
    6. Frazzini, Andrea & Pedersen, Lasse Heje, 2014. "Betting against beta," Journal of Financial Economics, Elsevier, vol. 111(1), pages 1-25.
    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. 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.
    9. 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.
    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. Scott Condie & Lars Stentoft & Marie-Louise Vierø, 2023. "Unawareness Premia," Economics Working Papers 2023-09, Department of Economics and Business Economics, Aarhus University.
    3. 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.
    4. Carlo Rosa, 2022. "Understanding intraday momentum strategies," Journal of Futures Markets, John Wiley & Sons, Ltd., vol. 42(12), pages 2218-2234, December.
    5. 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.
    6. 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.
    7. 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.
    8. 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).
    9. 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.
    10. 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.
    11. Vendrame, Vasco & Guermat, Cherif & Tucker, Jon, 2023. "A conditional higher-moment CAPM," International Review of Financial Analysis, Elsevier, vol. 86(C).
    12. Beaulieu, Marie-Claude & Dufour, Jean-Marie & Khalaf, Lynda, 2010. "Asset-pricing anomalies and spanning: Multivariate and multifactor tests with heavy-tailed distributions," Journal of Empirical Finance, Elsevier, vol. 17(4), pages 763-782, September.
    13. Michael Hasler & Charles Martineau, 2023. "Explaining the Failure of the Unconditional CAPM with the Conditional CAPM," Management Science, INFORMS, vol. 69(3), pages 1835-1855, March.
    14. Andrei Salem Gonçalves & Robert Aldo Iquiapaza & Aureliano Angel Bressan, 2012. "Latent Fundamentals Arbitrage with a Mixed Effects Factor Model," Brazilian Review of Finance, Brazilian Society of Finance, vol. 10(3), pages 317-335.
    15. Christian Fieberg & Armin Varmaz & Thorsten Poddig, 2016. "Covariances vs. characteristics: what does explain the cross section of the German stock market returns?," Business Research, Springer;German Academic Association for Business Research, vol. 9(1), pages 27-50, April.
    16. Dahlquist, Magnus & Odegaard, Bernt Arne, 2018. "A Review of Norges Bank's Active Management of the Government Pension Fund Global," UiS Working Papers in Economics and Finance 2018/1, University of Stavanger.
    17. Massimo Guidolin & Manuela Pedio & Dimos Andronoudis, 2019. "How Smart is the Real Estate Smart Beta? Evidence from Optimal Style Factor Strategies for REITs," BAFFI CAREFIN Working Papers 19117, BAFFI CAREFIN, Centre for Applied Research on International Markets Banking Finance and Regulation, Universita' Bocconi, Milano, Italy.
    18. Alles Rodrigues, Alexandre & Casalin, Fabrizio, 2022. "Factor investing in Brazil: Diversifying across factor tilts and allocation strategies," Emerging Markets Review, Elsevier, vol. 52(C).
    19. Olivier Dessaint & Jacques Olivier & Clemens A Otto & David Thesmar, 2021. "CAPM-Based Company (Mis)valuations [Credit lines as monitored liquidity insurance: Theory and evidence]," The Review of Financial Studies, Society for Financial Studies, vol. 34(1), pages 1-66.
    20. Stephen A. Gorman & Frank J. Fabozzi, 2021. "The ABC’s of the alternative risk premium: academic roots," Journal of Asset Management, Palgrave Macmillan, vol. 22(6), pages 405-436, October.

    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.