Performance analysis of Neural Network Algorithms on Stock Market Forecasting

Similar documents
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

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

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

Stock Market Forecasting Using Artificial Neural Networks

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

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

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

Based on BP Neural Network Stock Prediction

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

LITERATURE REVIEW. can mimic the brain. A neural network consists of an interconnected nnected group of

Journal of Internet Banking and Commerce

Applications of Neural Networks in Stock Market Prediction

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

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

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

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

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

Role of soft computing techniques in predicting stock market direction

Stock Market Prediction with Various Technical Indicators Using Neural Network Techniques

Foreign Exchange Rate Forecasting using Levenberg- Marquardt Learning Algorithm

Bond Market Prediction using an Ensemble of Neural Networks

Forecasting stock market prices

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

STOCK MARKET PREDICTION AND ANALYSIS USING MACHINE LEARNING

An enhanced artificial neural network for stock price predications

STOCK MARKET TRENDS PREDICTION USING NEURAL NETWORK BASED HYBRID MODEL

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

International Journal of Computer Communication and Information System ( IJCCIS) Vol2. No1. ISSN: July Dec 2010

A Dynamic Hedging Strategy for Option Transaction Using Artificial Neural Networks

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

Iran s Stock Market Prediction By Neural Networks and GA

"Stock Price Direction Prediction Applying Soft Computing"

Forecasting Foreign Exchange Rate during Crisis - A Neural Network Approach

Artificially Intelligent Forecasting of Stock Market Indexes

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

ARTIFICIAL NEURAL NETWORK SYSTEM FOR PREDICTION OF US MARKET INDICES USING MISO AND MIMO APROACHES

Prediction of Stock Closing Price by Hybrid Deep Neural Network

Electrical. load forecasting using artificial neural network kohonen methode. Galang Jiwo Syeto / EEPIS-ITS ITS

PREDICTION OF THE INDIAN STOCK INDEX USING NEURAL NETWORKS

ANN Robot Energy Modeling

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

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

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

Long Term and Short Term Investment Strategy for Predicting the Performance of BSE using MLP Model

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

Keywords Time series prediction, MSM30 prediction, Artificial Neural Networks, Single Layer Linear Counterpropagation network.

National Stock Exchange Stock and Index Price Direction Prediction using Backpropagation Artificial Neural Network

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

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

Using artificial neural networks for forecasting per share earnings

REGRESSION, THEIL S AND MLP FORECASTING MODELS OF STOCK INDEX

STOCK PRICE PREDICTION: KOHONEN VERSUS BACKPROPAGATION

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

STOCK MARKET FORECASTING USING NEURAL NETWORKS

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

Forecasting Currency Exchange Rates via Feedforward Backpropagation Neural Network

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

Forecasting Price Movements using Technical Indicators: Investigating the Impact of. Varying Input Window Length

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

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

Forecasting the Price Index Return and Movement Direction using Data Mining Techniques. Günter Şenyurt 2. Abdülhamit Subaşı

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

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

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

Adaptive Neuro-Fuzzy Inference System for Mortgage Loan Risk Assessment

Stock Market Prediction using Artificial Neural Networks

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

Decision model, sentiment analysis, classification. DECISION SCIENCES INSTITUTE A Hybird Model for Stock Prediction

Neural Network Approach for Stock Prediction using Historical Data

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

Neuro-Genetic System for DAX Index Prediction

Providing a Model to Predict Future Cash Flow Using Neural Networks on the Pharmaceutical and Chemical Industries of Tehran Stock Market

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

Application of Deep Learning to Algorithmic Trading

An Intelligent Forex Monitoring System

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

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

BULLETIN OF MATHEMATICS AND STATISTICS RESEARCH

2015, IJARCSSE All Rights Reserved Page 66

A Comparative Study of Various Forecasting Techniques in Predicting. BSE S&P Sensex

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

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

Neuro Fuzzy based Stock Market Prediction System

Research Article Hybrid Machine Learning Technique for Forecasting Dhaka Stock Market Timing Decisions

Chapter IV. Forecasting Daily and Weekly Stock Returns

Stock Market Indices Prediction with Various Neural Network Models

