AkinwaJe, A.T., IbharaJu, F.T. and Arogundade, 0.1'. Department of Computer Sciences University of Agriculture, Abeokuta, Nigeria

Similar documents
Radar emitter recognition method based on AdaBoost and decision tree Tang Xiaojing1, a, Chen Weigao1 and Zhu Weigang1 1

CHAPTER 5 A NEAR-LOSSLESS RUN-LENGTH CODER

A New Space-Repetition Code Based on One Bit Feedback Compared to Alamouti Space-Time Code

SHORT-TERM TRAVEL TIME PREDICTION USING A NEURAL NETWORK

Design of FPGA Based SPWM Single Phase Inverter

Design of FPGA- Based SPWM Single Phase Full-Bridge Inverter

PROJECT #2 GENERIC ROBOT SIMULATOR

Data Acquisition System for Electric Vehicle s Driving Motor Test Bench Based on VC++ *

Optimal Arrangement of Buoys Observable by Means of Radar

A New Design of Log-Periodic Dipole Array (LPDA) Antenna

Approximate Loading Margin Methods Using Artificial Neural Networks in Power Systems

A New Energy Efficient Data Gathering Approach in Wireless Sensor Networks

A SELECTIVE POINTER FORWARDING STRATEGY FOR LOCATION TRACKING IN PERSONAL COMMUNICATION SYSTEMS

Application of Improved Genetic Algorithm to Two-side Assembly Line Balancing

NN-PID Based Control of MIMO Systems

Super J-MOS Low Power Loss Superjunction MOSFETs

Financial Time Series Forecasting Using Hybrid Wavelet-Neural Model

OPTIMIZATION OF RNS FIR FILTERS FOR 6-INPUTS LUT BASED FPGAS

High Speed Area Efficient Modulo 2 1

Combined Scheme for Fast PN Code Acquisition

A New Basic Unit for Cascaded Multilevel Inverters with the Capability of Reducing the Number of Switches

Application of Self-Organizing Map for analyzing robotic arm s action with Consciousness-Based Architecture module

The Firing Dispersion of Bullet Test Sample Analysis

Experimental Noise Analysis of Reed Switch Sensor Signal under Environmental Vibration

Delta- Sigma Modulator with Signal Dependant Feedback Gain

Outline. Motivation. Analog Functional Testing in Mixed-Signal Systems. Motivation and Background. Built-In Self-Test Architecture

A study on the efficient compression algorithm of the voice/data integrated multiplexer

Technical Explanation for Counters

Color gamut of SOCS and its comparison to Pointer's gamut

PHY-MAC dialogue with Multi-Packet Reception

WAVE-BASED TRANSIENT ANALYSIS USING BLOCK NEWTON-JACOBI

Tehrani N Journal of Scientific and Engineering Research, 2018, 5(7):1-7

Logarithms APPENDIX IV. 265 Appendix

APPLICATION NOTE UNDERSTANDING EFFECTIVE BITS

International Power, Electronics and Materials Engineering Conference (IPEMEC 2015)

DIGITALLY TUNED SINUSOIDAL OSCILLATOR USING MULTIPLE- OUTPUT CURRENT OPERATIONAL AMPLIFIER FOR APPLICATIONS IN HIGH STABLE ACOUSTICAL GENERATORS

Towards Acceleration of Deep Convolutional Neural Networks using Stochastic Computing

A Novel Three Value Logic for Computing Purposes

Fingerprint Classification Based on Directional Image Constructed Using Wavelet Transform Domains

MADE FOR EXTRA ORDINARY EMBROIDERY DESIGNS

Problem of calculating time delay between pulse arrivals

Intelligent IMC-PID Control Using PSO for Ultrasonic Motor

High-Order CCII-Based Mixed-Mode Universal Filter

Procedia - Social and Behavioral Sciences 128 ( 2014 ) EPC-TKS 2013

Reducing Power Dissipation in Complex Digital Filters by using the Quadratic Residue Number System Λ

Predicting Stock Price Changes of Tehran Artmis Company Using Radial Basis Function Neural Networks

EMU-Synchronization Enhanced Mobile Underwater Networks for Assisting Time Synchronization Scheme in Sensors

On Parity based Divide and Conquer Recursive Functions

WSN Node Localization Regularization Algorithm Based on Quasi Optimal Criterion Parameter Selection

A SIMPLE METHOD OF GOAL DIRECTED LOSSY SYNTHESIS AND NETWORK OPTIMIZATION

Using Color Histograms to Recognize People in Real Time Visual Surveillance

A study on traffic accident measures in municipal roads by using GIS

x y z HD(x, y) + HD(y, z) HD(x, z)

CP 405/EC 422 MODEL TEST PAPER - 1 PULSE & DIGITAL CIRCUITS. Time: Three Hours Maximum Marks: 100

