# INTRODUCTION tock price prediction is a heated topic in prediction study of financial area. The use of ANN in business environments has been increasing over the last few years. Excellent algorithm has been applied to predict stock price or index. Interest in neural networks has led to a considerable surge in research activities in the past decade. Artificial neural network models are based on the neural structure of the brain. The brain learns from experience and so do artificial neural networks. As a useful analytical tool, ANN is widely applied in analyzing the business data stored in database or data warehouse. Identifying customer behavior patterns and predicting stock price are emerging areas of neural network research and its application. Most of the companies have created new methods of evaluating financial data and investment decisions. Artificial Neural Networks are being used by most companies for improved forecasting capabilities in analysis of stock market. So, artificial neural network suits better than other models in predicting the stock market. To predict stock prices there are so many conventional techniques can be used, in which fundamental and technical analysis one among them (Atiya, A. F, El-Shoura et al, 1999). Fundamental analysis involves various macro-economic factors, results of the company, financial conditions and other related attributes are used to measure the value of the company with reflect to stock price changes. Technical analysis, on the other hand, involves analyzing statistics generated by market activity, such as past prices and volume (Kai Keng Ang and Chai Quek, 2006). Recent development in soft computing has set a new dimension in the field of financial forecasting. Tools based on ANN have gained more popularity due to their inherent capabilities to approximate any non linear function to a high degree of accuracy. The idea of forecasting using neural network is to find an approximation of mapping between the input and output data through training. The trained neural network is then used to predict the values for the future (Abhyankar, A. et al, 1997). This research work presents the use of artificial neural network as a forecasting tool for predicting the stock market price. The remainder of the paper is organized as follows. Section II reviews the background study of the stock market prediction by Artificial Neural Network. Section III focuses on the objectives of the study. Section IV discusses about the basic of Artificial Neural Network; benefits and limitations of ANN were presented. Section V discusses about the Indian Stock market. Section VI explains about data and methodology of using NeuralWorks Predict to predict the stock prices and calculating result performance. Section VII concludes the research. # II. # BACKGROUND STUDY In the last two decades lot of research has been done on models based on intelligent soft computing. In general, the approaches to predict stock market could be classified into two classes, fundamental analysis and technical analysis (Kai Keng Ang and Chai Quek, 2006). Fundamental analysis is based on macroeconomic data and the basic financial status of companies like money supply, interest rate, inflationary rates, dividend yields, earnings yield, cash flow yield, book to market ratio, price-earnings ratio, lagged returns (Fama and French, 1988;Lakonishok, 1994). Technical analysis is based on the rationale that history will repeat itself and that and hidden in past trading activities and by analyzing patterns and trends shown in price and volume charts (Smirlock and Starks, 1985;Brush 1986). According to (Refenes, Zapranis and Franchis, 1994) "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, Galler and Wright, 1993) 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. Using neural networks to predict financial markets has been an active research area in both fundamental and technical analysis, since the late 1980s (White, 1988 Fujitsu a Japanese technology company and Nikko Securities -an investment company joined together to develop a stock market prediction system for TOPIX (Tokyo based stock index). The emergence of artificial intelligence techniques has seen their enormous application to financial forecasting, such as expert systems (Tsaih Yenshan Hsu, and Charles Lai, 1998), fuzzy logic (Hiemstra, 1994), and neural networks (Kryzanowski, Galler and Wright, 1993). Among them, neural networks are the most popular and successful tools. There is extensive literature about the application of neural networks in financial forecasting (Azoff, 1994;Goonatilake and Treleaven, 1995;Wong and Selvi, 1998). One of the most popular Journals published on the application of neural networks in finance is the Journal of Computational Intelligence in Finance (Bhagirathi Nayak, et al, 2011). Also, all of the researches using neural network applications in prediction of stock market trend are mainly based on the assumption that the basic laws in a certain stock market is consistent through the time of experiment data. # III. # OBJECTIVES OF THE STUDY The main objective of this study is to use NeuralWorks Predict tool to obtain more accurate stock prediction price and to evaluate them with some performance measures. This study can be used to reduce the error proportion in predicting the future stock prices. It increases the chances for the investors to predict the prices more accurately by reducing error percentage and thus gain benefits in share markets. IV. # ARTIFICIAL NEURAL NETWORK Artificial Neural Network (ANN) is an information processing system where the elements called neurons, process the information. The signals are transmitted by means of connection links. The links possess an associated weight, which is multiplied along with the incoming signal (net input) for any typical neural network. The output signal is obtained by applying activations to the net input. The network consists of a set of sensory units that constitute the input layer and one or more hidden layer of computation modes. The input signal passes through the network in the forward direction. This type of network is called as multilayer perceptron (MLP) (Sivanandam, S.N. et al, 2006). The multilayer perceptron are used with supervised learning and have to lead the successful back propagation algorithm where logistic sigmoid function is widely used. The MLP network has hidden neurons and this will make the network more active for complex tasks. The layers of network are connected by synaptic weights and have a high computational efficiency. # a) Benefits of Using Artificial Neural Network Neural networks often lead to significant results, e.g. in weather forecasting, a rule of weather change is less probable than a steady weather pattern. According to (Schoneburg, 1990), this is also true for stock prices. A key aspect to successful forecasting lies in the ability to merge data available in diverse formats (Steven H. Kim and Se Hak Chun, 1998). The data analysis performed by neural networks tolerates a considerable amount of imprecise and incomplete input data due to the distributed mode of information processing. Neural network lie in their ability to predict accurately even in situations with uncertain data, and the possible combinations with other methods. Despite the benefits of artificial neural networks, there are still some limitations to neural networks that are discussed below. # b) Limitations of Artificial Neural Network Some methods are executed with insufficient reliability tests, data design and with inability to identify the optimal topology for a specific problem domain. There is no known method of designing an optimal neural network, but the best network is highly dependent on the data and application (Carlos Cinca. 1996). Some of the limitations are mentioned below: 1. NN require very large number of previous data. 2. The best NN architecture topology is still unknown. 3. For complex networks the result and accuracy may decrease. 4. Statistical relevance of the result is needed. 5. More careful data design is needed and systematically analyzed. In order to improve the NN applications, there are some other limitations, concerning the problems of evaluation and implementation of NN that should be discussed. Large number of research is done and implemented by companies that are not published in scientific indexes. V. # INDIAN STOCK MARKET Investors are mostly preferred the stock market investments because it has the opportunity of highest return over other schemes. For companies, stock market is one of the key sources to raise money through initial public offer (IPO). This allows businesses to be publicly traded, or raise additional capital for expansion by selling shares of ownership of the company in a public market. Indian stock market is mainly consists of two major stock indices, Bombay Stock Exchange (BSE) and National Stock Exchange (NSE). The benchmark for these two exchanges are Sensex (30 Stocks) and Nifty (50 Stocks). BSE was the first stock exchange in the country and approved under the Securities Contract Regulation Act, 1956. Sensex is an index of 30 stocks with 12 major sectors. In the year 1993, National Stock Exchange of India has been the frontier of Indian securities market. NSE is located at Mumbai, India referred as Nifty. Nifty is a well diversified index consisting of 50 major stocks from 21 sectors of the economy (Refer NSE, 2010). It is the largest stock exchange in India in terms of daily turnover and number of trades, for both equities and derivative trading. Trading on both exchanges is carried out in dematerialized form. Securities and Exchange Board of India (SEBI) is the regulatory authority and have the rights to monitor all the stock markets in India established by Government of India in the year 1988. The main goal of the board is to protect the investors in securities and regulate the stock market. There are 23 stock exchanges in India, out of that only 18 stock exchanges are currently in the operative mode. Among 18 exchanges BSE and NSE are considered to be the primary exchanges of India. VI. # DATA AND METHODOLOGY The actual problem discussed in this paper is to forecast the stock price of National Stock Exchange in India. For this purpose we have used available daily stock data of TCS (i.e., bhavcopy) from the National Stock Exchange beginning from 01-November-2009 to 12-December-2011 (Refer NSE, 2011). For this study, we select 508 day's NSE stock data of TCS Company. The data field used in this research consists of previous close, open price, high price, low price and close price. In order to predict the stock price, past data is necessary and it has been collected for the trading days from 01-November-2009 to 12-December-2011. The historical data set is available on the National Stock Exchange website. The main task is to predict the stock price of TCS will be up or down for tomorrow by using the historical values of the company stock. In this research, NeuralWorks Predict version 3.24 packages are applied to predict the future stock price of TCS The historic data of previous close, open price, high price, low price and closing price data is used. NeuralWorks Predict 3.24 tool is used throughout the process, this research choose 5 important attributes including previous close, open price, high price, low price and closing price. The performance of the neural network largely depends on the architecture of the neural network. Issues critical to the neural network modeling like selection of input variables, data pre-processing technique, network architecture design and performance measuring statistics should be considered carefully. The close correlation between the market value predicted by the neural network and the true value suggests that such networks may indeed become very powerful tools in financial applications. In this study, a real world output range is calculated whose limits are the minimum and maximum of all real world targets and real world model outputs. This range is used in several of the analysis results as shown in the Table 2. # Table.2 : Results Interpretation and Performance # Statistics c) Output Summary The result of the predicted value has been shown in the Fig. 1. In Fig. 1, the actual close price of TCS have compared with the predicted price. Here, days refer to 508 values for each day starting from (19-November-2008 to 14-December-2010). # Fig.1 : Comparison of Actual Vs Predicted Price The error percentage rate of the actual close price and predicted price of TCS as shown in Fig. 2. # Fig.2 : Error Percentage rate of Actual Close Price Vs Predicted Price There are many different methods to measure performance of systems. In order to evaluate the net performance of the stock value some of the following indicators have to be considered. The indicators are R, Net-R, Average Absolute, RMS, Accuracy measures and Confidence limits. Net-R measure is the linear correlation between the real world target output and the raw neural net output. RMSE is a basic measure is used to find out the difference between values predicted by a model and the value actually observed. We have used NeuralWorks Predict package tool for training, testing and predicting the stock prices. It is found that the percentage of correct prediction has been made and the result of this analysis is shown in the Table 2. The train and test data sets are selected from the primary and secondary working sets, which will preliminary, trim the data sets. The following are the outcomes of all test and train set data. ![a) Methodology of Building a Predict Model General steps of building and predicting the value by using Multi Layer Perceptron model in the NeuralWorks Predict. 1. Building a Predict Model: To make predictions from data if target outputs can be any value in a continuous range of numeric values or a discrete ordered range of numeric values. 2. Selection of model: Multi Layer Perceptron (MLP) model is selected to predict the stock value. 3. MLP Input training data 4. MLP Output training data 5. MLP Training data characteristics 6. MLP Network parameters 7. Reviewing parameters and training the model 8. Saving the model 9. Training statistics 10. Testing a predict model 11. Specifying data sets for testing 12. Interpreting test results 13. Running a MLP predict model b) Results and Performance Statistics Performance statistics that are computed for prediction model train and test sets are shown in Table1.January 2012Table.1 : Train and Test Results of TCSIn Table1, R Correlation (R) is the linear correlation between predicted outputs and target outputs, in problem domain units. Average Absolute Error (Avg Abs) denotes the average absolute difference between predicted output values and target output values. Maximum Absolute Error (Max Abs) is the maximum absolute difference between a predicted output value and a target output value. The Root Mean Square Error (RMS) is the error between the predicted outputs and the target outputs. Accuracy is the percent of predicted output values that lie within 20% of their corresponding target output values. Confidence Intervals (Conf Interval) 95% of the model predictions lie within the range around target output values bounded by the confidence intervals and number of records processed. Finally, records indicate the number of records processed during training or testing.](image-2.png "") ![Analysis of Stock Price Prediction using Artificial Neural Network Global Journal of Computer Science and Technology Volume XII Issue I Version I 22 January 2012 © 2012 Global Journals Inc. (US)](image-3.png "Performance") 4![Fig.4 : Graph of Primary Working Set Data](image-4.png "Fig. 4 :") 5![Fig.5 : Graph of Secondary Working Set Data](image-5.png "Fig. 5 :") . © 2012 Global Journals Inc. (US) Global Journal of Computer Science and Technology Volume XII Issue I Version I © 2012 Global Journals Inc. (US) January 2012 © 2012 Global Journals Inc. (US) VIII. ## CONCLUSION In this research, we examined and applied multilayer perceptron model by using the NeuralWorks Predict tool. The results from analysis shows that NeuralWorks Predict offer the ability to predict the stock prices more accurately than the other existing tools and techniques. The accuracy of the predicted output values that within 20% of their corresponding target output value. By using this tool one can have the ability to forecast the stock price of NSE more accurately. This analysis can be used to reduce the error percentage in predicting the future stock prices. It increases the chances for the investors to predict the prices more accurately by reducing the error percentage and hence increase their profit in share markets. Utilizing neural network models together with other forecasting tools and techniques can be considered yet another valuable advancement in the age of technology. * Uncovering nonlinear structure in real-time stockmarket indexes: The S&P 500, the DAX, the Nikkei 225, and the FTSE-100 AAbhyankar LSCopeland WWong Journal of Business & Economic Statistics 15 1997 * A comparison between neural network forecasting techniques case study: river flow forecasting AFAtiya SMEl-Shoura SShaheen MSEl-Sherif IEEE Transaction Neural Networks 1999 * EMAzoff Neural Network Time Series Forecasting of Financial Markets New York Wiley 1994 * Money market headline news flashes, effective news and the DEM/USD swap rate: An intraday analysis in operational time DEBaestaens Van Den WMBerg HVaudrey Proc. 3rd Forecasting Financial Markets Conference 3rd Forecasting Financial Markets ConferenceLondon 1995 * Forecasting of Financial Markets -Application of Fuzzy Association Rules Bhagirathi Nayak .CDr Nahak Dr KRArun Misra International Journal of Research in Commerce IT & Management 2231- 5756 1 2011 * Eight Relative Strength Models Compared JBrush Journal of Portfolio Management 1986 * Self organizing neural networks for financial diagnosis CarlosSerrano-Cinca Decision Support Systems 17 1996 * Permanent and Temporary Components of Stock Prices EFFama KRFrench Journal of Political Economics 96 2 1988a * Dividend Yields and Expected Stock returns EFFama KRFrench Journal of Financial Economics 22 1988b * Using neural nets in market analysis MBFishman DSBarr WJLoick Technical Analysis of Stocks and Commodities 9 4 1991 * Neural networks for financial forecasting EGately 1996 New York7 John Wiley & Sons * Intelligent systems for finance and business SGoonatilake PTreleaven 1995 Wiley New York * Information Systems: Decision Support and Knowledge-Based Systems YHiemstra Proceedings of the Twenty-Seventh Hawaii International Conference on System Sciences the Twenty-Seventh Hawaii International Conference on System Sciences 1994. 1994 III A stock market forecasting support system based on fuzzy logic * Page * Stock Trading Using RSPOP: A Novel Rough Set-Based Neuro-Fuzzy Approach IEEE Transactions of Neural Networks Kai Keng Ang and Chai Quek. 17 5 2006 * Developing neural network forecasters for trading JOKatz Technical Analysis of Stocks and Commodities 10 4 1992 * Using neural nets for intermarket analysis JKean Technical Analysis of Stocks and Commodities 10 11 1992 * Using Artificial Neural Networks to Pick Stocks LKryzanowski MGaller DWWright Financial Analysts Journal 1993. July-August 1993 * Contrarian investment, extrapolation, and risk JosefLakonishok AndreiShleifer RobertVishny Journal of Finance 49 1994 * A Comprehensive Guide to Trading Methods and Applications JMurphy Technical Analysis of the Financial Markets Prentice Hall Press 1999 * Swingtum -A computational theory of fractal dynamic swings and physical cycles of stock market in a quantum price-time space HPPan 2003a Ibid * Proceedings of 2003 Hawaii International Performance Analysis of Stock Price Prediction using Artificial Neural Network Global Journal of Computer Science and Technology Volume XII Issue I Version HPPan 2003b. 25 January 2012 A joint review of technical and quantitative analysis of the financial markets towards a unified science of intelligent finance * Conference on Statistics and Related Fields Hawaii, USA June 5-9 * Nonlinear predictability of stock returns using financial and economic variables MQi Journal of Business and Economic Statistics 17 1999 * APRefenes YAbu-Mostafa JMoody Proceedings of the 3 rd International Conference on Neural Networks in the Capital Markets Weigend A the 3 rd International Conference on Neural Networks in the Capital World Scientific 1996 * Stock Performance Modeling Using Neural Networks: A Comparative Study With Regression Models ZapranisRefenes Francis Journal of Neural Networks 7 2 1994. 1994 * Artificial Neural Networks Forecasting Time Series RRogers VVemuri 1994 IEEE Computer Society Press Los Alamitos, CA * Training neural nets for intermarket analysis MRuggerio Futures 1994. Sep * Stock prediction using neural networks: A project report ESchoneburg Neurocomputing 2 1990 * Neural nets in technical analysis YLShih Technical Analysis of Stocks and Commodities 9 2 1991 * Introduction to Neural Networks using MATLAB 6.0 SNSivanandam SSumathi SNDeepa 2006 Tata McGraw-Hill Publishing Company Limited New Delhi * A Further Examination of Stock Price Changes and Transaction Volume MSmirlock LauraStarks Journal of Financial Research 8 1985 * Graded forecasting using an array of bipolar predictions: application of probabilistic neural networks to a stock market index HSteven Se HakKim Chun International Journal of Forecasting 14 1998 * Applying artificial neural networks to investment analysis GSSwales YYoon Financial Analysts Journal 48 5 1992 * Forecasting S&P 500 stock index futures with a hybrid AI system YenshanTsaih Hsu CCharles Lai Decision Support Systems 23 1998 * Selecting neural network architectures via the prediction risk: application to corporate bond rating prediction JUtans JEMoody Proceedings of the 1st International. Conference on AI Applications on Wall Street the 1st International. Conference on AI Applications on Wall Street IEEE Computer Society Press 1991 * Nonstationarity and data preprocessing for neural network predictions of an economic time series FVirili BReisleben Proceedings of the International. Joint Conference on Neural Networks the International. Joint Conference on Neural NetworksComo 2000. 2000 5 * The neural network financial wizards SWard MSherald Technical Analysis of Stocks and Commodities 1995. Dec * Economic predictions using neural networks: the case of IBM daily stock returns HWhite Proceedings of IEEE International Conference on Neural Networks IEEE International Conference on Neural Networks 1988 2 * Fuzzy neural systems for stock selection FSWong Financial Analysts Journal 48 1992 * BWong YSelvi Neural network applications in finance: A review and analysis of literature 1998. 1990-1996 34 * Guidelines for financial forecasting with neural networks JTYao CLTan Proceedings of the. International Conference on Neural Information Processing the. International Conference on Neural Information ProcessingShanghai, China 2001