Backpropagation and Recurrent Neural Networks in Financial Analysis of Multiple Stock Market Returns

Similar documents
STOCK PRICE PREDICTION: KOHONEN VERSUS BACKPROPAGATION

Dr. P. O. Asagba Computer Science Department, Faculty of Science, University of Port Harcourt, Port Harcourt, PMB 5323, Choba, Nigeria

Estelar. Chapter 4. Stock Price Prediction: Effect of Exchange Rate, FII Purchase, FII sales on daily return. of Nifty Index. 4.

An enhanced artificial neural network for stock price predications

AN ARTIFICIAL NEURAL NETWORK MODELING APPROACH TO PREDICT CRUDE OIL FUTURE. By Dr. PRASANT SARANGI Director (Research) ICSI-CCGRT, Navi Mumbai

Predicting Economic Recession using Data Mining Techniques

Two kinds of neural networks, a feed forward multi layer Perceptron (MLP)[1,3] and an Elman recurrent network[5], are used to predict a company's

COGNITIVE LEARNING OF INTELLIGENCE SYSTEMS USING NEURAL NETWORKS: EVIDENCE FROM THE AUSTRALIAN CAPITAL MARKETS

Based on BP Neural Network Stock Prediction

STOCK MARKET PREDICTION AND ANALYSIS USING MACHINE LEARNING

International Journal of Computer Engineering and Applications, Volume XII, Issue II, Feb. 18, ISSN

Cognitive Pattern Analysis Employing Neural Networks: Evidence from the Australian Capital Markets

Forecasting Currency Exchange Rates via Feedforward Backpropagation Neural Network

Predicting Abnormal Stock Returns with a. Nonparametric Nonlinear Method

The Use of Neural Networks in the Prediction of the Stock Exchange of Thailand (SET) Index

International Journal of Computer Engineering and Applications, Volume XII, Issue II, Feb. 18, ISSN

Business Strategies in Credit Rating and the Control of Misclassification Costs in Neural Network Predictions

A Novel Prediction Method for Stock Index Applying Grey Theory and Neural Networks

The Use of Artificial Neural Network for Forecasting of FTSE Bursa Malaysia KLCI Stock Price Index

Artificially Intelligent Forecasting of Stock Market Indexes

Barapatre Omprakash et.al; International Journal of Advance Research, Ideas and Innovations in Technology

International Journal of Research in Engineering Technology - Volume 2 Issue 5, July - August 2017

Stock Market Prediction using Artificial Neural Networks IME611 - Financial Engineering Indian Institute of Technology, Kanpur (208016), India

Valencia. Keywords: Conditional volatility, backpropagation neural network, GARCH in Mean MSC 2000: 91G10, 91G70

A TEMPORAL PATTERN APPROACH FOR PREDICTING WEEKLY FINANCIAL TIME SERIES

STOCK MARKET FORECASTING USING NEURAL NETWORKS

Forecasting of Stock Exchange Share Price using Feed Forward Artificial Neural Network

Application of Innovations Feedback Neural Networks in the Prediction of Ups and Downs Value of Stock Market *

Predicting stock prices for large-cap technology companies

An Algorithm for Trading and Portfolio Management Using. strategy. Since this type of trading system is optimized

Design and Application of Artificial Neural Networks for Predicting the Values of Indexes on the Bulgarian Stock Market

Forecasting stock market prices

Performance analysis of Neural Network Algorithms on Stock Market Forecasting

An Improved Approach for Business & Market Intelligence using Artificial Neural Network

Keywords: artificial neural network, backpropagtion algorithm, derived parameter.

Journal of Internet Banking and Commerce

Development and Performance Evaluation of Three Novel Prediction Models for Mutual Fund NAV Prediction

An Analysis of the Performance of Artificial Neural Network Technique for Stock Market Forecasting

Evaluate the Ability of Artificial Neural Network to Predict the Stock Price of Non-Metallic Mineral Products Industry in Tehran's Stock Exchange

STOCK MARKET TRENDS PREDICTION USING NEURAL NETWORK BASED HYBRID MODEL

Pattern Recognition by Neural Network Ensemble

Prediction of Stock Closing Price by Hybrid Deep Neural Network

