Prediction of Future Stock Close Price using Proposed Hybrid ANN Model of Functional Link Fuzzy Logic Neural Model

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

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

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

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

Prediction of Stock Closing Price by Hybrid Deep Neural Network

Applications of Neural Networks in Stock Market Prediction

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

Iran s Stock Market Prediction By Neural Networks and GA

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

Role of soft computing techniques in predicting stock market direction

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

A multiple model of perceptron neural network with sample selection through chicken swarm algorithm for financial forecasting

Forecasting stock market prices

Neuro Fuzzy based Stock Market Prediction System

Foreign Exchange Rate Forecasting using Levenberg- Marquardt Learning Algorithm

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

Understanding neural networks

An enhanced artificial neural network for stock price predications

Performance analysis of Neural Network Algorithms on Stock Market Forecasting

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

International Journal of Computer Science Trends and Technology (IJCST) Volume 5 Issue 2, Mar Apr 2017

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

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

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

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

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

Using artificial neural networks for forecasting per share earnings

REGRESSION, THEIL S AND MLP FORECASTING MODELS OF STOCK INDEX

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

Based on BP Neural Network Stock Prediction

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

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

International Journal of Advance Engineering and Research Development. Stock Market Prediction Using Neural Networks

Multi-factor Stock Selection Model Based on Kernel Support Vector Machine

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

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

Pattern Recognition by Neural Network Ensemble

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

SURVEY OF MACHINE LEARNING TECHNIQUES FOR STOCK MARKET ANALYSIS

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

Stock price development forecasting using neural networks

STOCK MARKET TRENDS PREDICTION USING NEURAL NETWORK BASED HYBRID MODEL

STOCK PRICE PREDICTION: KOHONEN VERSUS BACKPROPAGATION

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

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

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

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

BULLETIN OF MATHEMATICS AND STATISTICS RESEARCH

2015, IJARCSSE All Rights Reserved Page 66

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

Adaptive Neuro-Fuzzy Inference System for Mortgage Loan Risk Assessment

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

Journal of Internet Banking and Commerce

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

Stock Market Indices Prediction with Various Neural Network Models

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 NEURAL NETWORKS

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

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

Price Pattern Detection using Finite State Machines with Fuzzy Transitions

Artificially Intelligent Forecasting of Stock Market Indexes

Stock Market Prediction with Various Technical Indicators Using Neural Network Techniques

Stock Market Prediction System

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

A Dynamic Hedging Strategy for Option Transaction Using Artificial Neural Networks

Fuzzy and Neuro-Symbolic Approaches to Assessment of Bank Loan Applicants

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

Do Trading Volume and MACD Indicator Contains Information Content of Stock Price? Evidence from China

PREDICTION OF THE INDIAN STOCK INDEX USING NEURAL NETWORKS

A Fuzzy based Soft Computing Technique to Predict the Movement of the Price of a Stock

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

Department of Management, College of Management, Islamic Azad University of Qazvin, Qazvin, Iran

STOCK MARKET PREDICTION AND ANALYSIS USING MACHINE LEARNING

A DECISION SUPPORT SYSTEM FOR HANDLING RISK MANAGEMENT IN CUSTOMER TRANSACTION

A Big Data Framework for the Prediction of Equity Variations for the Indian Stock Market

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

ANN Robot Energy Modeling

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

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

ISSN: (Online) Volume 4, Issue 2, February 2016 International Journal of Advance Research in Computer Science and Management Studies

Bond Market Prediction using an Ensemble of Neural Networks

Fuzzy Rule based Expert System for Evaluating Defaulter Risk in Banking Sector

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

Classification of Capital Expenditures and Revenue Expenditures: An Analysis of Correlation and Neural Networks

Neural Network Approach for Stock Prediction using Historical Data

TECHNICAL ANALYSIS OF FUZZY METAGRAPH BASED DECISION SUPPORT SYSTEM FOR CAPITAL MARKET

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

Stock Market Analysis Using Artificial Neural Network on Big Data

OPENING RANGE BREAKOUT STOCK TRADING ALGORITHMIC MODEL

