Forecasting Stock Prices using a Weightless Neural Network. Nontokozo Mpofu



Similar documents
NEURAL networks [5] are universal approximators [6]. It

NTC Project: S01-PH10 (formerly I01-P10) 1 Forecasting Women s Apparel Sales Using Mathematical Modeling

NTC Project: S01-PH10 (formerly I01-P10) 1 Forecasting Women s Apparel Sales Using Mathematical Modeling

Prediction of Stock Performance Using Analytical Techniques

Lecture 6. Artificial Neural Networks

Business Intelligence and Decision Support Systems

Introduction to Machine Learning and Data Mining. Prof. Dr. Igor Trajkovski

Price Prediction of Share Market using Artificial Neural Network (ANN)

Power Prediction Analysis using Artificial Neural Network in MS Excel

Analecta Vol. 8, No. 2 ISSN

INTELLIGENT ENERGY MANAGEMENT OF ELECTRICAL POWER SYSTEMS WITH DISTRIBUTED FEEDING ON THE BASIS OF FORECASTS OF DEMAND AND GENERATION Chr.

Neural Network Stock Trading Systems Donn S. Fishbein, MD, PhD Neuroquant.com

Data Mining and Neural Networks in Stata

Forecasting of Economic Quantities using Fuzzy Autoregressive Model and Fuzzy Neural Network

Data Mining mit der JMSL Numerical Library for Java Applications

Comparing Artificial Intelligence Systems for Stock Portfolio Selection

International Journal of Computer Trends and Technology (IJCTT) volume 4 Issue 8 August 2013

White Paper Operations Research Applications to Support Performance Improvement in Healthcare

Neural Networks in Data Mining

The relation between news events and stock price jump: an analysis based on neural network

FOREX TRADING PREDICTION USING LINEAR REGRESSION LINE, ARTIFICIAL NEURAL NETWORK AND DYNAMIC TIME WARPING ALGORITHMS

High Frequency Trading using Fuzzy Momentum Analysis

A Multi-level Artificial Neural Network for Residential and Commercial Energy Demand Forecast: Iran Case Study

Stock Portfolio Selection using Data Mining Approach

A New Approach to Neural Network based Stock Trading Strategy

Cash Forecasting: An Application of Artificial Neural Networks in Finance

degrees of freedom and are able to adapt to the task they are supposed to do [Gupta].

Azure Machine Learning, SQL Data Mining and R

Credit Card Fraud Detection Using Self Organised Map

Turning Data into Actionable Insights: Predictive Analytics with MATLAB WHITE PAPER

APPLICATION OF ARTIFICIAL NEURAL NETWORKS USING HIJRI LUNAR TRANSACTION AS EXTRACTED VARIABLES TO PREDICT STOCK TREND DIRECTION

DATA MINING TECHNOLOGY. Keywords: data mining, data warehouse, knowledge discovery, OLAP, OLAM.

Introducing Oracle Crystal Ball Predictor: a new approach to forecasting in MS Excel Environment

SIMPLIFIED PERFORMANCE MODEL FOR HYBRID WIND DIESEL SYSTEMS. J. F. MANWELL, J. G. McGOWAN and U. ABDULWAHID

COMBINING THE METHODS OF FORECASTING AND DECISION-MAKING TO OPTIMISE THE FINANCIAL PERFORMANCE OF SMALL ENTERPRISES

Ms. Aruna J. Chamatkar Assistant Professor in Kamla Nehru Mahavidyalaya, Sakkardara Square, Nagpur

Neural Network Design in Cloud Computing

Neural Network Add-in

Advanced analytics at your hands

A New Method for Traffic Forecasting Based on the Data Mining Technology with Artificial Intelligent Algorithms

Neural Network Applications in Stock Market Predictions - A Methodology Analysis

Improving returns on stock investment through neural network selection

Practical Data Science with Azure Machine Learning, SQL Data Mining, and R

Course Syllabus For Operations Management. Management Information Systems