(2) The MOSFET. Review of. Learning Outcome. (Metal-Oxide-Semiconductor Field Effect Transistor) 2.0) Field Effect Transistor (FET)

Ch 9 Sequences, Series, and Probability

COMPRESSION OF TRANSMULTIPLEXED ACOUSTIC SIGNALS

LETTER A Novel Adaptive Channel Estimation Scheme for DS-CDMA

A SIMPLE METHOD OF GOAL DIRECTED LOSSY SYNTHESIS AND NETWORK OPTIMIZATION

An Adaptive Image Denoising Method based on Thresholding

Sensors & Transducers 2015 by IFSA Publishing, S. L.

AC : USING ELLIPTIC INTEGRALS AND FUNCTIONS TO STUDY LARGE-AMPLITUDE OSCILLATIONS OF A PENDULUM

Analysis of SDR GNSS Using MATLAB

GENERATE AND MEASURE STANDING SOUND WAVES IN KUNDT S TUBE.

AME50461 SERIES EMI FILTER HYBRID-HIGH RELIABILITY

The Institute of Chartered Accountants of Sri Lanka

The Detection of Abrupt Changes in Fatigue Data by Using Cumulative Sum (CUSUM) Method

MEASUREMENT AND CONTORL OF TOTAL HARMONIC DISTORTION IN FREQUENCY RANGE 0,02-10KHZ.

A New Method for Traffic Prediction in Emerging Mobile Networks

E X P E R I M E N T 13

Laboratory Exercise 3: Dynamic System Response Laboratory Handout AME 250: Fundamentals of Measurements and Data Analysis

Fault Diagnosis in Rolling Element Bearing Using Filtered Vibration and Acoustic Signal

Comparison of Frequency Offset Estimation Methods for OFDM Burst Transmission in the Selective Fading Channels

PRACTICAL FILTER DESIGN & IMPLEMENTATION LAB

Indoor Localization by Pattern Matching Method Based On Extended Database

Three-Level Inverter Performance Using Adaptive Neuro- Fuzzy Based Space Vector Modulation

Unit 5: Estimating with Confidence

Summary of Random Variable Concepts April 19, 2000

Chapter 1 The Design of Passive Intermodulation Test System Applied in LTE 2600

Test Time Minimization for Hybrid BIST with Test Pattern Broadcasting

General Model :Algorithms in the Real World. Applications. Block Codes

Symmetric implicit multiderivative numerical integrators for direct solution of fifth-order differential equations

Density Slicing Reference Manual

Compound Controller for DC Motor Servo System Based on Inner-Loop Extended State Observer

A Novel Small Signal Power Line Quality Measurement System

HDL LIBRARY OF PROCESSING UNITS FOR GENERIC AND DVB-S2 LDPC DECODING

信號與系統 Signals and Systems

TO DETERMINE THE NUMERICAL APERTURE OF A GIVEN OPTICAL FIBER. 2. Sunil Kumar 3. Varun Sharma 4. Jaswinder Singh

AME28461 SERIES EMI FILTER HYBRID-HIGH RELIABILITY

Lossless image compression Using Hashing (using collision resolution) Amritpal Singh 1 and Rachna rajpoot 2

Subcarriers and Bits Allocation in Multiuser Orthogonal Frequency Division Multiplexing System

ELEC 204 Digital Systems Design

Advanced Telemetry Tracking System for High Dynamic Targets

A PLANE WAVE MONTE CARLO SIMULATION METHOD FOR REVERBERATION CHAMBERS

Cross-Layer Performance of a Distributed Real-Time MAC Protocol Supporting Variable Bit Rate Multiclass Services in WPANs

AN ESTIMATION OF MULTILEVEL INVERTER FED INDUCTION MOTOR DRIVE

Delta- Sigma Modulator based Discrete Data Multiplier with Digital Output

FPGA Implementation of the Ternary Pulse Compression Sequences

Article Modified Adversarial Hierarchical Task Network Planning in Real-Time Strategy Games

INCREASE OF STRAIN GAGE OUTPUT VOLTAGE SIGNALS ACCURACY USING VIRTUAL INSTRUMENT WITH HARMONIC EXCITATION

Transcription:

COMPARATIVE ANALYSIS OF ARTIFICIAL NEURAL NETWORK'S BACK PROPAGATION ALGORITHM TO STATISTICAL LEAST SQURE METHOD IN SECURITY PREDICTION USING NIGERIAN STOCK EXCHANGE MARKET AkiwaJe, A.T., IbharaJu, F.T. ad Arogudade, 0.1'. Departmet of Computer Scieces Uiversity of Agriculture, Abeokuta, Nigeria Abstract Statistical aalysis has ofte bee used i predictig fiacial operatios i Nigeria ecoomy. I this work. artificial eural etwork was used to predict movemets i stock prices i Nigeria Stock Exchage market. Studies were carried out for the predictio of stock idex values as well as daily directio of chages i the idex. A etwork was desiged usig Back Propagatio Algorithm (BPA) to predict stock idex values ad prices i the exchage for a period of 90 days. The data collected durig this period was processed usig the BPA algorithm to get a output such that the error betwee the actual idices ad prices, ad the computed output was brought to miimum. About 90% of the data was used for the actual traiig while the remaiig 10% was used as test data. The same data was also processed usig the Least Squares (LS) method. The results show that BPA algorithm has superior performaces i terms of the accuracy of predictio over the LS method. ihis result of the study is useful to stock market operators. Itroductio The paper focuses o predictig the value of stock shares traded i the Nigeria Stock Exchage usig Back Propagatio Algorithm (BPA) of Artificial Neural Network (ANN). I Nigeria, evaluatio, estimatio ad predictio are ofte doe usig statistical packages such as SAS, SPSS, GENST AT, MATLab, etc. Most of these packages are based o covetioal algorithms such as the least square method, movig average. time series. curvig fittig, etc. The performaces of these algorithms are ot robust eough whe the data set becomes very large. For a example, whe the movig average algorithm i time series was implemeted usig a programmig laguage with a set of data ad, outputs were geerated ad compared to the outputs obtaied from GENSTA T usig the same data, the two results were ot the same whe the data set becomes very large. Also, the begiig ad ed of the time series data are lost i movig averages. Movig averages i statistical methods ca geerate cycle that is ot preset i the iput data. Algorithm that implemeted the multivariate least square method i statistical packages is ot efficiet whe the dataset becomes very large (Vacoillie A). To overcome this somewhat, BPA algorithm has o'\v bee widely proposed by the research commuity to predict large set of data. The idea of usig BPA algorithm to predict large data set has assisted i derivig precise result from imprecise data. Neural Networks are self traiig systems that imitate the work of huma brai. It ca be defied as etirely ew paradigm i computig that are based o replicatig the fuctio ad the structure of huma brai. It is composed of a large umber bf highly itercoected processig elemets (euros) workig i uiso to solve specific problems. Data model The iput parameters that affect the stock market idex value are as follows: previous day stock idex value accordig to closig price quatity of stock idex values daily chages i idex values correspodig values of stock share idex value traded i Naira.

The umber of compaies used for the study was 35. The first 30 compaies' stock data collected were used for traiig while the last 5 compaies' data were used for testig after traiig. Experimetal data were gathered directly from Nigeria Stock Exchage website (www.igeriastockexchage.com) for a period of 90 days. For the data model, back propagatio euro model ad least square method were applied. Statistical methods ad artificial eural etwork The usual statistical methods for estimatio, evaluatio ad predictig are least square, move averages i time series, liear regressio, etc. We used Least Square algorithm as our statistical method, ad employed Back Propagatio Algorithm as the Artificial Neural etwork model. Back propagatio algorithm was employed due to its multi-layer perceptio structures. Least square method The least squares regressio of y o x is Y = 0 0 + OjX where 0 0 ad 0 1 are obtaied from the ormal equatios: L.Yi = 0o+OIL.Xi i~l ;~l L. XYi = 0 0 L. Xi + OJL. X 2 j i~1 ;~l i~l '\ L.XYj - i~l tt x2 ttx ; - t x, t~ ()2 ; Similarly, the least square lie of x o y is.give by x = b o + b1y This equatio is writte as '.'~ '"I''' 1 :.. :"~~opagatio (learig algorithm) 'The~le~rig algorithm of a eural etwork ca either be supervised or usupervised. A eural etwork is said to be.lc;~;'l~g supervised if the desire output is already kow. Durig the learig of supervised method, oe of the ipuf patters is applied to the etwork iput layer. The patter is propagated through the etwork to the etwork outp!!t layer. The output layer geerates a output patter which is the compared to the target patter. Depedig o the differece betwee output ad target, a error value is outputted. This outputted error idicates the