Stock Market Forecasting Using Artificial Neural Networks

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

Implementation of Classifiers for Choosing Insurance Policy Using Decision Trees: A Case Study

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

Stock Price Prediction using Recurrent Neural Network (RNN) Algorithm on Time-Series Data

Keyword: Risk Prediction, Clustering, Redundancy, Data Mining, Feature Extraction

Predicting Economic Recession using Data Mining Techniques

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

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

A New Method Based on Clustering and Feature Selection for Credit Scoring of Banking Customers Seyedeh Maryam Anaei 1 and Mohsen Moradi 2

Transcription:

Institute of Advanced Engineering and Science IAES International Journal of Artificial Intelligence (IJ-AI) Vol. 1, No. 1, March 2012, pp. 25~30 ISSN: 2252-8938 25 Prediction of Future Stock Close Price using Proposed Hybrid ANN Model of Functional Link Fuzzy Logic Neural Model Kumaran Kumar. J, Kailas. A Department of Computer Science and Engineering, Pondicherry Engineering College Email: kumaran@pec.edu, kailash1989@yahoo.com Article Info Article history: Received Feb 12 th, 2012 Revised Mar 19 th, 2012 Accepted Mar 24 th, 2012 Keyword: ANN FLFNM MAPE SENSEX Back propagation ABSTRACT In this paper, the prediction of future stock close price of SENSEX & NSE stock exchange is found using the proposed Hybrid ANN model of Functional Link Fuzzy Logic Neural Model. The historic raw data s of SENSEX & NSE stock exchange has been pre-processed to the range of (0 to 1). After pre-processing the inputs and forwarded to functional expansion function to perform neural operation. The activation function of neuron has fuzzy sets in order to show the future close price range of SENSEX & NSE stock exchange. The model is trained with the pre-processed historic data s of stock exchange and the prediction rate (Performance & Error rate) of the Proposed Hybrid ANN model of Functional Link Fuzzy Logic Neural Model is calculated at the testing phase using the performance metrics (MAPE & RMSE). Copyright @ 2012 Insitute of Advanced Engineeering and Science. All rights reserved. Corresponding Author: Kumaran Kumar. J Department of Computer Science and Engineering, Pondicherry Engineering College, Puducherry, India Email: kumaran@pec.edu 1. INTRODUCTION A neural network is an interconnected group of nodes, akin to the vast network of neurons in the human brain. An Artificial Neural Network [1] is a mathematical model or computational model based on biological neural networks. Detecting trends and patterns in financial data is of great interest to the business world to support the decision-making process. So far, the primary means of detecting trends and patterns has involved statistical methods such as statistical clustering and regression analysis. The mathematical models associated with these methods for economic forecasting, however, are linear and may fail to forecast the turning points in economic cycles because in many cases the data s are highly nonlinear. A new generation of methodologies, including neural networks, knowledge-based systems and genetic algorithms, has attracted attention for analysis of trends and patterns. In particular, neural networks are being used extensively for financial forecasting with stock markets, foreign exchange trading, commodity future trading and bond yields. The recent resurgence of interest in the field of NNs has been inspired by new developments in NN learning algorithms, analog VLSI circuits and parallel processing techniques. One main possibility for the use of artificial neural system is to simulate physical systems that are best expressed by massively parallel networks. The Main objectives of this work is To integrate FLANN & Fuzzy Logic model. To implement Proposed Hybrid Functional Link Fuzzy Logic neural model on Stock market prediction case study. Journal homepage: http://iaesjournal.com/online/index.php/ijai w w w. i a e s j o u r n a l. c o m