Predicting Economic Recession using Data Mining Techniques

ALGORITHMIC TRADING STRATEGIES IN PYTHON

Quantitative investment Based on Artificial Neural Network Algorithm

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

PREDICTION OF CLOSING PRICES ON THE STOCK EXCHANGE WITH THE USE OF ARTIFICIAL NEURAL NETWORKS

A FORECASTING OF INDICES AND CORRESPONDING INVESTMENT DECISION MAKING APPLICATION. Pretesh Bhoola Patel.

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

ZONE WISE ANALYSIS OF CAVITATION IN PRESSURE DROP DEVICES OF PROTOTYPE FAST BREEDER REACTOR BY KURTOSIS BASED RECURRENT NETWORK

$tock Forecasting using Machine Learning

Stock market index prediction using artificial neural network

Improving Stock Price Prediction with SVM by Simple Transformation: The Sample of Stock Exchange of Thailand (SET)

Saudi Arabia Stock Market Prediction Using Neural Network

An Approach to Identify a Model for Efficient Prediction of Exchange Rates Using Setty Volatile Index (SVI)

Stock Market Analysis Using Artificial Neural Network on Big Data

Transcription:

www.ijecs.in International Journal Of Engineering And Computer Science ISSN:2319-7242 Volume 3 Issue 9 September, 2014 Page No. 8347-8351 Performance analysis of Neural Network Algorithms on Stock Market Forecasting Manasi Shah, Nandana Prabhu, Jyothi Rao Student, ME Computers, Associate Professor, Department of Information Technology, Associate Professor, Department of Computer Engineering, ABSTRACT: Artificial Neural Networks (ANN) have been used in stock prediction extensively as it provides better results than other techniques. In this paper, different architectures of ANN, namely, simple feed forward back propagation neural network (FFBPNN), Elman Recurrent Network, Radial Basis Function network (RBFN) are implemented and tested to predict the stock price. Levenberg-Marquardt Backpropagation algorithm is used to train the data for both FFNN and Elman Recurrent Network. These techniques were tested with published stock market data of Bombay Stock Exchange of India Ltd., and from the results it is observed that FFBPNN gives better results than Elman Recurrent Network. General Terms: Price Prediction, Stock Market, Artificial Neural Network (ANN). Keywords: Feed Forward Back Propagation Network, Elman Recurrent Network, Radial Basis Function Network. I. INTRODUCTION: A stock market or exchange is the centre of a network of transactions where securities buyers meet sellers at a certain price. It is essentially dynamic, non-linear, complicated, nonparametric, and chaotic in nature. Stock market price depends of various factors which can be divided broadly as quantitative and qualitative factors. Quantitative factors include daily open, close, high, low price of individual equities and even daily traded volume, stock market index, currency exchange rate, etc. Qualitative factors include socio-political factors, news, general economic conditions, commodity price index, political events, firms policies, bank rate, exchange rate, investors expectations, institutional investors choices, movements of other stock market, psychology of investors, etc. The Efficient Market Hypothesis (EMH) theory states that any form of information cannot be used for generating extraordinary profits from the stock market, as the stock prices always fully reflect all available information. The Random Walk Hypothesis states that stock price movement does not depend on past stock. Contradicting these theories, many studies show that it is possible to predict stock market satisfactorily using various techniques. Technical analysis includes concepts such as the trending nature of prices, confirmation and divergence, and the effect of traded volume. Fundamental analysis is based on economic data of companies such as annual and quarterly reports, balance sheet, income statements, earnings forecast, past performance of the company, etc. In Traditional Time Series Prediction, the model analyzes historic data and attempts to approximate future values of a time series as a linear combination of these historic data. Machine Learning uses a set of samples to generate an approximation of the underling function that generated the data. The Nearest Neighbor, Support Vector Machine and the Neural Networks Techniques are methods that have been applied to Manasi Shah, IJECS Volume 3Issue 9 September, 2014 page no. 8347-8351 Page 8347

