Preview

Stock Market Prediction Using Aritificial Neural Networks

Powerful Essays
Open Document
Open Document
5277 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Stock Market Prediction Using Aritificial Neural Networks
Stock Market Prediction Using Artificial Neural Networks
Tariq Waheed in supervision of Dr. Xiang Cheng Department of Electrical and Computer Engineering, National University of Singapore Engineering Drive 3 Singapore 117576, Email: tariq@nus.edu.sg
Abstract— Stock market is a very dynamic field whose prediction still remains a very challenging task for scholars and veteran traders alike. The study presented in this paper is an attempt to predict the daily and weekly rates of returns of the stock market and compare the results to the return generated by the naïve buy-and-hold strategy. The first part of the study explores the various auto-regressive and neural network models in predicting the daily and weekly S&P 500 index returns solely using the historical index data. It is observed that neural networks perform better than auto-regressive models in predicting the stock market and hence, S&P 500 Index is not a perfect linear time series. The study shows that three-model approach can help to better perform in the task of stock market prediction. The second part of this study uses technical indicators and three-model approach to see if adding more information and trending the data with technical indicators can help to achieve higher returns in stock market as compared to the naïve buy-and-hold strategy. It is observed that Moving Averages are better at giving buy and sell signals in market than Relative Strength Index. A significant observation made from both parts of the study is that weekly returns can be predicted in more confidence than daily returns. The ex-ante testing of the models is done and evaluated after considering the commission costs and using the short-selling strategy which is found to be a profitable strategy. There is an observation that adding more information to the neural network regarding the historical price data can lead to better prediction and hence, higher profits. Index Terms—Hierarchy systems, artificial neural networks, stock market



References: B. G. Malkiel, “A Random Walk Down Wall Street”, W. W. Norton & Company, New York, London (1999). [2] Eugene F. Fama, “Efficient Capital Markets: A Review of Theory and Empirical Work”, Journal of Finance, Vol.25 Issue 2, p383-417 (May 1970). [3] Engene F. Fama, “The Behavior of Stock Market Prices”, Journal of Business, Vol.38 Issue 1, p34-105 (Jan 1965). [4] Sdney S. Alexander, “Price Movements in Speculative Markets: Trends or Random Walks”, Industrial Management Review, Vol. 2 Issue 2, p7-26 (May 1961). [5] Victor Niederhoffer and M. F. M. Osborne, “Market Making and Reversal on the Stock Exchange”, Journal of the American Statistical Association, Vol. 61, p897-916 (Dec 1966). [6] Eugene F. Fama, Lawrence Fisher, Michael Jensen and Richard Roll, “The Adjustment of Stock Market Prices to New Information”, International Economic Review, Vol. X, p1-21 (Feb 1969). [7] Ray Ball and Philip Brown, “An Empirical Evaluation of Accounting Income Numbers”, Journal of Accounting Research, Vol.6 Issue 2, p159-178 (Autumn 1968). [8] Roger N. Waud, “Public Interpretation of Federal Reserve Discount Rate Changes: Evidence on the “Announcement Effect””, Econometrica, Vol. 38 Issue 2, p231-250 (Mar 1970). [9] Micheal Jensen, “The Performance of Mutual Funds in the Period 1945-64”, Journal of Finance, Vol. 23 Issue 2, p389-416 (May 1968). [10] Irwin Friend and Douglas Vickers, “Portfolio Selection and Investment Performance”, Journal of Finance, Vol. 20 Issue 3, p391415 (Sept 1965). [11] S. Basu, “Investment Performance of Common Stocks in Relation to their Price-Earnings Ratios: A Test of the Efficient Market Hypothesis”, Journal of Finance, Vol. 32 Issue 3, p663-682 (June 1977). [12] John P. Shelton, “The Value Line Contest: A Test of the Predictability of Stock-Price Changes”, Journal of Business, Vol. 40 Issue 3, p251269 (July 1967). [1] [13] Werner F.M. De Bondt and Richard Thaler, “Does the Stock Market Overreact?”, Journal of Finance, Vol. 40 Issue 3, p793-805 (July 1985). [14] B. Stein and P. DeMuth, "Yes, You can time the market", Wiley (2003). [15] M. Hashem Pesaran and Allan Timmermann, “Forecasting stock returns: An examination of stock market trading in the presence of transaction costs”, Journal of Forecasting, Vol. 13, p335-367 (Aug 1994). [16] Mitchell M. T., “Machine Learning”, The McGraw-Hill Companies, New York (1997). [17] Simon Haykin, “Neural Networks: A Comprehensive Foundation”, Prentice-Hall, Inc., New Jersey (1999). [18] H. White, “Economic Prediction Using Neural Networks: The Case of IBM Daily Stock Returns” in “Neural Networks in Finance and Investing”, Robert R. Trippi and Efraim Turban, Irwin Professional Pub., Chicago p469-482 (1996). [19] F.S. Wong, “Time Series Forecasting Using Backpropagation Neural Networks”, Neurocomputing, Vol. 2, p147-159 (1990/91). [20] D. Brownstone, “Using Percentage Accuracy to Measure Neural Network Predictions in Stock Market Movements”, Neurocomputing, Vol. 10, p237- 250 (1996). [21] G. Tsibouris & M. Zeidenberg, “Testing the Efficient Market Hypothesis With Gradient Descent Algorithms” in “Neural Networks in the Capital Markets”, John Wiley & Sons Ltd, England (1996) [22] K.S. Narendra and C. Xiang, “Identification of Two Multivariable Systems from Input-Output Data”, Centre for Systems Science, Yale University. [23] Luvai Motiwalla and Mahmoud Wahab, “Predictable Variation and Profitable Trading of US Equities: A Trading Simulation Using Neural Networks”, Computers & Operations Research, Vol. 27, p1111-1129 (2000). [24] Brock W. A., Dechert W. D., Scheinkman J. A. and LeBaron B. D., “A test for independence based on the correlation dimension”, Econometric Reviews, Vol. 15, p197-235 (1996). [25] Tim Chenoweth and Zoran Obradovic, “A Multi-Component Nonlinear Prediction System for the S & P 500 Index”, Neurocomputing, Vol. 10, p275- 290 (1996). [26] Relative Strength Index (RSI), Retrieved January 20, 2007 from StockCharts.Com.Website:http://stockcharts.com/school/doku.php?id =chart_school:technical_indicators:relative_strength_index_rsi