26 ISSN: 2252-8938 2. BASICS OF FINANCIAL FORECASTING AND SUITABILITY OF ANN MODELING Stock market [3], [4], [7] has long been considered a high return investment field and backbone of Indian economy. Due to the fact that stock markets are affected by many highly interrelated economical, political and even psychological factors that interact with each other in a very complex fashion, it is very difficult to forecast the movement in stock market. Predicting is telling about the future which will incur certain error. To produce a meaningful prediction, the error incurred must be minimum. There are several ways used by investors to predict stock market returns such a technical analysis, fundamental analysis and mathematical models. However these techniques incapable of determining the exact forecast price. Due to these imperfection factor current studies using soft computing techniques (Soft Computing represents that area of Computing adapted from the physical sciences.) such as Granular Computing, Rough sets, Neural Networks, Fuzzy sets and Genetic Algorithms are highly used to improve the prediction accuracy and computational efficiency compared to earlier techniques. With the advancement being made in computer and telecommunication technologies today, the world s major economies and financial markets are becoming more and more globalize. As this trend accelerates, financial markets are becoming more and more interrelated and fundamental factors will become increasingly critical to financial market analysis. In the global marketplace, the prevailing methods of technical analysis where a single market is modeled through historical simulation and back testing of its own past price (or volume) behavior is rapidly losing its competitive advantages. Institution and individual traders both are increasingly applying new technologies to financial forecasting. Recent research shows that these nonlinear domains can be modeled more accurately with these technologies (like ANN) than with the linear statistical and single-market methods that have been the mainstay of technical analysis throughout the past decade. Another advantage of ANN [1], [7] implementation is that the processing is distributed among many nodes. Even if some of the nodes fail to function properly, the effect on the overall performance of the system will not be significant. This assertion can be verified by turning off m randomly selected hidden layer nodes and observing the resulting effect on the system performance. However due to their large number of inputs, network pruning is important to remove redundant input nodes and speed up training and recall. Essential features of a neural network are: The network topology, Computational functions, and Training algorithm [5]. Decisions on the target output with respect to concerned inputs will select these features along with their respective parameters like learning rate, number of hidden layers, and number of nodes in each layer etc. Financial neural network must be trained to learn the data and generalize, while being prevented from overtraining and Memorizing the data. Once trained, the network parameters (weights) will be kept fixed and can be designed to predict the direction, magnitude. 3. SURVEY OF THE RELATED WORK 3.1 Functional Link Artificial Neural Network FLANN [10], [11] is a single layer, single neuron architecture, which has the exceptional capability to form complex decision regions by creating non-linear decision boundaries. The architecture of the FLANN is different from the linear weighting of the input pattern produced by the linear links of the better known Multi-Layer Perceptron (MLP) [2]. In a FLANN, each input to the network undergoes functional expansion through a set of basis functions. The functional link acts on an element or the entire pattern itself by generating a set of linearly independent functions. The inputs expanded by a set of linearly independent functions in the function expansion block, causes an increase in the input vector dimensionality. This enables FLANN to solve complex classification problems by generating non-linear decision boundaries. In our experiment, the functional expansion block comprises of a set of trigonometric functions. 3.2 Fuzzy Neural Networks Neural fuzzy networks [6], [8], [9] have an advantage over expert systems because they can extract rules without having them explicitly formalized. In a highly chaotic and only partially understood environment, such as the stock market, this is an important factor. It is hard to extract information from experts and formalize it in a way usable by expert systems. Expert systems are only good within their domain of knowledge and do not work well when there is missing or incomplete information. According to the mechanism of fuzzy logic control system, the fuzzy neural network [12] usually has 5 functional layers: (1) Layer 1 is the input layer. (2) Layer 2 is the fuzzification layer; (3) Layer 3 is the fuzzy reasoning layer which may consist of AND layer and OR layer; (4) Layer 4 is the defuzzification layer; (5) Layer 5 is the output layer. The architecture of a fuzzy neural network is described in Fig.1. Usually, the fuzzy neural network maps crisp inputs xi (I=1,2,,n) to crisp output yi (j=1,2,,m). A fuzzy neural network is constructed layer by layer according to linguistic variables, fuzzy IF-THEN rules, the fuzzy IJ-AI Vol. 1, No. 1, March 2012 : 25 30