market prediction. The efficiency of neural network in predicting stock market cannot be overlooked since accuracy of prediction using self-learning neural network has even been reached to 96%.[6] Input layer Hidden layer Samek and Varacha [2] studies time series prediction using artificial neural networks. The special attention is paid to the influence of size of the input vector length. The system in [11] uses Adaptive Neuro-Fuzzy Inference System (ANFIS) for taking decisions based on the values of technical indicators. The rest of the paper is organized as follows. Section II presents the methodology; technical indicators used and describe various architectures. In section III, implementation of ANN architectures is shown. Section IV shows the result obtained by implementation shown in section III and taking hidden neurons as 16. Conclusion is shown in Section V. II. METHODOLOGY: Ten technical indicators mentioned in Table 1 were selected as inputs of the proposed models [4]. Experimental results showed that average performance of ANN model (75.74%) was found significantly better than that of SVM model (71.52%). To balance between generalization and over-fitting of ANN, we use only one hidden layer; as a three layer FFNN can model any input-ouput relationship.[6] Preprocessing: Normalization has been applied because of the high range of our dataset. Function zscore in MATLAB has been used to normalize data between 0 to 1, and -1 to +1. Proposed Prediction Technique: In this report, following structures of artificial neural networks are chosen to be tested: Multilayer feed-forward neural network, because of its wide usage, Elman neural network as the representative of the recurrent neural networks, radial basis function neural network, because it provides simple training with good prediction performance and adaptive neural network due to its simplicity.[1] Figure 1: Feed Forward Network 2 Recurrent neural networks Elman networks are feed-forward networks with the addition of layer recurrent connections with tap delays. Elman networks with one or more hidden layers can learn any dynamic input-output relationship arbitrarily well, given enough neurons in the hidden layers. Elman neural networks were selected as a representative of large group of recurrent neural networks. Input layer Hidden layer Context layer Figure 2: Elman Recurrent Network 3 Radial basis function neural networks Typical RBFNN contains two layers, while the hidden layer utilizes radial basis transfer function and output layer employs linear transfer function. C 1 Ø 1 Ø 2 C 2 1 Multilayer feed-forward neural networks Multilayer feed-forward neural networks have neurons structured in layers and the information flows only in one direction (from input to output). A feed-forward network with one hidden layer and enough neurons in the hidden layer can fit any finite inputoutput mapping problem. Ø h C h Input layer Hidden layer Figure 3: Radial Basis Network III. EXPERIMENTATION AND RESULTS: Manasi Shah, IJECS Volume 3Issue 9 September, 2014 page no. 8347-8351 Page 8348

