Irma Palupi, Bambang Ari Wahyudi, Agung Perdana Putra
{"title":"Implementation of Hidden Markov Model (HMM) to Predict Financial Market Regime","authors":"Irma Palupi, Bambang Ari Wahyudi, Agung Perdana Putra","doi":"10.1109/ICoICT52021.2021.9527459","DOIUrl":null,"url":null,"abstract":"This work performs how to implement the concept of Hidden Markov Model (HMM) to find financial market trend for given only the observed state obtained from the stock price. The considered market trend is set as a hidden state, that in the financial technical analysis known as Bearish, Bullish, and Sideway, which are important for decision making of stock trading in order to recognize the good moment to sell, to buy or to just hold the shares. In order to obtain the most likely sequence of hidden states through HMM, which is computationally can be a dynamic programming problem, we explain how the Viterbi algorithm work for the case in this study. To get the stock price prediction as observation states, the ARIMA model is used based on experimental trial of fitting model, then use the result as a predicted observed states that be the input to predict the market trend using HMM for the short period of future time. Several interesting results of hidden market trend and its study are also provided, including the accuracy, precision, recall and the consistency of the model to the given data set.","PeriodicalId":191671,"journal":{"name":"2021 9th International Conference on Information and Communication Technology (ICoICT)","volume":"12 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2021-08-03","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"3","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2021 9th International Conference on Information and Communication Technology (ICoICT)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ICoICT52021.2021.9527459","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 3
Abstract
This work performs how to implement the concept of Hidden Markov Model (HMM) to find financial market trend for given only the observed state obtained from the stock price. The considered market trend is set as a hidden state, that in the financial technical analysis known as Bearish, Bullish, and Sideway, which are important for decision making of stock trading in order to recognize the good moment to sell, to buy or to just hold the shares. In order to obtain the most likely sequence of hidden states through HMM, which is computationally can be a dynamic programming problem, we explain how the Viterbi algorithm work for the case in this study. To get the stock price prediction as observation states, the ARIMA model is used based on experimental trial of fitting model, then use the result as a predicted observed states that be the input to predict the market trend using HMM for the short period of future time. Several interesting results of hidden market trend and its study are also provided, including the accuracy, precision, recall and the consistency of the model to the given data set.