IJ-AI ISSN: 2252-8938 27 reasoning method and the defuzzification scheme of a fuzzy reasoning method and the defuzzification scheme of a fuzzy logic control system. Figure 1. Architecture of FLANN Model Figure 2. Architecture of the fuzzy neural network Each neuron in the fuzzification layer represents an input membership function of the antecedent of a fuzzy rule. One common method to implement this layer is to express membership functions as discrete points. Thus for a fuzzy rule "IF X1 is A1 and X2 is A2 THEN Y is B", A's characterize the possibility distribution of the antecedent clause "X is A". Each of the hidden nodes is defined as a fuzzy reference point in the input space. The function of the defuzzification layer is for rule evaluation. Each neuron in this layer represents a consequent proposition "THEN Y is B" and its membership function can be implemented by combining one or two sigmoid functions and linear functions. 4. PROPOSED HYBRID MODEL 4.1. Functional Link Fuzzy Logic Neural Model The structure of the FLANN is fairly simple. It is a flat net without any need for a hidden layer. Therefore, the computation as well as learning algorithm used in this network is simple. The functional expansion of the input to the network effectively increases the dimensionality of the input vector and hence the hyper-planes generated by the FLANN provide greater discrimination capability in the input pattern space. Various system identifications, control of nonlinear systems, noise cancellation and image classification systems have been reported in recent times. These experiments have proven the ability of FLANN to give out satisfactory results to problems with highly non-linear and dynamic data. Further the ability of the FLANN architecture based model to predict stock index movements, both for short term (next day) and medium term (one month and two months) prediction using statistical parameters consisting of well-known technical indicators based on historical index data is shown and analyzed. The Proposed Hybrid [4], [14] Functional Link Fuzzy Logic Neural model (FLFNM) uses the nonlinear combination of input variables. The proposed hybrid model architecture is explained below: 1. The raw datasets are stored in database (.mdb); the fuzzification process gets started with the raw datasets. This process involves, crisp value conversion that helps to train the neural network with greater accuracy. 2. After the fuzzification process, the converted crisp input values are moved to neural network input layer. 3. The input layer has nodes that collects the inputs from fuzzification block and pass the inputs to neuron. 4. The functional expansion block (neuron- FLANN model) collects the inputs and multiplied with weights assigned between input layer and functional expansion block. Prediction of Future Stock Close Price using Proposed Hybrid ANN Model of. (Kumaran Kumar J.)

28 ISSN: 2252-8938 5. The multiplied inputs are summed collectively and forwarded to activation function. 6. The activation function used in this neuron is (tanh function), this function gets the summed inputs and coverts it to 0 to 1 range using tanh mathematical function. 7. After range conversion over, the value is passed to fuzzy sets to check which operation will perform. 8. The fuzzy sets has three relations a If (Value<0) then tomorrow close price value < than today s price (loss). b If (Value<=0.5 && Value>=0) then tomorrow close price value remains same as today s price (no loss). c If (Value>0.5) then then tomorrow close price value > than today s price (profit). 9. Finally the satisfied condition throws the output to the neural network output layer. 10. In training phase, the error will be back propagated using back propagation algorithm [5]. Figure 3. Architecture of Hybrid Functional Link Fuzzy Logic Neural Model 5. PERFORMANCE METRICS 5.1 Performance Metrics a. Root Mean Square Error (1) Where t k is predicted value, o k is desired value and N is total number of test data b. Mean Absolute Percentage Error x 100 (2) Where A t is predicted value and F t is desired value IJ-AI Vol. 1, No. 1, March 2012 : 25 30

