Abstract

Stock market is one of the most important parts of the investment market. Compared with other industries, the stock market not only has a higher rate of return on investment but also has a higher risk, and stock price prediction has always been a close concern of investors. Therefore, the research on stock price prediction methods and how to reduce the error of stock price prediction has become a hot topic for many scholars at home and abroad. In recent years, the development of computer technology such as machine learning and econometric method makes the stock price prediction more reliable. Due to the hidden Markov nature of stock price, this paper proposes a stock price prediction method based on hidden Markov model (HMM). To be specific, since the data of stock price have continuity in time series, it is necessary to extend the discrete HMM to the continuous HMM, and then put forward the up and down trend prediction model based on the continuous HMM. The first-order continuous HMM is extended to the second-order continuous HMM, and the stock price is predicted by combining the prediction method of fluctuation range. As a result, the proposed second-order continuous HMM-based stock price prediction model is simulated on Hang Seng Index (HSI), one of the earliest stock market indexes in Hong Kong. The evaluation results on six months HSI show that the predicted value of the proposed model is very close to the actual value and outperforms three benchmarks in terms of RMSE, MAE, and R2.

Highlights

  • In recent years, with the increasing number of listed companies, stock has become one of the hot topics in the financial field [1]

  • Stock Price Prediction Model. is section proposes a new prediction method based on the continuous hidden Markov model (HMM) Baum–Welch algorithm combined with K-means clustering and dichotomy to classify data, and the specific steps are as follows: Step 1

  • In order to evaluate the performance of the proposed algorithm on stock price prediction, this paper uses three regression evaluation metrics: root mean square error (RMSE), mean absolute error (MAE), and R2 to quantify the performance of the model. e three metrics are calculated as follows:

Read more

Summary

Introduction

With the increasing number of listed companies, stock has become one of the hot topics in the financial field [1]. As the number of investors in the stock market increases year by year, only by accurately analyzing the future trend of stock prices can quickly grasp the market trend and obtain more investment returns. E efficient market hypothesis is equivalent to the fact that the stock price has fully reflected all the known information, so any information that affects the price can predict the return rate of the stock. In the traditional quantitative investment field, the selection of target stocks and the prediction of stock prices are mostly based on the results of long-term stock market experience [11]. E main contribution of this paper is that the secondorder continuous HMM-based model is constructed for stock price prediction.

Related Work
HMM-Based Stock Price Prediction
Second-Order Continuous HMM
Stock Price
Experimental Setup
Experimental Results
Conclusion and Future Work
Full Text
Published version (Free)

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call