The data used for network training and validation comprises of daily figures for equities listed in IT sector in BSE, i.e., Financial Technologies, Geometric Ltd, Infosys Ltd and Wipro Ltd from January 2001 to January 2014. Each data set is divided into two parts, one is used for training and the other is used for testing. Commodity Channel Index Price Volume Trend ; 1 Multilayer feed-forward neural networks The training function used are Levenberg-Marquart algorithm (trainlm), Gradient descent with adaptive learning rate backpropagation (traingda) and Gradient descent with momentum and adaptive learning rate back-propagation (traingdx) algorithm built in MATLAB Neural Network Toolbox. C: Closing Price, L: Low Price, H: High Price 2 Recurrent neural networks In this article the hidden layer contained ten neurons with tansig, logsig, radbas and the output layer of the Elman neural network used linear transfer function (purelin). The trainlm, traingda, traingdx algorithm was used for the training. Figure 4: Feed Forward Neural Network on MATLAB The tested structures had 2,5,10,16,20,50 neurons with Hyperbolic tangent sigmoid transfer function(tansig), Log-sigmoid transfer function(logsig), Radial basis transfer function(radbas) in the hidden layer and one neuron with linear transfer function(purelin) in the output layer. Table 1: List of Technical Indicators Figure 5: Elman Recurrent Network in MATLAB 3 Radial basis function neural networks Function newrb adds neurons to the hidden layer of a radial basis network until it meets the specified mean squared error goal. (MATLAB Neural Network Toolbox function newrbe adds as many radbas neurons to the hidden layer as the size of input. Technical Indicator Typical Price (M) Moving Average (MA) Stochastic %K Formula IV. RESULTS: Figure 6 shows predicted v/s actual output by applying Feed- Forward Back-Propagation Neural Network on Hybrid Indicators on Infosys data. The output obtained by this network is best when compared to other two architectures. Stochastic %D Momentum Rate of Change Larry Williams %R AD Oscillator Disparity 5 Days Disparity 10 Days Price Oscillator Figure 6: Output of FFBPNN for Hybrid Indicators Manasi Shah, IJECS Volume 3Issue 9 September, 2014 page no. 8347-8351 Page 8349

Figure 7 shows output shows predicted v/s actual output by applying Elman Recurrent Neural Network on Hybrid Indicators on Infosys data. Table 2. Feed forward back propagation network is better than Elman recurrent network. Elman is only used for historical data and research purposes nowadays. Levenberg-Marquardt backpropagation, when used as a training function, gives better accuracy than training using Gradient descent with adaptive learning rate back-propagation. Radial Basis Network also gives promising results but it takes lot of time to train the network, if error goal is high. From our experiment, we conclude that number of neurons in hidden layer should be between n to 2n where n is the number of nodes in input layer and considering that output layer has only one node. Figure 7: Output of Elman Recurrent for Hybrid Indicators Figure 8 shows output shows predicted v/s actual output by applying Radial Basis Neural Network on Hybrid Indicators on Infosys data. REFERENCES: [1] Sugandha Saha, Comparison of different Neural Network Models for Stock Market Prediction, Twenty-Fifth International Conference on Software Engineering and Knowledge Engineering, June 2013. [2] David Samek and Pavel Varacha, Time series prediction using artificial neural networks: single and multi-dimensional data, International Journal Of Mathematical Models And Methods In Applied Sciences, Issue 1, Volume 7, 2013. [3] Ayodele et al., Stock Price Prediction using Neural Network with Hybridized Market Indicators, Journal of Emerging Trends in Computing and Information Sciences, VOL. 3, NO. 1, January 2012 ISSN 2079-8407. [4] Kara et al, Predicting direction of stock price index movement using artificial neural networks and support vector machines: The sample of the Istanbul Stock Exchange, Expert Systems with Applications 38 (2011) 5311 5319. V. CONCLUSION: Figure 8: Output of RBF for Hybrid Indicators Using technical indicators along with historical time series data yields better results as compared to results obtained by using only technical indicators as shown in [5] Samarth Agrawal, Manoj Jindal, G. N. Pillai, Momentum Analysis based Stock Market Prediction using Adaptive Neuro- Fuzzy Inference System (ANFIS), Proceedings of IMECS 2010. [6] Abhishek Kar, Stock Prediction using Artificial Neural Networks, Dept. of Computer Science and Engineering, IIT Kanpur. Manasi Shah, IJECS Volume 3Issue 9 September, 2014 page no. 8347-8351 Page 8350

Table 2: Performance Measure for Technical Indicators and Hybrid Indicators using Neural Network Architectures Data Set INFOSYS WIPRO FINANCIAL GEOMETRIC Architecture Technical Indicators Hybrid Indicators RMSE MAPE ACCURACY RMSE MAPE ACCURACY FFBPNN 0.0958 11.5602 92.2361 92.2361 7.2302 94.9715 ELMAN 0.1052 14.8701 90.4099 0.1628 21.7713 84.7908 RBF 0.1119 9.7581 91.6234 0.0771 8.3235 94.6030 FFBPNN 0.1927 24.7584 83.9847 0.1223 17.0915 89.7812 ELMAN 0.2684 41.1723 76.5044 0.2530 38.9206 75.9443 RBF 0.1335 14.5337 89.1947 0.2107 19.7995 83.4504 FFBPNN 0.1570 16.4628 86.3105 0.1192 12.7133 90.2159 ELMAN 0.1686 24.8067 84.1721 0.2214 28.2560 79.4238 RBF 0.1293 11.4043 90.0570 0.1514 22.2847 86.7702 FFBPNN 0.0918 10.2483 92.5993 0.0745 7.9855 94.3886 ELMAN 0.1501 14.6201 87.0882 0.0946 11.9969 92.1638 RBF 0.2052 28.0125 82.0614 0.2363 16.3455 82.2150 Manasi Shah, IJECS Volume 3Issue 9 September, 2014 page no. 8347-8351 Page 8351