Design and implementation of artificial neural network system for stock market prediction (A case study of first bank of Nigeria PLC Shares)

Introducing GEMS a Novel Technique for Ensemble Creation

Role of soft computing techniques in predicting stock market direction

VOL. 2, NO. 6, July 2012 ISSN ARPN Journal of Science and Technology All rights reserved.

Stock Market Prediction System

Deep Learning for Forecasting Stock Returns in the Cross-Section

Using artificial neural networks for forecasting per share earnings

Abstract Making good predictions for stock prices is an important task for the financial industry. The way these predictions are carried out is often

Stock Trading Following Stock Price Index Movement Classification Using Machine Learning Techniques

Chapter IV. Forecasting Daily and Weekly Stock Returns

Statistical and Machine Learning Approach in Forex Prediction Based on Empirical Data

Bond Market Prediction using an Ensemble of Neural Networks

COMPARING NEURAL NETWORK AND REGRESSION MODELS IN ASSET PRICING MODEL WITH HETEROGENEOUS BELIEFS

Stock Market Index Prediction Using Multilayer Perceptron and Long Short Term Memory Networks: A Case Study on BSE Sensex

Deep Learning for Time Series Analysis

Artificial Neural Networks Lecture Notes

Stock Price and Index Forecasting by Arbitrage Pricing Theory-Based Gaussian TFA Learning

Available online at ScienceDirect. Procedia Computer Science 61 (2015 ) 85 91

Applications of Neural Networks in Stock Market Prediction

Journal of Insurance and Financial Management, Vol. 1, Issue 4 (2016)

Neural Network Prediction of Stock Price Trend Based on RS with Entropy Discretization

Predictive Model Learning of Stochastic Simulations. John Hegstrom, FSA, MAAA

Forecasting the Exchange Rates of CHF vs USD Using Neural. networks

High Volatility Medium Volatility /24/85 12/18/86

Iran s Stock Market Prediction By Neural Networks and GA

A Dynamic Hedging Strategy for Option Transaction Using Artificial Neural Networks

Estimating term structure of interest rates: neural network vs one factor parametric models

Financial Criterion. : decision module. Mean Squared Error Criterion. M : prediction. 1 module

Academic Research Review. Algorithmic Trading using Neural Networks

ANN Robot Energy Modeling

A Comparative Study of Ensemble-based Forecasting Models for Stock Index Prediction

A Review of Artificial Neural Network Applications in Control. Chart Pattern Recognition

Predicting Market Fluctuations via Machine Learning

Neuro-Genetic System for DAX Index Prediction

A.K.Singh. Keywords Ariticial neural network, backpropogation, soft computing, forecasting

APPLICATION OF ARTIFICIAL NEURAL NETWORK SUPPORTING THE PROCESS OF PORTFOLIO MANAGEMENT IN TERMS OF TIME INVESTMENT ON THE WARSAW STOCK EXCHANGE

An introduction to Machine learning methods and forecasting of time series in financial markets

Forecasting Foreign Exchange Rate during Crisis - A Neural Network Approach

Keywords: artificial neural network, backpropagtion algorithm, capital asset pricing model

Spiking Back Propagation Multilayer Neural Network Design for Predicting Unpredictable Stock Market Prices with Time Series Analysis

Stock market price index return forecasting using ANN. Gunter Senyurt, Abdulhamit Subasi

Application of Deep Learning to Algorithmic Trading

Genetic Algorithm Based Backpropagation Neural Network Performs better than Backpropagation Neural Network in Stock Rates Prediction

MSE Criterion C 1. prediction module. Financial Criterion. decision module

2015, IJARCSSE All Rights Reserved Page 66

Prediction Using Back Propagation and k- Nearest Neighbor (k-nn) Algorithm

Outline. Neural Network Application For Predicting Stock Index Volatility Using High Frequency Data. Background. Introduction and Motivation

Predicting the stock price companies using artificial neural networks (ANN) method (Case Study: National Iranian Copper Industries Company)

Design of a Wavelet Inspired Neuro-Fuzzy Approach to Forecast Financial Data

Machine Learning in Finance: The Case of Deep Learning for Option Pricing

A Machine Learning Investigation of One-Month Momentum. Ben Gum

Measuring DAX Market Risk: A Neural Network Volatility Mixture Approach

