Hidden Markov Model for Financial Time Series and Its Application to S&P 500 Index

Quantitative Finance, Forthcoming

21 Pages Posted: 4 Jun 2017  

Stephen H.T. Lihn

Novus Partners, Inc.

Date Written: June 2, 2017

Abstract

The R package ldhmm is developed for the study of financial time series using Hidden Markov Model (HMM) with the lambda distribution framework. In particular, S&P 500 index is studied in depth due to its importance in finance and its long history. Major features in the index, such as regime identification, volatility clustering, and anti-correlation between return and volatility, can be extracted from HMM. Univariate symmetric lambda distribution is essentially a location-scale family of power-exponential distribution. Such distribution is suitable for describing highly leptokurtic time series in the financial market. It provides a theoretically solid foundation to explore such data where the normal distribution may not be adequate. The index is analyzed from two states to six states, then ten states. The five-state HMM and above can capture large amount of auto-correlation, matching what's observed in the data. This is a major validation for the HMM. Although the stock market can be broadly classified into the normal regime and the crash regime, The progression of HMM states allows to go beyond the two-regime paradigm. The index history can be decomposed to a spectrum of volatility states. And the trend of the mean and volatility in HMM states confirms the recognized fact that the stock market tends to rise when the volatility is low, while tends to fall when the volatility is high. The pivotal volatility is calculated. Specifically, we compare the expected volatility from the ten-state HMM to both the VIX index with an adjustment factor and the realized volatility from Oxford-Man Realized Library. They match quite well. This indicates high-state HMM can serve as a tool for volatility forecasting.

Keywords: Hidden Markov Model, lambda distribution, volatility forecasting

JEL Classification: G17, C32, C53

Suggested Citation

Lihn, Stephen H.T., Hidden Markov Model for Financial Time Series and Its Application to S&P 500 Index (June 2, 2017). Quantitative Finance, Forthcoming. Available at SSRN: https://ssrn.com/abstract=2979516

Stephen H.T. Lihn (Contact Author)

Novus Partners, Inc. ( email )

200 Park Ave
27th Floor
New York, NY 10166
United States
917-603-4133 (Phone)

Paper statistics

Downloads
187
Rank
132,882
Abstract Views
601