An Approach for Stock Modeling and Prediction Using Latency-based HMM and Bayesian Network

Yiqiong Xue,Xiaodong Liu
DOI: https://doi.org/10.1145/3695719.3695725
2024-01-01
Abstract:Using scientific and effective methods to analyze the stock market can provide more accurate market insights. In comparison to deep learning methods, the hidden Markov model (HMM) offers better interpretability. However, HMM has limitations in effectively predicting discrete data and representing relationships between predicted values. Additionally, some indicators show poor predictive performance regardless of whether HMM or deep learning methods are employed. Therefore, this paper aims to propose a more interpretable approach to stock modeling and prediction by combining Bayesian networks and Latency-based HMM. Firstly, various stock indicators are introduced, and the stock data is preprocessed using one-hot encoding and Bayesian discretization. Then, the Bayesian network between each indicator is constructed, also the independence test and confusion matrix are used to ensure the rationality of the network structure. Furthermore, by adjusting the length of the search window, the paper identifies an HMM with the minimum error for time series prediction of continuous data. Compared with other methods, this model demonstrates higher accuracy. Finally, this paper utilizes Bayesian inference and kernel density estimation to realize the prediction of some continuous and discrete data, and gives some suggestions for future research directions.
What problem does this paper attempt to address?