IJ-AI ISSN: 2252-8938 29 5.2 Implementation Screenshots and Error Rate of Proposed Model on prediction of future stock price of SENSEX & NSE Table 1. Error Rate Analysis for SENSEX & NSE Stock Exchange STOCK EXCHANGE RESULT FLFNM (proposed) FLANN (Existing) DESIRED 0.1302 0.1102 SENSEX ACTUAL 0.2333 0.2333 ERROR % 0.07 0.5 NSE DESIRED 0.04128 0.02124 ACTUAL 0.07929 0.07929 ERROR % 0.08 0.43 5.3 Accuracy & Error Rate Analysis Figure 4. Accuracy of FLFNM and Existing Model (FLANN) 1.8 1.8 1.6 1.6 1.4 1.4 1.2 1.2 1 0.8 0.6 Desired FLNFLM 1 0.8 0.6 Desired FLNFLM 0.4 0.4 0.2 0.2 0 Day 1 Day 2 Day 3 Day 4 Day 5 Day 6 Day 7 Day 8 Day 9 Day 10 Day 11 0 Day 1 Day 2 Day 3 Day 4 Day 5 Day 6 Day 7 Day 8 Day 9 Day 10 Day 11 Figure 5. Error Rate of FLFNM for SENSEX Datasets Figure 6. Error Rate of FLFNM for NSE Datasets 6. CONCLUSION The proposed Hybrid Network model (Functional link Fuzzy Logic Neural Model) predicts the future stock close price of both SENSEX and NSE using past historic datasets. Performance metrics of ANN (RMSE & MAPE) calculates the accuracy and error rate of FLFNM model is more efficient than the existing model (FLANN). In future, the fuzzy sets can be filled with suitable relations that will be capable of dectecting various attributes of stock market case study. Prediction of Future Stock Close Price using Proposed Hybrid ANN Model of. (Kumaran Kumar J.)

30 ISSN: 2252-8938 Figure 7. Screenshot of FLFNM Training Phase Figure 8. Screenshot of FLFNM Testing Phase REFERENCES [1] Iik Yilmaz, Nazan Yalcin Erik and Ouz Kaynar Different types of learning algorithms of artificial neural network (ANN) models for prediction of gross calorific value (GCV) of coals Academic Journals, Vol. 5(16), pp. 2242-2249, 18 August, 2010. [2] Vahid Aeinfar, Hoorieh Mazdarani, Fatemeh Deregeh, Mohsen Hayati, Mehrdad Payandelr, Multilayer perceptron neural network with supervised training method for diagnosis and predicting blood disorder and cancer, IEEE International Symposium on Industrial Electronics (ISlE 2009) Seoul Olympic Parktel, Seoul, Korea July 5-8, 2009. [3] Pratap kishore padhiary, Ambika prasad mishra, Development of improved artificial neural network model for stock market prediction, International Journal of Engineering Science And Technology (Ijest), vol. 3 no. 2, feb 2011. [4] Chakravarty, S. Dash, P.K., Forecasting stock market indices using hybrid network, IEEE Transactions of Neural Network, P 1225 1230, Dec. 2009. [5] Clarence N.W. Tan and Gerhard E. Wittig, A Study of the parameters of a Back-propagation Stock Price Prediction Model, Proceedings 1993 The First New Zealand International Two-Stream Conference on Artificial Neural Networks and Expert Systems, p. 288-91,1993. [6] R.J. Kuo; C.H. Chen, Y.C. Hwang; An intelligent stock trading decision support system through integration of genetic algorithm based fuzzy neural network and artificial neural network, Fuzzy Sets and Systems, 118 pages 21-45, (2001). [7] Ramnik Arora, Artificial Neural Networks for forecasting stock price, Computers and Operations Research, 2008. [8] P. C. Chang and C. H. Liu, A TSK type fuzzy rule based system for stock price prediction, Expert Syst. Appl., vol. 34, pp. 135 144, Jan 2008. [9] R. Jensen and Q. Shen, Fuzzy-rough data reduction with ant colony optimization, Fuzzy Set Syst., vol. 149, pp. 5 20, Jan 2005. [10] Chen Chen-Hung A unctional-link-based Neurofuzzy Network for Nonlinear System Control - IEEE Transaction on Fuzzy Systems, Vol 16 No 5, October 2008. [11] Majhi Banshidhar, Shalabi Hasan and Fathi Mowafak: FLANN Based Forecasting of S&P 500 Index Information Technology Journal, 4 (3): 289-292, 2005 Asian Network for Scientific Information. [12] Wang Wilson and Vrbanek- An Evolving Fuzzy Predictor for Industrial Application IEEE Transaction on Fuzzy Systems, Vol 16. No 6 December -2008. [13] Yu Lixin and Zhang Yan Qing Evolutionary Fuzzy Neural Networks for Hybrid financial Prediction - IEEE Transaction on Systems Man and Cybernetics, Vol 35 No 2-May 2005. IJ-AI Vol. 1, No. 1, March 2012 : 25 30