Knowledge Based Descriptive Neural Networks

A STUDY OF DATA MINING ACTIVITIES FOR MARKET RESEARCH

Students will become familiar with the Brandeis Datastream installation as the primary source of pricing, financial and economic data.

Applied Mathematical Sciences, Vol. 7, 2013, no. 112, HIKARI Ltd,

The Combination Forecasting Model of Auto Sales Based on Seasonal Index and RBF Neural Network

Intrusion Detection via Machine Learning for SCADA System Protection

Building an Advanced Invariant Real-Time Human Tracking System

A New Quantitative Behavioral Model for Financial Prediction

Stock Prediction using Artificial Neural Networks

Impelling Heart Attack Prediction System using Data Mining and Artificial Neural Network

Chapter 6. The stacking ensemble approach

NEURAL NETWORKS IN DATA MINING

Artificial Neural Networks and Support Vector Machines. CS 486/686: Introduction to Artificial Intelligence

Prediction Model for Crude Oil Price Using Artificial Neural Networks

How To Use Neural Networks In Data Mining

Get to Know the IBM SPSS Product Portfolio

Chapter 5 Business Intelligence: Data Warehousing, Data Acquisition, Data Mining, Business Analytics, and Visualization

Financial Trading System using Combination of Textual and Numerical Data

Performance Based Evaluation of New Software Testing Using Artificial Neural Network

Improving Decision Making and Managing Knowledge

Predictive Dynamix Inc

Dynamic Data in terms of Data Mining Streams

DecisionCraft Proposition

2. IMPLEMENTATION. International Journal of Computer Applications ( ) Volume 70 No.18, May 2013

Computational Neural Network for Global Stock Indexes Prediction

Gonzaga MBA Electives

D A T A M I N I N G C L A S S I F I C A T I O N

INFERRING TRADING STRATEGIES FROM PROBABILITY DISTRIBUTION FUNCTIONS

Gerry Hobbs, Department of Statistics, West Virginia University

EFFICIENT DATA PRE-PROCESSING FOR DATA MINING

Applications of improved grey prediction model for power demand forecasting

An Introduction to SAS Enterprise Miner and SAS Forecast Server. André de Waal, Ph.D. Analytical Consultant

Chapter 4: Artificial Neural Networks

MANAGING QUEUE STABILITY USING ART2 IN ACTIVE QUEUE MANAGEMENT FOR CONGESTION CONTROL

Data quality in Accounting Information Systems

ARTIFICIAL INTELLIGENCE METHODS IN EARLY MANUFACTURING TIME ESTIMATION

MERGING BUSINESS KPIs WITH PREDICTIVE MODEL KPIs FOR BINARY CLASSIFICATION MODEL SELECTION

A Robust Method for Solving Transcendental Equations

Measurement Information Model

Short-Term Forecasting in Retail Energy Markets

Course DSS. Business Intelligence: Data Warehousing, Data Acquisition, Data Mining, Business Analytics, and Visualization

CSC384 Intro to Artificial Intelligence

Review on Financial Forecasting using Neural Network and Data Mining Technique

STATISTICA. Clustering Techniques. Case Study: Defining Clusters of Shopping Center Patrons. and

THREE DIMENSIONAL REPRESENTATION OF AMINO ACID CHARAC- TERISTICS

DESIGN AND STRUCTURE OF FUZZY LOGIC USING ADAPTIVE ONLINE LEARNING SYSTEMS

Bank Customers (Credit) Rating System Based On Expert System and ANN

Neural Network and Genetic Algorithm Based Trading Systems. Donn S. Fishbein, MD, PhD Neuroquant.com

Process Modelling from Insurance Event Log

Supply Chain Forecasting Model Using Computational Intelligence Techniques

American International Journal of Research in Science, Technology, Engineering & Mathematics

Transcription:

Forecasting Stock Prices using a Weightless Neural Network Nontokozo Mpofu Abstract In this research work, we propose forecasting stock prices in the stock market industry in Zimbabwe using a Weightless Neural Network (WNN) We design and implement a neural network application that is used to demonstrate the application of the WNN in the forecasting of stock prices in the market The proposed network is tested with stock data obtained from the Kingdom Financial Holdings of Zimbabwe The system prototype is designed using Microsoft Visual Basic version 60 and it provides the following features: forecast of stock prices in the market using a WNN that uses a ram node, forecast of stock prices in the market using the single exponential smoothing (SES) forecasting model and a comparison of the two forecasting tools using some quantifiable technique Basing on the outcome of the comparison, we then conclude that forecasts done employing the WNN are more accurate and closer to the observed real data than those done using the single exponential smoothing model Keywords: Weightless Neural Network, Single Exponential Smoothing Introduction Traditionally, technical analysis approach that forecast stock prices based on historical prices and volume, basic concepts of trends, price patterns and oscillators is commonly used by stock investors to aid investment decisions Advanced intelligent techniques ranging from pure mathematical models and expert systems to weighted neural networks have also been used in many financial trading systems for forecasting stock prices [ 1 ] In their book, Neural Networks in Finance and Investing: Using Artificial Intelligence to Improve Real-World Performance, Revised Second Edition (with software), Robert R Trippi and Efraim Turban, have assembled a stellar collection of articles by experts in industry and academia on applications of neural networks in this important arena This widely acclaimed classic provides portfolio managers, institutional investors, bankers, and analysts with a comprehensive and fascinating introduction to this important technology and numerous insights into its most effective use Neural network 119

successes and failures are discussed, as well as the vast unrealized potential of neural networks in numerous specialized areas of financial decision-making [ 2 ] Ramon Lawrence, from the University of Manitoba, wrote an article on the application of weighted neural networks in forecasting stock market prices In his research work, he discusses common market analytics techniques and contrasts them with neural networks He also presents the efficient Market Hypothesis and contrasts it with chaos theory and neural networks[ 3 ] But he does not go on to do some experiments so as to put his theory work in practice In order to put theory work into practice, there are some researchers that have built systems using the concepts of weighted neural networks that forecasts stock prices in the market The Tradetrek TM Neuro- Predictor TM is essentially an Artificial Neural Network trained for adaptive prediction of stock prices During the prediction process, the Tradetrek TM Neuro-Predictor TM determines whether a particular stock is predictable with the accuracy required for a statistically significant prediction The Tradetrek TM Neuro-Predictor TM has managed to yield prediction refinements well beyond those of other systems by employing a pipelined recurrent ANN architecture (best for time-series prediction) and an adaptive supervised training procedure [ 4 ] Neuro XL Predictor is a neural network-forecasting tool that quickly and accurately solves forecasting and estimation problems in Microsoft Excel It is designed from the ground-up to aid experts in solving real-world forecasting problems The Neuro XL Predictor interface is easy-touse and intuitive, does not require any prior knowledge of neural networks, and is integrated seamlessly with Microsoft Excel The software brings increased precision and accuracy to a wide variety of tasks, including stock price prediction, sales forecasting, and sports score prediction [ 5 ] Brain maker v37 is another neural network software that allows the user to use their computer for business and marketing forecasting, stock, bond, commodity, and futures prediction, pattern recognition, medical diagnosis, sports handicapping and a lot more In addition, the user does not require any special programming or computer skills[ 6 ] There are other researchers as well who have done research work on the forecasting of stock prices in the market combining neural networks with other areas of science like fuzzy logic, while others have done their research extending the concepts of neural networks Yi-fan Wang, in his paper, On-Demand Forecasting of Stock Prices Using a Real-Time Predictor, presents a fuzzy stochastic prediction method for real-time predicting of stock prices This method is a complete contrast to the crisp stochastic method and it requires a fuzzy linguistic summary approach to computing parameters This approach, which is found to be better than the gray prediction method, can eliminate outliers and limit the data to a normal condition for prediction, with a comparatively very small deviation of 45 percent [ 7 ] Emulative Neural Networks are trainable 120