November 3, Transmitted via to Dear Commissioner Murphy,

Research Article Design and Explanation of the Credit Ratings of Customers Model Using Neural Networks

Forecasting stock market return using ANFIS: the case of Tehran Stock Exchange

IN finance applications, the idea of training learning algorithms

State Switching in US Equity Index Returns based on SETAR Model with Kalman Filter Tracking

INTEGRATION OF ARTIFICIAL NEURAL NETWORKS AND FUZZY DELPHI FOR STOCK MARKET FORECASTING

Transcription:

Backpropagation and Recurrent Neural Networks in Financial Analysis of Multiple Stock Market Returns Jovina Roman and Akhtar Jameel Department of Computer Science Xavier University of Louisiana 7325 Palmetto St., New Orleans, LA 70125-l 145 (415) 813-7770 Abstract We propose a new methodology to aid in designing a portfolio of investment over multiple stock markets. It is our hypothesis that financial stock market trends may be predicted better over a set of markets instead of any one single market. A selection criteria is proposed in this paper to make this choice effectively. This criteria is based upon the observed backpropagation and recurrent neural networks prediction accuracy, and the overall change recorded in the previous year. The results obtained when using data for four consecutive years over five international stock markets supports our claim. Backpropagation nehvorks use gradient descent to learn spatial relationships. On the other hand, recurrent networks are capable of capturing spatiotemporal information from training data. This paper analyzes application of recurrent networks to the stock market return prediction problem in contrast with backpropagation networks. On the basis of the results observed during these experiments it follows that the effect of learning temporal information was not substantial on the prediction accuracy for the stock market returns. Introduction In this paper we investigate if backpropagation and recurrent neural networks can be effectively used in designing portfolios across many international stock markets after the trends in these markets for several calendar years are known. Stock prices fluctuate daily resulting in a nonlinear pattern of data. One of the three outcomes may occur in the stock price: rise, fall, or remain the same, which will occur is uncertain. A neural network is a computer program that recognizes patterns and is designed to take a pattern of data and generalize from it. An essential feature of this technology is that it improves its performance on a particular task by gradually learning a mapping between inputs and outputs. There are no set rules or sequence of steps to follow in generalizing patterns of data. The network is designed to learn a nonlinear mapping between the input and output data. Generalization is used to predict the possible outcome for a particular task. This process involves two phases known as the training phase (learning) and the testing phase (prediction). Regression models have been traditionally used to model the changes in the stock markets. Multiple regression analysis is the process of finding the leastsquares prediction equation, testing the adequacy of the model, and conducting tests about estimating the values of the model parameters, Mendenhall et al. [Il. However, these models can predict linear patterns only. The stock market returns change in a nonlinear pattern such that neural networks are more appropriate to model these changes. Studies have shown that backpropagation networks may be used for prediction in financial market analysis. Refenes et al. [2] compared regression models with a backpropagation network both using the same stock data. In comparison with regression models backpropagation proved to be a better predictor. The results showed that the Mean Squared Error (MSE) for the neural network was lower than the Multiple Linear Regression (MLR) model. The MSE for the network was 0.044 and the MSE for the MLR model was 0.138 such that the neural net proved to be more effective in learning the training data than the MLR. For the test data, which was different from the training data, the neural network MSE was 0.066 which is also lower than the 1060-3425/96 $5.0001996IEEE 454

MLR MSE of 0.128. According to Refenes et al. [2] neural networks are capable of making better prediction in capturing the structural relationship between a stock s performance and its determinant factors more accurately than MLR models. Kryzanowski et al. [3] using Boltzmann machine trained an artificial neural network with 149 test cases of positive (rise in the stock price) and negative (fall in the stock price) returns for the years 1987-1989 and compared this to training the network with positive, neutral (unchanged stock price), and negative returns for the same 149 test cases for the years 1987-1989. The network predicted 72% correct results with positive and negative returns. However the network predicted only 46% correct results with positive, neutral, and negative returns. If stock market return fluctuations are affected by their recent historic behavior, Tang [4] neural networks which can model such temporal information along with spatial information in the stock market changes can prove to be better predictors. The changes in a stock market can then be learned better using networks which employ a feedback mechanism to cause sequence learning. Recurrent networks use the backpropagation learning methodology. The main difference between a feedforward backpropagation network and a recurrent network is the existence of a feedback mechanism in the nodes of the recurrent network. This feedback mechanism facilitates the process of using the information from the previous pattern along with the present inputs. Copy-back/Context units are used to integrate the previous pattern into the following or a later input pattern, Morgan et al. [5]. This ability of recurrent networks in learning spatiotemporal patterns makes them suitable for the stock market return prediction problem. Backpropagation networks are independent of the sequence in which the inputs are presented whereas the recurrent networks take into acconnt the sequence. Thus the recurrent networks represent the idea of predicting stock market returns on the basis of recent history more closely. Since no training occurs during testing, a pattern is matched with its closest learned training pattern (independently) and the corresponding output is generated. Hence, if there was no training after week 48 and we test the network for week 59, it will be matched with the learned data set for weeks l-48 and maybe week 37 will be used to predict the output for week 59 -- intrinsically assuming that week 36 before week 37 is a good representative of week 58 preceding week 59. Although, this is ideally what we hope to occur, there is no guarantee that the neural networks will use this relationship. It may use other learned information based on the data. We propose that the prediction accuracy of a network along with additional information available from recent history of a stock market can be used to make effective stock market portfolio recommendations. This idea is further described in the next two sections for backpropagation and recurrent neural networks. Hypothesis It would be of interest to find out whether it is profitable to invest in one market or over several markets. If one should choose to redirect capital between different stock markets, what parameters must be considered? We propose a new method for making the choice of investment over different stock markets. Profit maximization when investing in multiple international stock markets using neural networks is based on the following criterion. A stock market s behavior over the recent past is the only information typically available for predictions. A rising market may be assumed to continue to rise in the near future while a market on a downward trend is generally expected to drop further. This makes the overall stock return per dollar 6 observed in the recent past as one of the main contributing factors to predict the trends for the immediately following period of time. This value 6 is arrived at by dividing, the difference in the stock return values on the last and the first working day in the stock markets for the corresponding years, by the stock return value on the opening day in the calendar year. The accuracy of the networks must also be taken into account when predicting the stock market trends. An estimate of prediction accuracy is established by training a network on the available recent past data. This second parameter is used in modifying the past available trend information to predict the future stock market trends. Consider that a choice. for the ith stock market investment has to be made between many markets for the jth year. Common sense leads to investing in a market where the prediction accuracy qij-1 for the previous year was higher and stock returns per dollar si,r for the previous year went up. In a simple combination of these two criterion a determinant %j is computed in choosing a stock market for profit maximization: 455

Tij = (&il X q&l) for i = 1 t0 ll where n is the total number of stock markets. The value of the determinant r is computed at a frequent interval (1 year) and a choice of the stock market is made for the largest value of z at that time. This is called the t-criteria for selection of a stock market. A stock market is chosen for every year using the z criteria. Experiments show that the stock return changes for the markets selected by using the determinant z over a number of years (two in our case) had the highest overall gain. The same markets show the largest overall gain in the graph in Figure 2. The overall gain for the chosen markets are computed by summing the stock returns per dollar for each year. A proof for the validity of this method can be constructed by establishing whether the overall stock return per dollar for the combination of markets arrived at by this method is the largest amongst all other possible combinations. Experiments Network Network using a Backpropagation A backpropagation neural network implemented by Pao [6] was used in these experiments. This network employs a two-pass weighted learning algorithm known as the generalized delta rule (Rumelhart, et al. [7]). In a forward pass through the network, an error is detected, the measured error is then propagated backward through the network while weights are adjusted to reduce the overall error. This iterative process that the network goes through in reducing the overall error is known as gradient descent. These networks are highly suited for the stock market return prediction problem. Backpropagation and other neural networks have been used by Widrow, et al. [83, Kryzanowski, et al. [3] and Refenes, et al. [2] for fmancial data analysis. Methodology Standard supervised backpropagation neural network learning methodology was followed in these experiments. A subset of available stock market return data was used to construct training samples for the network. Training of a backpropagation network involves obtaining optimal values for the learning rate, the momentum of learning, estimating the number of hidden layers and the number of nodes in each layer. The overall error is tracked until a minima is obtained by altering the forementioned parameters. A trained network can then be used in predicting future stock market returns. A 10-5-2 architecture for the three hidden layers was used. In the following experiments the networks were trained between 100,000 to 500,000 iterations to obtain overall errors in the range of 0.04 to 0.07. A learning rate of 0.7 and the momentum rate of 0.9 produced the best results. We will use stock market data from five different markets. Stock market data for a year (say, 1989) from five stock markets (Canada, Hongkong, Japan, UK and USA) was used to train five networks. The trained networks are then used to predict the trend in stock returns during the following year (i.e., 1990). Actual stock return trends are used to test the network s predictions on all the five markets and the actual annual trends are compared with the observed predictions of the networks to determine their accuracy TI (i.e., for 1990). The values of stock returns per dollar 6 for the years 1990, 1991, and 1992 are computed. The obtained values of 6 and?i are used to compute the corresponding z. Data Historical stock market return data from January 1989 through December 1992 for the following five countries: Canada, Japan, Hongkong, UK and USA was used. The data consists of daily close prices for indexes of these five markets. The indexes are the Toronto 300 Share Index (Canada), Topix (Japan), Hangseng (Hongkong), the Financial Times Stock Exchange 100 Share (U.K.), and the Standard and Poor s 500 Index (U.S.A.). Each of these indexes is adjusted by the appropriate exchange rate so that all the values are in U.S. Dollars. The stock market return data for each of these countries were substituted by a number between 1 and 0 in the event of rising, falling, and remaining the same. If the return fell the change was represented by 0.1, if it had risen the change was represented by 0.9, and if it remained the same the change was represented by 0.5. The graph in Figure 2 shows the nonlinear trends in the stock market returns for each of these five countries from 1989-92. After tabulating the trends in data an interval of a week (Monday to Tuesday, Tuesday to Wednesday, Wednesday to Thursday, and Thursday to Friday) was chosen resulting in four inputs and one output (Friday to Monday). A training file is set up with 48 weeks daily data to be trained for January 1989 456

x 1 Output layer Figure 1: A Backpropagation Network through November 1989. Training files were created for each market for the years 1989, 1990, and 1991. A Test file is set up with data from January 1990 through November 1990. Test files were created for each market for the years January 1990 - November 1990, January 1991 - November 1991, and January 1992 - November 1992. Results The results observed in these experiments are indicated in Table I. Values of z in bold face are the largest values between all the stock markets during that year. Hongkong has the largest determinant t for the years 1990, 1991, and 1992. Thus it should be the chosen market for portfolio investment during the following years of 1991, 1992 and 1993. From the data shown in Figure 2 the summed stock return per dollar turns out to be the largest as well thus verifying our prediction methodology. The values of summed stock return per dollar for the next best portfolio combinations are shown in Table II. Experiments using a Recurrent Network Network The recurrent network implementation proposed by Ehnan [9], known as TLEARN -simulator program for neural networks, was used. These networks use the gradient descent training rule. Table I Computation of the Selection Criteria -c for years 1990-1992 using a Backpropagation Network 457

Table II Validation of Selected Portfolios Year 1991 1992 Summed Stock Return per Dollar Portfolio I Portfolio II Portfolio III Portfolio IV Portfolio V Hongkong UK USA Japan Canada Hongkong USA UK Canada Japan 0.71 0.16 0.20-0.06-0.16 Trends in Stock Prices in US, Canada, Japan, Hongkong and UK Figure 2: Canada, Hongkong, Japan, UK and USA Stock Exchange Index l/1/1989-12/31/92 The difference in training a recurrent network over a backpropagation network is the application of values held back in the context units at time tl to the training pattern input at time t2. Figure 3 shows the configuration of the recurrent network that was used. 458

Figure 3: A Recurrent Network. il........ i4 Inputs Methodology Supervised backpropagation neural network learning methodology was followed in the experiments with recurrent networks. A subset of available stock market return data was used to construct training samples for the network. Training of a recurrent network involves obtaining optimal values for the learning rate, the momentum of learning, estimating the number of hidden layers, the number of copy-back units, and the number of nodes in each layer. The overall error is tracked until a minima is obtained by altering the fore-mentioned parameters. A trained network which has learned the sequential information in the training set can then be used in predicting future stock market returns. A 4- lo/lo-4/4-1 architecture with 4 inputs, two hidden layers of 10 and 4 nodes with same number of copy-back units (indicated as lo/lo and 4/4) was used. In the following experiments the networks were trained for 10,000,000 iterations to obtain overall errors in the range of 0.00001 to 0.001. A learning rate of 0.2 and a momentum rate of 0.4 produced the best results. Stock market data from five different markets was used. Stock market data for a year (say, 1989) from five stock markets (Canada, Hongkong, Japan, UK and USA) was used to train five networks. The trained networks are then used to predict the trend in stock returns during the following year (i.e., 1990). Actual stock return trends are used to test the network s predictions on all the five markets and the actual annual trends are compared with the observed predictions of the networks to determine their accuracy (i.e., for 1990). Data The representation of data, the training tiles, and the test files were the same as in the backpropagation network experiments. There were two groups of experiments that were performed using the data from five countries. In the first group, network training was performed on data from January through November which were then tested on the following eleven months for each of the years 1989 through 1992. In the second group, the training period was increased to two years before testing on the following years data. Results The results observed in these experiments are indicated in Table III. The values of c yielded the same portfolio recommendations as the backpropagation networks in Table II. 459

Table III Computation of the Selection Criteria z for years 1990-1992 using a Recurrent Network --- --.-., -.- _, 52.08 1 0.12 0.062 35.42-0.08-0.028 USA 1 43.75 ) -0.08 1-0.035 1 41.67 ) 0.28 0.117 50.00 0.04 0.020 It may be noted that the observed prediction accuracy while using the recurrent network are not much higher as compared to the backpropagation network. A simple explanation may be that one week s sequence that was learned from the training data did not contain enough information that would improve prediction accuracy. Another possibility could be that the training data for one year was not sufficient to provide ample information to the network for prediction. In order to account for lack of information, in the second group of experiments the training set was expanded over two years period before predicting the stock market trends for the following year. The prediction accuracy was found to be 10.4% less than the original prediction accuracy with one years training. This issue needs further investigating. It is of interest to find what role temporal information plays in predicting stock market returns? Conclusions We proposed a new method to choose between stock markets for investment when the network tools that are being commonly used are known not to have been very accurate. The proposed new methodology for building portfolios across international stock market prediction has proven to be effective on real stock market data for five countries over four years. The strength of this approach is that it does not merely depend upon the accuracy of prediction of a network. Additional contextual (market) information is provided to aid the network in making decisions for selecting a stock market using a determinant. Further research is anticipated to incorporate additional parameters that influence stock returns with this neural approach. Recurrent networks which fit a spatiotemporal model for the stock market time-series confirmed the results that were obtained for portfolio recommendations using the backpropagation network. References [l] Mender&all and Beaver, Introduction to Probabilitv And Statistics, Ninth Edition, International Thomson Publishing, 1994. [2] Refenes, Zapranis, and Francis, Journal of Neural Networks, Stock Performance Modeling Using Neural Networks: A Comparative Study With Regression Models, Vol. 7, No. 2, 1994. pp. 375-388. [3] Kryzanowski, Galler and Wright, Financial Analysts Journal, Using Artificial Neural Networks to Pick Stocks, July-August 1993. pp. 21-27. [4] Tang, Almeida and Fishwick, Simulation, Time series forecasting using neural networks vs. Box-Jenkins methodology, November 1991, pp 303-3 10. [5] Morgan and Scofield, Neural Networks and Speech Processing, Kluwer Academic Publishers, 199 1. [6] Pao, Adaptive Pattern Recognition and Neural Networks, Addison Wesley Publishing Company, Inc., 1989. [7] Rumelhart, McClelland, and the PDP Research @OUP, Parallel Distributed Processing Volumel: Foundations, The Massachusetts Institute of Technology, 1988. [8] Wicirow, Rumelhart, and L&r, Journal of Communications of the ACM, Neural Networks: Applications in Industry, Business and Science, Vol. 37, No. 3, 1994. pp. 93-105. [9] Elman, TLEARN - simulator program for neural networks. Center for Research in J-aiwxe, C-008, 1990, University of California, San Diego, La Jolla, CA 92093-0108. 460