etwork's learig effort which ca be cotrolled by the imagiary supervisor. The greater the computed error value is, the more the weight will be chaged. Neural etworks that lear usupervised have o such target output value. It caot be determied what the result of the learig process will look like. Durig the learig process, the uits' weight values are arraged iside a certai rage, depedig o give iput values. The paper used supervised lealig to predict Nigeria stock exchage market idices because of its ability to use biary umber ad XOR operatio. It also employs geeralized delta rule for supervised traiig. The model receives a iput patter vector from the eviromet through its iput layer ad distributes it uchageable to the first hidde layer of euros. Ulike euros i the iput layer, those of the hidde ad output layers are o-liear uits. They receive weighted sum of output from the previous layer as iput. The etwork iput for euro j deoted by etwork j is defie as: where OJ is the threshold or bias for euro j (it is a costat uit ad always set to either 0 or I. 0; is the output of euro i coected to euro j through the itercoectio weight W ij Figure I illustrates the simple structure of Attificial Neural Network. owoo [ order to produce cosistetly correct result or output, etwork weights have to be traied. Back propagatio learig algorithm is illustrated as follows: 1. radomize all etwork weight to small umber e.g. -1 :::;0:::; 1. 2. apply a iput traiig vector X ad calculate the ANN_NET sigalfrom each euro usig the stadard formula: ANN_NE~ = LXjW jj i=1 OUT= {l, if ANN _ NE~ is greater tha threshold (j J 0, otherwise error j = target j - OUT

Implemetatio of back propagatio algorithm Back propagatio algorithm as described above was implemeted i Java Programmig Laguage. The data was read i sequetially i the order i which they were collected ad the maximum ad miimum of each attribute obtaied, followed by ormalizatio. The programme was writte i such a way that the hidde ode was icreased gradually i other to attai proper covergece. The sigmoid of all iputs to the hidde layers with the bias value multiplied by the radomly geerated weight for each uit was computed. To compute the output layer. the summatio of the sigmoid from hidde layer was also computed. The update of the iput layer with two iput odes was also computed. This ivolves the product of the learig rate ad error of output. After iteratio, the correspodig calculated output was closed to the actual output from the data set. 2y2 -ooly; -OILX;Y; The Least Square Method S~.x = ;=1 ;=1 ;=1 was also implemeted usig java programmig laguage ad the same set of data was applied as iput. takig the same precautios as i the case of the BPA algorithm. Compariso of back propagatio algorithm to the least square method The back propagatio performaces are compared to the performaces of the least square method. Table I shows the two models with average relative percetage errors that were derived from the set of Nigeria stock idex values that served as iput data to the both least square ad back propagatio algorithms. Model Back propagatio with oe hidde layer Back propagatio with two hidde layer Back propagatio with three hidde layer Least square method with 30 compaies Least square method with 35 compaies Average relative percetage'error (%) 1.430 1.486 1.512 2.43 3.15 As show i Table 1, the relative percetage error of back propagatio with oe, two ad three layer is still lower tha the Least Square Method, although the efficiecy of Back Propagatio Algorithm varied with the umber of hidde layers. For example, back propagatio with oe hidde layer had the highest accuracy ( 1.43). Lookig at the table agai, the average relative percetage errors calculated betwee back propagatio ad least square model showed that back propagatio model was superior to the least square method. The predictio models of back propagatio were more robust tha the least square method.,more so, usig oe hidde layer durig the processig performs better tha usig two or more layers. This also reduces the time complexity of the algorithm. Coclusio The work is ot sayig that statistical formulas are ot robust eough to predict or evaluate the data or whe the data become large. Most of the statistical packages use cov~tioal algorithms which require approximatio for better performaces. The work employed back propagatio of ANN because it is used to trai data for predictio while statistical methods calculate data for predictio, estimatio or evaluatio. From the results of the two methods (Least Square ad Back Propagatio Algorithm), it is better to use artificial eural etwork to predict a

large set of data. For example, the average relative percetage errors of back propagatio are always lower tha the average relative percetage of least square method. This idicates the efficiecy of the back propagatio algorithm over least square method. It ca be cocluded that back propagatio as oe of the Artificial Neural Networks is a better architecture to evaluate, estimate ad predict a set of large data tha ay statistical methods such as least square method. Refereces Bishop CM. 1995. Neural Networksfor Patter Recogitio, Oxford Uiversity Press, Oxford. Surada J.M. 1992. Itroductioll to Artificial Neural Systems, West Publishig Co, St Paul, MN. Vacoillie A. 2003. Desig ad applicatio of artificial eural etwork for digital image classificatio of tropical savaah vegetatio, PhD thesis, Ghat Uiversity. Phua P.K.H. Mirig D, Li W. 2000. Neural Network with Geetic Algorithms for Stocks Predictio, Fifth coferece of the Associatio of Asia-Pacific Operatios Research Societies, 5th-7th July, Sigapore. Mizuo H, Kosaka M, Yajima Had Komoda N. 1998. Applicatio of Neural Network to Techical Aalysis or Stock Market Predictio, Studies i Iformatics ad Cotrol, Vol. 7. No.3, pp. 111-120. Murray R.S. 2000. Problems ~fstatistics. 3rd Edit~o, Chapma ad Hall, New York. Park D.C, Elsharkaw M.A. Marks RJ. Atlasm L.E ad Damborg J. 1991. Electric load forecastig usig Artificial Neural Network, IEEE Tras, PAS. Vol. 6. Lee K.Y., Clay Y.T., Park T.H. 1992. Short Term :Ioad forecastig usig Artificial Neural Network. IEEE TrailS. PAS, ~l.~.