Stock Price Prediction via Discovering Multi-Frequency Trading Patterns

Stock prices are formed based on short and/or long-term commercial and trading activities that reflect different frequencies of trading patterns. However, these patterns are often elusive as they are affected by many uncertain political-economic factors in the real world, such as corporate performances, government policies, and even breaking news circulated across markets. Moreover, time series of stock prices are non-stationary and non-linear, making the prediction of future price trends much challenging. To address them, we propose a novel State Frequency Memory (SFM) recurrent network to capture the multi-frequency trading patterns from past market data to make long and short term predictions over time. Inspired by Discrete Fourier Transform (DFT), the SFM decomposes the hidden states of memory cells into multiple frequency components, each of which models a particular frequency of latent trading pattern underlying the fluctuation of stock price. Then the future stock prices are predicted as a nonlinear mapping of the combination of these components in an Inverse Fourier Transform (IFT) fashion. Modeling multi-frequency trading patterns can enable more accurate predictions for various time ranges: while a short-term prediction usually depends on high frequency trading patterns, a long-term prediction should focus more on the low frequency trading patterns targeting at long-term return. Unfortunately, no existing model explicitly distinguishes between various frequencies of trading patterns to make dynamic predictions in literature. The experiments on the real market data also demonstrate more competitive performance by the SFM as compared with the state-of-the-art methods.

[1]  Han Qiao,et al.  Is technical analysis informative in UK stock market? Evidence from decomposition-based vector autoregressive (DVAR) model , 2014, J. Syst. Sci. Complex..

[2]  Kyoung-jae Kim,et al.  Simultaneous optimization of artificial neural networks for financial forecasting , 2012, Applied Intelligence.

[3]  Ricardo A. S. Fernandes,et al.  Maximum and minimum stock price forecasting of Brazilian power distribution companies based on artificial neural networks , 2015, Appl. Soft Comput..

[4]  D. Posada,et al.  Model selection and model averaging in phylogenetics: advantages of akaike information criterion and bayesian approaches over likelihood ratio tests. , 2004, Systematic biology.

[5]  Jürgen Schmidhuber,et al.  Framewise phoneme classification with bidirectional LSTM and other neural network architectures , 2005, Neural Networks.

[6]  Yoshua Bengio,et al.  Gradient Flow in Recurrent Nets: the Difficulty of Learning Long-Term Dependencies , 2001 .

[7]  Uzay Kaymak,et al.  An Automated Framework for Incorporating News into Stock Trading Strategies , 2014, IEEE Transactions on Knowledge and Data Engineering.

[8]  Surya Ganguli,et al.  Exact solutions to the nonlinear dynamics of learning in deep linear neural networks , 2013, ICLR.

[9]  Algirdas Maknickas,et al.  Investigation of financial market prediction by recurrent neural network , 2011 .

[10]  A. Udhayakumar,et al.  Stock Market Trend Analysis Using Hidden Markov Models , 2013, 1311.4771.

[11]  Albert Marcet,et al.  Stock Market Volatility and Learning , 2008, SSRN Electronic Journal.

[12]  Yong Hu,et al.  Stock trading rule discovery with an evolutionary trend following model , 2015, Expert Syst. Appl..

[13]  Jürgen Schmidhuber,et al.  LSTM: A Search Space Odyssey , 2015, IEEE Transactions on Neural Networks and Learning Systems.

[14]  Algirdas Maknickas,et al.  Financial market prediction system with Evolino neural network and Delphi method , 2013 .

[15]  Yoshua Bengio,et al.  Understanding the difficulty of training deep feedforward neural networks , 2010, AISTATS.

[16]  Mehmet Özçalici,et al.  Integrating metaheuristics and Artificial Neural Networks for improved stock price prediction , 2016, Expert Syst. Appl..

[17]  Jonathan L. Ticknor A Bayesian regularized artificial neural network for stock market forecasting , 2013, Expert Syst. Appl..

[18]  Jürgen Schmidhuber,et al.  Recurrent nets that time and count , 2000, Proceedings of the IEEE-INNS-ENNS International Joint Conference on Neural Networks. IJCNN 2000. Neural Computing: New Challenges and Perspectives for the New Millennium.

[19]  Paul J. Werbos,et al.  Backpropagation Through Time: What It Does and How to Do It , 1990, Proc. IEEE.

[20]  Jürgen Schmidhuber,et al.  Long Short-Term Memory , 1997, Neural Computation.

[21]  Arun Agarwal,et al.  Recurrent neural network and a hybrid model for prediction of stock returns , 2015, Expert Syst. Appl..

[22]  Jun Yang,et al.  Stock Market Autoregressive Dynamics: A Multinational Comparative Study with Quantile Regression , 2016 .

[23]  Sahil Shah,et al.  Predicting stock market index using fusion of machine learning techniques , 2015, Expert Syst. Appl..

[24]  Aderemi Oluyinka Adewumi,et al.  Comparison of ARIMA and Artificial Neural Networks Models for Stock Price Prediction , 2014, J. Appl. Math..

[25]  Takashi Matsubara,et al.  Deep learning for stock prediction using numerical and textual information , 2016, 2016 IEEE/ACIS 15th International Conference on Computer and Information Science (ICIS).

[26]  Yoshua Bengio,et al.  Learning Phrase Representations using RNN Encoder–Decoder for Statistical Machine Translation , 2014, EMNLP.

[27]  Qiyuan Gao,et al.  Stock market forecasting using recurrent neural network , 2016 .

[28]  Shouyang Wang,et al.  A multiscale modeling approach incorporating ARIMA and anns for financial market volatility forecasting , 2014, J. Syst. Sci. Complex..

[29]  Amiya Kumar Rath,et al.  A Naïve SVM-KNN based stock market trend reversal analysis for Indian benchmark indices , 2015, Appl. Soft Comput..