analytical tools that attempt to mimic information processing pattern in the brain and because they do not necessarily require assumptions about population distribution, economists, mathematicians and statisticians are increasingly using ENN s for data analysis[ 8 ] In his paper, Applying Neural Networks to Business, finance and Economics, Dr Yochanan Shachmurove, economics department in the University of Pennsylvania surveys the significance of recent work on emulative neural networks done by researchers across many disciplines in the light of issues of indeterminacy Other researchers have conducted experiments on their research work using real stock prices data and have come out with varying results Yochachnan Shachmurove and Dorota Witkowska examined the dynamic interrelations among major world stock markets through the use of artificial neural networks The data was derived from daily stock market indices of the major world stock markets Multilayer Perceptron models with logistic activation functions were better able to foresee the daily stock returns than the traditional forecasting tools in terms of lower mean squared errors They concluded that neural systems can be used as an alternative method or supplementary method for predicting financial variables and thus justified the potential use of these models by practitioners[ 9 ] Of all the work done, no one has used weightless neural networks as a tool for forecasting stock prices in the market Instead all focus has been on the use of the weighted neural networks models We then propose forecasting stock prices in the market using WNN taking also the following advantages that WNN have over the weighted neural networks In contrast to the weighted neural models, there are several one-shot learning algorithms for WNN where training takes only one epoch and there exist many iterative learning schemes for WNNs The possibility of implementing real networks in hardware is often considered to be one of the main features of WNNs This is mainly the case for neurons such as the RAM node, which can be easily implemented by using commercially available RAM components [ 10 ] Instead of adjusting the weights, learning on WNNs generally consists of changing the contents of the look-up table entries, which results in highly flexible and fast learning algorithms The high speed of learning process in WNNs is due to the existence of mutual independence between nodes when entries are changed, which contrasts with conventional weighted-sum-and- threshold neurons The flexibility comes from the high degree of functionality of individual weightless neurons Flexibility, easy parallel implementations, high-speed learning and possibility to implement real networks using commercially available RAMS are considered to be the main advantages of WNNs over their weighted counterparts [ 11 ] 121

Data and Forecasting Methods Used Stock data from the Kingdom Financial Holdings of Zimbabwe is used as our data source The data used contains the daily stock closing prices with the corresponding date and the Company Name Forecasting using the WNN We use a short-term forecast horizon and the WNN we design provides both a one point forecast and an m-point forecast of the stock price in the market (m being a variable ranging from 2 days to 90 days) We focus on the logic required to forecast stock prices in the market using the WNN according to the following constraints: We access the collected raw original closing stock prices data in multiples of x (where x is the forecast length) We have stored the raw closing stock prices data in Ms Access We then normalize the accessed stock data so that values lie between 0 and 1 Normalization of the raw stock data is done using the equation 21 below (( α ) ( β λ) ) ( y α ) + λ x / Equation 21 where x is the closing stock price α is the lowest value of the collected list of stock prices β is the upper limit λ is the lower limit y is the highest value of the collected list of stock prices We then convert decimal fraction numbers to binary fractions and store the converted binary fractions in the network as a series of n patterns (n representing the number of past months) To make a forecast, we input an incomplete pattern into the system the network checks if such a pattern existed in the past After identifying the pattern, the data lying at position m is then produced as the forecasted stock price The WNN is made up of five components These are: a component for accepting input data, a component for normalizing our data, a component for converting decimal fractions to binary fractions, a component for identifying stored patterns and a forecasting component We use a sequence diagram to explain how communication takes place inside the WNN we design This is depicted in the Fig 21 below 122

