Forecasting the BET-C Stock Index with Artificial Neural Networks DOCTORAL SCHOOL OF FINANCE AND BANKING DOFIN ACADEMY OF ECONOMIC STUDIES MSc Student:

Slides:



Advertisements
Similar presentations
Artificial Neural Networks
Advertisements

A Brief Overview of Neural Networks By Rohit Dua, Samuel A. Mulder, Steve E. Watkins, and Donald C. Wunsch.
NEURAL NETWORKS Backpropagation Algorithm
1 Machine Learning: Lecture 4 Artificial Neural Networks (Based on Chapter 4 of Mitchell T.., Machine Learning, 1997)
1 Neural networks. Neural networks are made up of many artificial neurons. Each input into the neuron has its own weight associated with it illustrated.
Machine Learning Neural Networks
1 Introduction to Bio-Inspired Models During the last three decades, several efficient machine learning tools have been inspired in biology and nature:
Artificial Neural Networks ECE 398BD Instructor: Shobha Vasudevan.
Data Mining Techniques Outline
1 Chapter 11 Neural Networks. 2 Chapter 11 Contents (1) l Biological Neurons l Artificial Neurons l Perceptrons l Multilayer Neural Networks l Backpropagation.
Introduction to Neural Network Justin Jansen December 9 th 2002.
Lecture 4 Neural Networks ICS 273A UC Irvine Instructor: Max Welling Read chapter 4.
Mr. Perminous KAHOME, University of Nairobi, Nairobi, Kenya. Dr. Elisha T.O. OPIYO, SCI, University of Nairobi, Nairobi, Kenya. Prof. William OKELLO-ODONGO,
Artificial Neural Networks
ICS 273A UC Irvine Instructor: Max Welling Neural Networks.
November 21, 2012Introduction to Artificial Intelligence Lecture 16: Neural Network Paradigms III 1 Learning in the BPN Gradients of two-dimensional functions:
Forecasting Financial Time Series using Neural Networks, Genetic Programming and AutoRegressive Models.
NEURAL NETWORKS FOR TECHNICAL ANALYSIS: A STUDY ON KLCI 授課教師:楊婉秀 報告人:李宗霖.
CHAPTER 12 ADVANCED INTELLIGENT SYSTEMS © 2005 Prentice Hall, Decision Support Systems and Intelligent Systems, 7th Edition, Turban, Aronson, and Liang.
Artificial Neural Networks
Predicting volatility: a comparative analysis between GARCH Models and Neural Network Models MCs Student: Miruna State Supervisor: Professor Moisa Altar.
Integrating Neural Network and Genetic Algorithm to Solve Function Approximation Combined with Optimization Problem Term presentation for CSC7333 Machine.
C. Benatti, 3/15/2012, Slide 1 GA/ICA Workshop Carla Benatti 3/15/2012.
Using Neural Networks in Database Mining Tino Jimenez CS157B MW 9-10:15 February 19, 2009.
Artificial Neural Nets and AI Connectionism Sub symbolic reasoning.
1 Artificial Neural Networks Sanun Srisuk EECP0720 Expert Systems – Artificial Neural Networks.
Introduction to Neural Networks Debrup Chakraborty Pattern Recognition and Machine Learning 2006.
Machine Learning Chapter 4. Artificial Neural Networks
11 CSE 4705 Artificial Intelligence Jinbo Bi Department of Computer Science & Engineering
NEURAL NETWORKS FOR DATA MINING
Chapter 7 Neural Networks in Data Mining Automatic Model Building (Machine Learning) Artificial Intelligence.
FIN 352 – Professor Dow.  Fama: Test the efficient market hypothesis using different information sets.  Three categories:  Weak  Semi-Strong  Strong.
1 Chapter 11 Neural Networks. 2 Chapter 11 Contents (1) l Biological Neurons l Artificial Neurons l Perceptrons l Multilayer Neural Networks l Backpropagation.
Artificial Neural Networks An Introduction. What is a Neural Network? A human Brain A porpoise brain The brain in a living creature A computer program.
1 Introduction to Neural Networks And Their Applications.
Neural Networks II By Jinhwa Kim. 2 Neural Computing is a problem solving methodology that attempts to mimic how human brain function Artificial Neural.
Non-Bayes classifiers. Linear discriminants, neural networks.
© 2005 Prentice Hall, Decision Support Systems and Intelligent Systems, 7th Edition, Turban, Aronson, and Liang 12-1 Chapter 12 Advanced Intelligent Systems.
Estimating and Predicting Stock Returns Using Artificial Neural Networks Dissertation Paper BUCHAREST ACADEMY OF ECONOMIC STUDIES DOCTORAL SCHOOL OF FINANCE.
EE459 Neural Networks Backpropagation
 Based on observed functioning of human brain.  (Artificial Neural Networks (ANN)  Our view of neural networks is very simplistic.  We view a neural.
Prediction of the Foreign Exchange Market Using Classifying Neural Network Doug Moll Chad Zeman.
Dissertation paper Modelling and Forecasting Volatility Index based on the stochastic volatility models MSc Student: LAVINIA-ROXANA DAVID Supervisor: Professor.
CSC321 Introduction to Neural Networks and Machine Learning Lecture 3: Learning in multi-layer networks Geoffrey Hinton.
Back-Propagation Algorithm AN INTRODUCTION TO LEARNING INTERNAL REPRESENTATIONS BY ERROR PROPAGATION Presented by: Kunal Parmar UHID:
Neural Networks Presented by M. Abbasi Course lecturer: Dr.Tohidkhah.
Soft Computing methods for High frequency tradin.
Image Source: ww.physiol.ucl.ac.uk/fedwards/ ca1%20neuron.jpg
Neural Networks Vladimir Pleskonjić 3188/ /20 Vladimir Pleskonjić General Feedforward neural networks Inputs are numeric features Outputs are in.
Each neuron has a threshold value Each neuron has weighted inputs from other neurons The input signals form a weighted sum If the activation level exceeds.
Perceptrons Michael J. Watts
Artificial Intelligence CIS 342 The College of Saint Rose David Goldschmidt, Ph.D.
Chapter 6 Neural Network.
LOAD FORECASTING. - ELECTRICAL LOAD FORECASTING IS THE ESTIMATION FOR FUTURE LOAD BY AN INDUSTRY OR UTILITY COMPANY - IT HAS MANY APPLICATIONS INCLUDING.
Kim HS Introduction considering that the amount of MRI data to analyze in present-day clinical trials is often on the order of hundreds or.
Feasibility of Using Machine Learning Algorithms to Determine Future Price Points of Stocks By: Alexander Dumont.
Machine Learning Artificial Neural Networks MPλ ∀ Stergiou Theodoros 1.
An Evolutionary Algorithm for Neural Network Learning using Direct Encoding Paul Batchis Department of Computer Science Rutgers University.
A Document-Level Sentiment Analysis Approach Using Artificial Neural Network and Sentiment Lexicons Yan Zhu.
Business Intelligence and Decision Support Systems (9 th Ed., Prentice Hall) Chapter 6: Artificial Neural Networks for Data Mining.
Prepared by Fayes Salma.  Introduction: Financial Tasks  Data Mining process  Methods in Financial Data mining o Neural Network o Decision Tree  Trading.
Machine Learning Supervised Learning Classification and Regression
Artificial Neural Networks
Machine Learning Today: Reading: Maria Florina Balcan
CSC 578 Neural Networks and Deep Learning
Chapter 12 Advanced Intelligent Systems
Artificial Intelligence Methods
Neural Networks Geoff Hulten.
Prediction Networks Prediction A simple example (section 3.7.3)
Outline Announcement Neural networks Perceptrons - continued
Presentation transcript:

Forecasting the BET-C Stock Index with Artificial Neural Networks DOCTORAL SCHOOL OF FINANCE AND BANKING DOFIN ACADEMY OF ECONOMIC STUDIES MSc Student: Stoica Ioan-Andrei Supervisor: Professor Moisa Altar July 2006

Stock Markets and Prediction Predicting stock prices - goal of every investor trying to achieve profit on the stock market Predicting stock prices - goal of every investor trying to achieve profit on the stock market predictability of the market - issue that has been discussed by a lot of researchers and academics predictability of the market - issue that has been discussed by a lot of researchers and academics Efficient Market Hypothesis - Eugene Fama Efficient Market Hypothesis - Eugene Fama three forms: three forms: Weak: future stock prices can’t be predicted using past stock prices Weak: future stock prices can’t be predicted using past stock prices Semi-strong: even published information can’t be used to predict future prices Semi-strong: even published information can’t be used to predict future prices Strong: market can’t be predicted no matter what information is available Strong: market can’t be predicted no matter what information is available

Stock Markets and Prediction Technical Analysis Technical Analysis ‘castles-in-the air’ ‘castles-in-the air’ investors behavior and reactions according to these anticipations investors behavior and reactions according to these anticipations Fundamental Analysis Fundamental Analysis ‘firm foundations’ ‘firm foundations’ stocks have an intrinsic value determined by present conditions and future prospects of the company stocks have an intrinsic value determined by present conditions and future prospects of the company Traditional Time Series Analysis Traditional Time Series Analysis uses historic data attempting to approximate future values of a time series as a linear combination uses historic data attempting to approximate future values of a time series as a linear combination Machine Learning - Artificial Neural Networks Machine Learning - Artificial Neural Networks

The Artificial Neural Network computational technique that benefits from techniques similar to those employed in the human brain computational technique that benefits from techniques similar to those employed in the human brain W.S. McCulloch and W. Pitts attempted to mimic the ability of the human brain to process data and information and comprehend patterns and dependencies W.S. McCulloch and W. Pitts attempted to mimic the ability of the human brain to process data and information and comprehend patterns and dependencies The human brain - a complex, nonlinear and parallel computer The human brain - a complex, nonlinear and parallel computer The neurons: The neurons: elementary information processing units elementary information processing units building blocks of a neural network building blocks of a neural network

The Artificial Neural Network semi-parametric approximation method semi-parametric approximation method Advantages: Advantages: ability to detect nonlinear dependencies ability to detect nonlinear dependencies parsimonious compared to polynomial expansions parsimonious compared to polynomial expansions generalization ability and robustness generalization ability and robustness no assumptions of the model have to be made no assumptions of the model have to be made flexibility flexibility Disadvantages: Disadvantages: has the ‘black box’ property has the ‘black box’ property training requires an experienced user training requires an experienced user training takes a lot of time, fast computer needed training takes a lot of time, fast computer needed overtraining  overfitting overtraining  overfitting undertraining  underfitting undertraining  underfitting

The Artificial Neural Network

Overtraining/Overfitting

Undertraining/Underfitting

Architecture of the Neural Network Types of layers: Types of layers: input layer: number of neurons = number of inputs input layer: number of neurons = number of inputs output layer: number of neurons = number of outputs output layer: number of neurons = number of outputs hidden layer(s): number of neurons = trial and error hidden layer(s): number of neurons = trial and error Connections between neurons: Connections between neurons: fully connected fully connected partially connected partially connected The activation function: The activation function: threshold function threshold function piecewise linear function piecewise linear function sigmoid functions sigmoid functions

The feed forward network m = number of hidden layer neurons n = number of inputs

The Feed forward Network with Jump Connections

The Recurrent Neural Network - Elman allows the neurons to depend on their own lagged values  building ‘memory’ in their evolution

Training the Neural Network Objective: minimizing the discrepancy between real data and the output of the network Ω - the set of parameters Ψ – loss function Ψ nonlinear  nonlinear optimization problem - backpropagation - genetic algorithm

The Backpropagation Algorithm alternative to quasi-Newton gradient descent alternative to quasi-Newton gradient descent Ω 0 – randomly generated Ω 0 – randomly generated ρ – learning parameter, in [.05,.5] ρ – learning parameter, in [.05,.5] after n iterations: μ=0.9, momentum parameter after n iterations: μ=0.9, momentum parameter problem: local minimum points problem: local minimum points

The Genetic Algorithm based on Darwinian laws based on Darwinian laws Population Creation: N random vectors of weights Population Creation: N random vectors of weights Selection  (Ωi Ωj) parent vectors Selection  (Ωi Ωj) parent vectors Crossover & Mutation  C1,C2 children vectors Crossover & Mutation  C1,C2 children vectors Election Tournament: the fittest 2 vectors passed to the next generation Election Tournament: the fittest 2 vectors passed to the next generation Convergence: G* generations Convergence: G* generations G* - large enough so there are no significant changes in the fitness of the best individual for several generations G* - large enough so there are no significant changes in the fitness of the best individual for several generations

Experiments and Results BET-C stock index – daily closing prices, 16 April 1998 until 18 May 2006 BET-C stock index – daily closing prices, 16 April 1998 until 18 May 2006 daily returns: daily returns: conditional volatility - rolling 20-day standard deviation: conditional volatility - rolling 20-day standard deviation: BDS-Test for nonlinear dependencies: BDS-Test for nonlinear dependencies: H 0 : i.i.d. data H 0 : i.i.d. data BDS m,ε ~N(0,1) BDS m,ε ~N(0,1) Data Seriesm=2m=3m=4 ε=1ε=1.5ε=1ε=1.5ε=1ε=1.5 OD ARF

Experiments and Results 3 types of Ann's: 3 types of Ann's: feed-forward network feed-forward network feed-forward network with jump connections feed-forward network with jump connections recurrent network recurrent network Input: [Rt-1 Rt-2 Rt-3 Rt-4 Rt-5] & Vt Input: [Rt-1 Rt-2 Rt-3 Rt-4 Rt-5] & Vt Output: next-day-return Rt Output: next-day-return Rt Training: genetic algorithm & backpropagation Training: genetic algorithm & backpropagation Data divided in: Data divided in: training set – 90% training set – 90% test set – 10% test set – 10% one-day-ahead forecasts - static forecasting one-day-ahead forecasts - static forecasting Network: Network: trained 100 times trained 100 times best 10 – SSE best 10 – SSE best 1 - RMSE best 1 - RMSE

Experiments and Results In-sample Criteria In-sample Criteria Out-of-sample Criteria Out-of-sample Criteria Pesaran-Timmerman Test for Directional Accuracy: Pesaran-Timmerman Test for Directional Accuracy: H 0 : signs of the forecast and those of the real data are independent H 0 : signs of the forecast and those of the real data are independent DA~N(0,1) DA~N(0,1) Evaluation Criteria

Experiments and Results ROI - trading strategy based on the sign forecasts: ROI - trading strategy based on the sign forecasts: + buy sign + buy sign - sell sign - sell sign Finite differences: Finite differences: Benchmarks Naïve model: R t+1 =R t Naïve model: R t+1 =R t buy-and-hold strategy buy-and-hold strategy AR(1) model – LS – overfitting: AR(1) model – LS – overfitting: RMSE RMSE MAE MAE

Experiments and Results NaïveAR(1)FFN – no volFFNFFN-jumpRN R2R SSE RMSE MAE HR55.77% (111)56.78% (113)57.79% (115)59.79% (119) ROI RP15.02%14.47%18.02%19.92%18.77%23.34% PT-Test B&H FFNFFN-jumpRN Volatility

Experiments and Results Actual, fitted ( training sample)

Experiments and Results Actual, fitted ( test sample)

Conclusions RMSE and MAE < AR(1)  no signs of overfitting RMSE and MAE < AR(1)  no signs of overfitting R 2 < 0.1  forecasting magnitude is a failure R 2 < 0.1  forecasting magnitude is a failure sign forecasting ~60%  success sign forecasting ~60%  success Volatility: Volatility: improves sign forecast improves sign forecast finite differences  negative correlation finite differences  negative correlation perceived as measure of risk perceived as measure of risk trading strategy: outperforms naïve model and buy-and-hold trading strategy: outperforms naïve model and buy-and-hold quality of the sign forecast – confirmed by Pesaran-Timmerman test quality of the sign forecast – confirmed by Pesaran-Timmerman test

Further development Volatility: other estimates Volatility: other estimates neural classificator: specialized in sign forecasting neural classificator: specialized in sign forecasting using data outside the Bucharest Stock Exchange: using data outside the Bucharest Stock Exchange: T-Bond yields T-Bond yields exchange rates exchange rates indexes from foreign capital markets indexes from foreign capital markets