You May Also Find These Documents Helpful

  • Good Essays

    Lee, C.A, Lee C. J. & Lee, F. C. (2009) “Financial Analysis, Planning and Forecasting. Theory and Application. Second Edition. World Scientific Co. Pte. Ltd. Copyrighted material.…

    • 871 Words
    • 4 Pages
    Good Essays
  • Powerful Essays

    In this essay, firstly, the Efficient Market Hypothesis (EMH) is given an appraisal in relation to random walk, as well as its definition, revealing theories in context of empirical evidence. A brief explanation of the 3 forms of EMH is highlighted alongside a brief description of its tests for validity. The main focus of discussion is whether or not Technical & Fundamental Analysis can determine abnormal returns by investors strategically using a set of information to formulate buying and selling decisions to beat the efficient market. (Graphs and sets of equations may be applied). Following general empirical studies, the theory of Efficient Market typically asserts that, it would be impossible to consistently outperform the market by means of technical & fundamental analysis, consequently, in the light of this assertion, technical, fundamental and other anomalies are revealed that may suggest some levels of market inefficiencies. Finally, a conclusion, subjectively underlining the relevant points expressed above, putting to perspective facts conveyed through the…

    • 2604 Words
    • 11 Pages
    Powerful Essays
  • Satisfactory Essays

    This article studies the Hurst exponent by developing insight on the price movements in financial markets by taking the Hurst exponent and returns in the stock market and comparing them. This is done to see if the R/S ratios are related to the return generating process in the stock market. They did this by watching the stock market for 10 years. The daily closing prices of different stock indices were taken daily over the ten year span.…

    • 337 Words
    • 2 Pages
    Satisfactory Essays
  • Better Essays

    Seeking to build the world 's most accurate stock market timing model. [ONLINE] Available at: http://www.crystalbull.com/stock-market-timing/Money-Supply-chart/. [Last Accessed 07 March 13].…

    • 922 Words
    • 4 Pages
    Better Essays
  • Powerful Essays

    Stock Analysis

    • 2220 Words
    • 9 Pages

    In this assignment I have chosen Apple Inc. to analyze its stock rate and financial statements. The numerical data (APPENDIX I) reflects to the Apple’s stock rate on NYSE from January 18-th to March 2-nd. Data used for this analysis is collected from Yahoo Finance and all the graphs, tables and analytical works are done on Microsoft Excel 2007 by using the Open, High, Low, Close rate of the stock. By researching and evaluating past (2 months) and current data allows me to have proximate idea about the stock trend and would help me to gain informed predictions. Apple Inc.’s business model is completely phenomenon and it might be the only preeminent IT company in the world. Therefore, it was interesting to study how their stock rate fluctuates.…

    • 2220 Words
    • 9 Pages
    Powerful Essays
  • Better Essays

    Obtaining a reliable and accurate forecasting of future sales or market behavior is of paramount importance for business people such as policy makers, companies making investment decisions, setting up prices and so on. There are several forecasting methods and they are differently used by different companies to satisfy each one specific needs. Forecasting models companies use depend mainly of factors such as accuracy required, time horizon, availability of data and competent personnel (1995, Colgate, et al).…

    • 1256 Words
    • 4 Pages
    Better Essays
  • Best Essays

    Lo, A. W. and Mackinlay, C. 1988, ‘Stock market prices do not follow random walks: evidence from a simple specification test’, The Review of Financial Studies, vol. 1, no. 1, pp. 41-66, viewed 29 September 2013, Jstor, 2962126.…

    • 1728 Words
    • 6 Pages
    Best Essays
  • Good Essays

    The stock market is often seen as a great predictor of future economic activity. Stock prices reflect the aggregated feelings of each investor who are generally forward-looking. It is even considered a leading indicator by The Conference Board Leading Economic…

    • 1496 Words
    • 6 Pages
    Good Essays
  • Good Essays

    Fama, Eugene F., 1970. “Efficient Capital Markets: A Review and Theory of Empirical Work”, The Journal of Finance, 25(2), 383-417…

    • 1759 Words
    • 8 Pages
    Good Essays
  • Good Essays

    INTRODUCTION: This project aims to research and understand an individual stock price change, Apple (identified as AAPL in the stock exchange market); by studying the statistics generated by market activity (prices) of the stock along with the price changes in Dow Jones Industrial Average (DJIA) and the Dow Jones U.S. Technology Index (DJUSTC). Assuming that the changes in DJIA and DJUSTC could be estimated by market moving economic indicators (e.g. updates of GDP, Jobless claims, Consumer confidence index, etc.), this analysis will help an individual investor to identify patterns and trends that may suggest the daily price change of the AAPL stock.…

    • 402 Words
    • 2 Pages
    Good Essays
  • Powerful Essays

    Department of Electrical Engineering ChengShiu Institute of Technology Kaohsiung, 833 Taiwan * Department of Engineering Science National Cheng Kung University Tainan, 701 Taiwan + Department of Electrical Engineering National Cheng Kung University Tainan, 701 Taiwan…

    • 3369 Words
    • 14 Pages
    Powerful Essays
  • Powerful Essays

    1. Introduction Stock market prediction is regarded as a challenging task of ÿnancial time-series prediction. There have been many studies using artiÿcial neural networks (ANNs) in this area. A large number of successful applications have shown that ANN can be a very useful tool for time-series modeling and forecasting [24]. The early days of these studies focused on application of ANNs to stock market prediction (for instance [2,6,11,13,19,23]). Recent research tends to hybridize several artiÿcial intelligence (AI) techniques (for instance [10,22]). Some researchers tend to include novel factors in the learning process. Kohara et al. [14] incorporated prior knowledge to improve the…

    • 4964 Words
    • 20 Pages
    Powerful Essays
  • Better Essays

    Trends in Quantitative Finance

    • 58710 Words
    • 235 Pages

    Samuelson, Paul A. 1965. “Proof that Properly Anticipated Prices Fluctuate Randomly.” Industrial Management Review, vol. 6, no. 1 (Spring):41–50. ———. 1994. “The Long-Term Case for Equities.” Journal of Portfolio Management, vol. 20, no. 1 (Fall):15–24. Sharpe, William F. 1964. “Capital Asset Prices: A Theory of Market Equilibrium Under Conditions of Risk.” Journal of Finance, vol. 19, no. 3:425–442. Simon, Herbert A. 1980. The New Science of Management Decision. New York, NY: Harper and Row. Sorensen, Eric H., Ronald Hua, and Edward Qian. 2005. “Contextual Fundamentals, Models, and Active Management.” Journal of Portfolio Management, vol. 31, no. 1 (Fall):23–26. Thawornwong, Suraphan, and David Enke. 2004. “The Adaptive Selection of Financial and Economic Variables for Use with Artificial Neural Networks.” Neurocomputing, vol. 56:205–232. Thorley, Steven R. 1995. “The Time-Diversification Controversy.” Financial Analysts Journal, vol. 51, no. 3 (May/June):68–76. Tobin, James. 1958. “Liquidity Preferences as Behavior towards Risk.” Review of Economic Studies, vol. 25, no. 2:65–86. Treynor, Jack L. 1961. “Towards a Theory of Market Value of Risky Assets.” Unpublished manuscript. Trippi, Robert. 1992. Neural Networks in Finance and Investing: Using Artificial Intelligence to Improve Real World Performance. Chicago, IL: Probus Publishing. Vanini, Paolo, and L. Vignola. 2002. “Optimal Decision-Making with Time Diversification.” European Finance Review, vol. 6, no. 1:1–30. Vapnik, Vladimir N. 1995. The Nature of Statistical Learning Theory. New York: Springer. ———. 1998. Statistical Learning Theory. New York: Springer. Varian, Hal R. 1992. Microeconomic Analysis. New York: W.W. Norton & Co. Von Neumann, John, and Oskar Morgenstern. 1944. Theory of Games and Economic Behavior. Princeton, NJ: Princeton University Press. Ziemba, William T. 2003. The Stochastic Programming Approach to Asset, Liability, and Wealth Management. Charlottesville, VA: Research Foundation of CFA Institute.…

    • 58710 Words
    • 235 Pages
    Better Essays
  • Satisfactory Essays

    We demonstrate that artificial neural network model is more convenient for Mongolian banks’ credit risk management than other econometric models due to the models’ evaluation and forecast accuracy. Therefore, we recommend Mongolian banks and financial institutions to apply ANN model to forecast credit risk and to hedge risk.…

    • 290 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    INTRODUCTION In an environment where market participants, traders and analysts do not trust accounting statements, or where accounting information is difficult to access, or accounting rules are being applied arbitrarily it is advisable not to entirely depend on them. While accounting statements can help one understand revenue, cost, cash flows and financing structure it is the mistrust in how these numbers are derived that prompts one not to rely on the published results. In situations like these additional techniques are required to analyse and make predictions on a stock. One technique that analyst have depended on is technical analysis. Technical analysis argues that the market is its own best predictor and information (fundamentals) trickle to the market at various rates and once a trend develops it is likely to continue unless something major disrupts the trend; it is only the studious analyst who can beat the market. Technical analysis methods include Fibonacci analysis, moving average analysis, and relative strength index analysis, beta analysis among others. In this model we attempt to predict ZSE stock movements using CAPM (beta) analysis. MODEL DEVELOPMENT The CAPM model asserts that the value of a stock is a function of the risk free rate, beta of a stock and stock market risk premium. Estimating risk free rate In developed economies the risk free rate is easy to estimate, it is treasury bill (bond) rate since it is assumed that government can never default- it can just print money to payback the borrowings. In developing economies, financial markets are not developed on the run treasury bonds might not be in existence. The economy exhibits various risks such as inflation, economic growth, capital flight; all this can affect the government creditworthiness, thus making it difficult to use treasury bills (bonds) rate as risk free rate. The risk free rate thus is a function of economic growth and the amount of inflation that is associated with such…

    • 985 Words
    • 4 Pages
    Powerful Essays