Time series modeling and forecasting based on a Markov chain with changing transition matrices

Abstract The subject of this research is prediction in a financial time series based on a model in the form of Markov chains. The essence of the considered algorithm is to create a sequence of time windows with a fixed length and a fixed division into intervals in the field of function values. The aim of the optimization consisting in finding the best window length, the number of windows and the number of intervals is to increase the predictive efficiency of the transition matrices. In the categories of expert systems, the presented computer program can be considered as imitating and replacing the investor in his manual activity and strongly supporting his mental effort. Two completely different time series were considered: the EUR/USD 1 h currency pair, and the WIG20 1d – the most important Polish stock exchange index. In both cases, the satisfactory adaptability of the proposed method was demonstrated, along with very good properties enabling the building of an effective investment strategy. Essential tests were performed for first-order Markov chains. These tests were also used for comparing the results of the study based on a Markov model of the second-order, which also achieved good results.

[1]  Qiuyan Tao,et al.  Dynamic Financial Distress Prediction Based on Rough Set Theory and EWMA Model , 2013 .

[2]  Cheng Cheng,et al.  A Comparison of Ensemble Methods in Financial Market Prediction , 2012, 2012 Fifth International Joint Conference on Computational Sciences and Optimization.

[3]  Weihui Dai,et al.  Modeling and Computing of Stock Index Forecasting Based on Neural Network and Markov Chain , 2014, TheScientificWorldJournal.

[4]  M. S. Abadeh,et al.  Financial time series prediction by a hybrid memetic computation-based support vector regression (MA-SVR) method , 2015 .

[5]  Chenghu Ma,et al.  A Hidden Markov Chain Modeling of Shanghai Stock Index , 2012 .

[6]  N. H. Bingham,et al.  Modelling and Prediction of Financial Time Series , 2014 .

[7]  Przemyslaw Klesk,et al.  Market Trajectory Recognition and Trajectory Prediction Using Markov Models , 2010, ICAISC.

[8]  Dhiya Al-Jumeily,et al.  Recurrent neural networks inspired by artificial immune algorithm for time series prediction , 2013, The 2013 International Joint Conference on Neural Networks (IJCNN).

[9]  Aneta Bera,et al.  Study on the Effectiveness of the Investment Strategy Based on a Classifier with Rules Adapted by Machine Learning , 2014 .

[10]  Nasser M. Nasrabadi,et al.  Pattern Recognition and Machine Learning , 2006, Technometrics.

[11]  Grant R. Mcqueen,et al.  Are Stock Returns Predictable? A Test Using Markov Chains , 1991 .

[12]  Ruslan Salakhutdinov,et al.  Bayesian probabilistic matrix factorization using Markov chain Monte Carlo , 2008, ICML '08.

[13]  Minvydas Ragulskis,et al.  Algebraic segmentation of short nonstationary time series based on evolutionary prediction algorithms , 2013, Neurocomputing.

[14]  Sahil Shah,et al.  Predicting stock and stock price index movement using Trend Deterministic Data Preparation and machine learning techniques , 2015, Expert Syst. Appl..

[15]  Hui Xiao-feng A new stock index fuzzy stochastic prediction model developed by introducing a Markov chain , 2011 .

[16]  Chulwoo Han,et al.  Deep learning networks for stock market analysis and prediction: Methodology, data representations, and case studies , 2017, Expert Syst. Appl..

[17]  Richard L. Tweedie,et al.  Markov Chains and Stochastic Stability , 1993, Communications and Control Engineering Series.

[18]  A.M. Gonzalez,et al.  Modeling and forecasting electricity prices with input/output hidden Markov models , 2005, IEEE Transactions on Power Systems.

[19]  J. Murphy Technical Analysis of the Futures Markets: A Comprehensive Guide to Trading Methods and Applications , 1986 .

[20]  Joe Krutsinger Trading Systems: Secrets of the Masters , 1997 .

[21]  Boris Kovalerchuk,et al.  Visual knowledge discovery and machine learning for investment strategy , 2017, Cognitive Systems Research.

[22]  Siddhartha Chib,et al.  Markov Chain Monte Carlo Simulation Methods in Econometrics , 1996, Econometric Theory.

[23]  Amir H. Alizadeh,et al.  A Markov regime switching approach for hedging stock indices , 2004 .

[24]  Eric Horvitz,et al.  Decision theory in expert systems and artificial intelligenc , 1988, Int. J. Approx. Reason..

[25]  Stephen P. Brooks,et al.  Markov chain Monte Carlo method and its application , 1998 .