User Insert input :inputaccepter While data<= 31 :checkinput Initialise forecaster :Forecast Converted Data :Converter :Pattern Id tifi Send Requested Forecast Send pattern to be identified Identifed Pattern Fig 21: The sequence diagram Forecasting using the Single-Exponential Smoothing Model In making a forecast using the SES model, raw original closing stock prices data is accessed from Ms Access, in multiples of x where x is the forecast length, and then the collected data is then smoothed It is then subtracted from the original data to obtain the error The error of each data is then squared After that, we find the total of all the errors and then the mean squared error To make a forecast, we use the value of α that gives us the least mean squared error (α being a decimal number lying between 0 and 1) Comparing the two forecasting tools We take past original data of all the data entered, we make our forecasts using each of the forecasting tool We use real data to find the error of each of the forecasted stock price for each forecasting tool on the forecasted days, we square it up, we sum them up and finally find the mean squared error of each tool We conclude that the forecasting tool with the least mean squared error is the best tool as it deviates very small from the original data 123

Results In our work, we managed to theoretically justify the appropriateness of the weightless neural network as a tool for forecasting stock prices in the market When the two forecasting tools were compared, the weightless neural network forecasting tool proved to be better than the single exponential smoothing as it had a smaller mean squared error of 07 as compared to the mean squared error of the single exponential smoothing which was 154 Evaluation The system is a guide to the design of a real software system that can be employed in the stock market industry There are ideas, which can be put into practical use and it would be worthwhile to consider the use of such a system in industry The weightless neural network technique is one of the most powerful tools for forecasting stock prices in the market Conclusions We conclude this research work with a few recommendations to make We recommend that future work be challenged with a more generic approach and that the weightless neural network be implemented using the WISARD We also recommend that the performance of the forecasting tool be evaluated after every forecast using some statistical approach so as to tell how good the forecast is 124

Referees 1: Robert J Van Eyden The Application of Neural Networks in the Forecasting of Share Prices Finance and Technology Publishing, 1996 2: RR Trippi, Advanced Investment Technology Center, A Diviion of research Associations, La Jolla, CA 92037, USA http://wwwsigma-researchcom/bookshelf/defaulthtm 3: R Lawrence, Forecasting stock prices using neural networks, Department of Computer Science, University of Manitobo, December 1997 4: Tradetrekcom, Artificial Intelligence applied to stock Trading, 1999-2005 http://wwwtradetrekcom/education/ai/ai_stock_trading03asp 5: Jelsoft Enterprises Ltd, Neural Networks for Classification of Microsoft Excel Data, 2000-2005 http://wwwozgridcom/services/excel-neural-predicthtm 6: Carlifornia Scientific, Brain Maker Neural network software, http://wwwcalscicom/indexhtml 7: IEEE Computer Society, IEEE Transactions on Knowledge and Data Engineering, 2003 http://csdl2computerorg/persagen 8: Dr Y Shachmurove, Applying artificial neural networks to Business, Economics, and Finance, Department of economics, University of Pennsylvania 9: Y Shachmurove and D Witkowska, Utilizing Artificial Neural Network Model to Predict Stock Markets, University of Pennsylvania, technical University of Lodz, 2000 10: PA Jensen, Forecasting Theory, 2004-04-26 http://wwwmeutexasedu/~jensen/ormm/omie/operation/unit/forecast/indexhtml 11: A Schmidt, A Ram based logical neural network,2000 http://wwwtecouni-karlsruhede/~albrecht/neuro/html/node23html 125

12: Engineering Statistics Handbook, What is Exponential Smoothing, http://wwwitlnistgov/div898/handbook/pmc/section4/pmc431htm 13: LSmith, An Introduction to Neural Networks, 2001, http://wwwcsstiracuk/~lss/nnintro/invslideshtml 14: HTakaho,TArai,TOtak and MTanaka, Prediction of the next Stock Price using neural networks for Data Mining, 2002, Sophia University 15: CCBautista, Predicting the Philippine Stock Price index using artificial neural networks, September 2001 http://wwwupeduph/~cba/bautista 16: SCHui, MTYap and P Prakash, A Hybrid Time Lagged Network for predicting stock prices, School of Applied Sciences, Nanyang Technological University, Singapore 126