TIME SERIES FORECASTING USING NEURAL NETWORKS



Similar documents
Neural Network Based Forecasting of Foreign Currency Exchange Rates

Computational Neural Network for Global Stock Indexes Prediction

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

Predictive time series analysis of stock prices using neural network classifier

Anupam Tarsauliya Shoureya Kant Rahul Kala Researcher Researcher Researcher IIITM IIITM IIITM Gwalior Gwalior Gwalior

A Prediction Model for Taiwan Tourism Industry Stock Index

Supply Chain Forecasting Model Using Computational Intelligence Techniques

Java Modules for Time Series Analysis

Dyna ISSN: Universidad Nacional de Colombia Colombia

Prediction Model for Crude Oil Price Using Artificial Neural Networks

Forecasting of Indian Rupee (INR) / US Dollar (USD) Currency Exchange Rate Using Artificial Neural Network

Performance Evaluation On Human Resource Management Of China S Commercial Banks Based On Improved Bp Neural Networks

STOCK PREDICTION SYSTEM USING ANN

Real Stock Trading Using Soft Computing Models

Sales Forecast for Pickup Truck Parts:

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

Forecasting Of Indian Stock Market Index Using Artificial Neural Network

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

Guidelines for Financial Forecasting with Neural Networks

A Wavelet Based Prediction Method for Time Series

Combining Artificial Intelligence with Non-linear Data Processing Techniques for Forecasting Exchange Rate Time Series

ARTIFICIAL INTELLIGENCE METHODS IN STOCK INDEX PREDICTION WITH THE USE OF NEWSPAPER ARTICLES

Neural Network Applications in Stock Market Predictions - A Methodology Analysis

Adaptive Demand-Forecasting Approach based on Principal Components Time-series an application of data-mining technique to detection of market movement

ACCURACY DRIVEN ARTIFICIAL NEURAL NETWORKS IN STOCK MARKET PREDICTION

Review on Financial Forecasting using Neural Network and Data Mining Technique

Lecture 6. Artificial Neural Networks

HYBRID PROBABILITY BASED ENSEMBLES FOR BANKRUPTCY PREDICTION

Machine Learning in FX Carry Basket Prediction

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

Artificial Intelligence Neural Networks Applications in Forecasting Financial Markets and Stock Prices

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

Studying Achievement

NEURAL NETWORKS IN DATA MINING

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

Knowledge Based Descriptive Neural Networks

Neural Computation - Assignment

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

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

DATA MINING IN FINANCE

Review on Financial Forecasting using Neural Network and Data Mining Technique

Optimization of technical trading strategies and the profitability in security markets

COMPARISON OF OBJECT BASED AND PIXEL BASED CLASSIFICATION OF HIGH RESOLUTION SATELLITE IMAGES USING ARTIFICIAL NEURAL NETWORKS

Quantitative Analysis of Foreign Exchange Rates

Data Mining mit der JMSL Numerical Library for Java Applications

Event driven trading new studies on innovative way. of trading in Forex market. Michał Osmoła INIME live 23 February 2016

Forecasting methods applied to engineering management

Stock Market Prediction Model by Combining Numeric and News Textual Mining

Data quality in Accounting Information Systems

A neural network model to forecast Japanese demand for travel to Hong Kong

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

Time Series Data Mining in Rainfall Forecasting Using Artificial Neural Network

Recurrent Neural Networks

CHAPTER 5 PREDICTIVE MODELING STUDIES TO DETERMINE THE CONVEYING VELOCITY OF PARTS ON VIBRATORY FEEDER

A New Approach to Neural Network based Stock Trading Strategy

DEMAND FORECASTING USING NEURAL NETWORK FOR SUPPLY CHAIN MANAGEMENT

Use of Artificial Neural Network in Data Mining For Weather Forecasting

International Journal of Software and Web Sciences (IJSWS)

Stock Prediction using Artificial Neural Networks

Predict Influencers in the Social Network

A FUZZY LOGIC APPROACH FOR SALES FORECASTING

Impact of Feature Selection on the Performance of Wireless Intrusion Detection Systems

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

Data Mining on Romanian Stock Market Using Neural Networks for Price Prediction

How To Use Neural Networks In Data Mining

STOCK EXCHANGE INDEX PREDICTION USING HYBRID MODELS

The European Central Bank s Minimum Bid Rate and Its Effect on Major Currency Pairs

Follow links Class Use and other Permissions. For more information, send to:

Design call center management system of e-commerce based on BP neural network and multifractal

Hong Kong Stock Index Forecasting

Neural Networks in Quantitative Finance

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

Neural network software tool development: exploring programming language options

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

WITH THE INCREASE of economic globalization and

Stock Market Prediction System with Modular Neural Networks

Role of Neural network in data mining

Short Term Electricity Price Forecasting Using ANN and Fuzzy Logic under Deregulated Environment

Machine Learning Application for Stock Market Price Prediction.

Financial Trading System using Combination of Textual and Numerical Data

Power Prediction Analysis using Artificial Neural Network in MS Excel

Performance Comparison between Backpropagation Algorithms Applied to Intrusion Detection in Computer Network Systems

Neural Networks and Support Vector Machines

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

Neural Network Add-in

Prediction of Stock Performance Using Analytical Techniques

Performance Evaluation of Artificial Neural. Networks for Spatial Data Analysis

AN APPLICATION OF TIME SERIES ANALYSIS FOR WEATHER FORECASTING

PERFORMANCE ANALYSIS OF HYBRID FORECASTING MODEL IN STOCK MARKET FORECASTING

Software Development Cost and Time Forecasting Using a High Performance Artificial Neural Network Model

UTILIZING ARTIFICIAL NEURAL NETWORK FOR PREDICTION IN THE NIGERIAN STOCK MARKET PRICE INDEX

Automatic Algorithm Design by Neural Network and Indicators in Iran Stock Transactions

Horse Racing Prediction Using Artificial Neural Networks

Comparing ANN Based Models with ARIMA for Prediction of Forex Rates

A Comparative Study of the Pickup Method and its Variations Using a Simulated Hotel Reservation Data

Transcription:

1402 Challenges of the Knowledge Society. IT in Social Sciences TIME SERIES FORECASTING USING NEURAL NETWORKS BOGDAN OANCEA * ŞTEFAN CRISTIAN CIUCU ** Abstract Recent studies have shown the classification and prediction power of the Neural Networks. It has been demonstrated that a NN can approximate any continuous function. Neural networks have been successfully used for forecasting of financial data series. The classical methods used for time series prediction like Box-Jenkins or ARIMA assumes that there is a linear relationship between inputs and outputs. Neural Networks have the advantage that can approximate nonlinear functions. In this paper we compared the performances of different feed forward and recurrent neural networks and training algorithms for predicting the exchange rate EUR/RON and USD/RON. We used data series with daily exchange rates starting from 2005 until 2013. Keywords: neural networks, time series, forecasting, exchange rate, predicting Introduction Classical statistical and econometric models used for forecasting in the field of financial time series fails to efficiently handle uncertainty nature of foreign exchange data series. One of the largest and more volatile financial market is the foreign exchange market, exchange rates being among the most used and important economic indices. Forecasting the exchange rates is a difficult problem from both theoretical and practical point of view because the exchange rates are influenced by many economic and political factors. During the time, many statistical and econometric models have been developed by researchers for the purpose of forecasting exchange rates but this problem remains one of the major challenges in the field of forecasting methods. Recent studies have shown the classification and prediction power of the Artificial Neural Networks. It has been demonstrated that a neural network can approximate any continuous function. Neural networks have been successfully used for forecasting of financial data series. The classical methods used for time series prediction like Box-Jenkins, ARMA or ARIMA assumes that there is a linear relationship between inputs and outputs. Neural Networks have the advantage that can approximate any nonlinear functions without any apriori information about the properties of the data series. In this paper we compared the performances of different feed forward and recurrent neural networks and training algorithms for predicting the exchange rate EUR/RON and USD/RON. We used data series with daily exchange rates starting from 2005 until 2013 provided by the National Bank of Romania. We developed two different kinds of neural networks, a feed forward network and a recurrent network and compared their performances for foreign exchange rate prediction. The feed forward network was trained by the classical backpropagation method, by the resilient backpropagation and one of its versions, while the recurrent network was trained using a multistream approach based on the Extended Kalman Filter. Related work In (Kondratenko, 2003) the authors presents a forecasting method for exchange rates between American Dollar and Japanese Yen, Swiss Frank, British Pound and EURO using a recurrent neural network. Before the data series were presented to the neural network some preprocessing operations have been done based on normalization, calculation of Hurst exponent, Kolmogorov-Smirnov test in * Professor, PhD, Nicolae Titulescu University of Bucharest (email: bogdan.oancea@gmail.com). ** IT Director, Nicolae Titulescu University (email: stefanciucu@yahoo.com).

Bogdan Oancea, Ştefan Cristian Ciucu 1403 order to remove the possible correlations. An Elman-Jordan recurrent network has been used to forecast the one-day ahead value of moving average of returns with the window equal to 5 observations. The number of hidden neurons was chosen equal to 100 with a linear activation of the input layer and logistic activation of the hidden and output layer. The neural network predicted the increments sign with a high probability approximately 80%. (Chen, 2003) compared the performance of a Probabilistic Neural Network with a GMM- Kalman Filter and random walk approach for predicting the direction of return on market index of the Taiwan Stock Exchange. They reached to the conclusion that PNN has a stronger forecasting power than both the GMM Kalman filter and the random walk models because PNN has a better capability to identify erroneous data and outliers and it also doesn t require any apriori information about the underlying probability density functions of the data. A comparison between a neural network and a Hidden Markov Model used for foreign exchange forecasting is also given in (Philip 2011). The results of the study show that while the Hidden Markov Model achieved an accuracy of 69.9% the neural network had an accuracy of 81.2%. A hibrid model ARIMA-PNN is presented in (Khashei, 2012). The values estimated with the ARIMA model are changed based on the trend of the ARIMA residuals detected by a PNN and optimum step length obtained a mathematical programming model. Data transformation in order to improve the accuracy of the forecast is used in (Proietti, 2013). The authors considered the Box-Cox power transformation and showed the forecasts are improve significantly compared to the untransformed data at the one-step-ahead horizon. (Man-Chung, 2000) used a conjugate gradient learning algorithm with a restart procedure to improve the convergence. To further improve the convergence the authors also used a multiple linear regression for weight initialization instead of the classical random initialization. They used the network to predict the daily trading data of some companies from Shanghai Stock Exchange. Methodology In this paper we analyze the exchange rates for two currencies EUR and USD between 03.01.2005 and 19.02.2013. The data series are obtained from the National Bank of Romania. Figure 1 and 2 shows the corresponding exchange rates EUR/RON and USD/RON. It can be seen from these charts that the data are heavily jagged. To improve the accuracy of the forecasting it is better to remove the correlations between the inputs and made them statistically independent. Thus, we studied not the exchange rates but the logarithmic returns given by the following formula: More, in order to increase the learning rate additional data preprocessing that smoothed the data distribution was performed before training the network. We normalized the data using a logistic function according to the following formula:

1404 Challenges of the Knowledge Society. IT in Social Sciences 5.0000 4.8000 4.6000 4.4000 4.2000 4.0000 3.8000 3.6000 Exchange rate EUR/RON 3.4000 3.2000 3.0000 Figure 1. The exchange rate EUR/RON 4.5000 4.0000 3.5000 3.0000 2.5000 2.0000 Figure 2. The exchange rate USD/RON

Bogdan Oancea, Ştefan Cristian Ciucu 1405 This transformation normalizes the data and guarantee us the values are in [0,1] interval. The two data series transformed according to the method described above are presented in figures 3 and 4. 1.2 EUR/RON 1 0.8 0.6 0.4 0.2 0 Figure 3. The normalized EUR/RON exchange rate

1406 Challenges of the Knowledge Society. IT in Social Sciences 1.2 USD/RON 1 0.8 0.6 0.4 0.2 0 Figure 4. The normalized USD/RON exchange rate Results First, we built a feed forward neural network with three layers, one input layer, one hidden layer and one output layer. We chose the optimum number of neurons by trial and error: 20 neurons (i.e. we fed into the network the past 20 values of the time series) in the input layer and 40 neurons in the hidden layer. The output layer has one neuron, the value of the time series at t+1 time moment. For the input layer and the output layer we used a linear activation function and tanh for the hidden layer. The data sets were spitted in two parts: 80% of the values were used for training and 20% for testing purposes. We tested several training algorithms (Rojas, 1996): backpropagation, resilient propagation and a version of it called RPROP+ which is one of the best performing first-order learning methods for feed forward neural networks (Igel, 2000). The irprop+ training algorithm combines information about the sign of the error function derivative which is error surface information with the magnitude of the network error when the decision of reverting an update step is taken. As the error function for our network we used MSE. The results for the three training algorithms were similar, with an increase in convergence speed of about 25% in the case of irprop. As a stopping criteria we imposed a value of 0.1% of the error function. Second, we tested a recurrent neural network (Jaeger, 2002) with an Elman Simple Recurrent Network architecture trained by Extended Kalman Filter (EKF) method, with the derivatives of the network output computed by Truncated Backpropagation Through Time method (Werbos, 1990), (Zipser, 1995). We used a multistream approach for training the network. If the training data sets are heterogeneous, it is possible that a recency effect may appear the weights are updated according to the currently presented training data. To circumvent this issue the solution is to scramble the order of

Bogdan Oancea, Ştefan Cristian Ciucu 1407 the presentation of the data and to use a batch update algorithm. The multistream procedure avoids the apparition of the recency effect by combining the scrambling and batch updates. Multistream EKF divides the training data set into several parts, each subset being a stream. For each Ns streams a different instance of the same network is used. A full description of the training procedure (multistream EKF) is beyond the scope of this paper but an interested reader can find this in (Feldkamp, 1998). We used a network with 20 input neurons, 10 fully recurrent hidden neurons and one output neuron. We split the training data in 20 streams randomly chosen each stream with 200 points. The window for truncated backpropagation was 20. With these parameters we obtained an error in forecasting of about 0.01% which is an order of magnitude better than in the case of the feedforward network. Conclusions Forecasting financial time series is a difficult problem. In this paper paper we compared the performances of different feed forward and recurrent neural networks and training algorithms for predicting the exchange rate EUR/RON and USD/RON. We used data series with daily exchange rates starting from 2005 until 2013 provided by the National Bank of Romania. Before training the networks we applied a preprocessing procedure to the data sets which removes the correlation between data and normalized the data series. Our tests showed that the recurrent network performs better than classical feed forward network in this case. References An-Sing Chen, Mark T. Leung, Hazem Daouk, Application of neural networks to an emerging financial market: forecasting and trading the Taiwan Stock Index, Computers & Operations Research 30, pp. 901 923, 2003. Man-Chung Chang, Chi-Cheong Wong, Chi-Chung Lam, Financial Time Series Forecasting by Neural Network Using Conjugate Gradient Learning Algorithm and Multiple Linear Regression Weight Initialization, Computing in Economics and Finance 2000(61), Society for Computational Economics, July 2000. Lee A. Feldkamp, Danil V. Prokhorov, Charles F. Eagen and Fumin Yuan, Enhaced multi-stream Kalman filter training for recurrent networks, in J. Suykens and J. Vandewalle (Eds.) Nonlinear Modeling: Advanced Black-Box Techniques, pp. 29-53, Kluwer Academic Publishers, 1998. Igel, C., Hüsken, M., 2000. Improving the Rprop Learning Algorithm, Proceedings of the Second International Symposium on Neural Computation, pp. 115 121, ICSC Academic Press. Herbert Jaeger, Tutorial on training recurrent neural networks, covering BPTT, RTRL, EKF and the "echo state network" approach, Technical Report GMD Report 159, German National Research Center for Information Technology, 2002. V. Kondratenko, Yu. A Kuperin, Using Recurrent Neural Networks To Forecasting of Forex, Condensed Matter, Statistical Finance, 2003. Mehdi Khashei, Mehdi Bijari, Gholam Ali Raissi Ardali, Hybridization of autoregressive integrated moving average (ARIMA) with probabilistic neural networks (PNNs), Computers & Industrial Engineering 63, pp. 37 45, 2012. Adewole Adetunji Philip, Akinwale Adio Taofiki, Akintomide Ayo Bidemi, Artificial Neural Network Model for Forecasting Foreign Exchange Rate, World of Computer Science and Information Technology Journal (WCSIT), Vol. 1, No. 3, pp. 110-118, 2011. Tommaso Proietti, Helmut Lütkepohl, Does the Box Cox transformation help in forecasting macroeconomic time series?, International, Journal of Forecasting 29, pp. 88 99, 2013. R. Rojas, Neural Networks, Springer-Verlag, Berlin, 1996. Hong Tan, Neural Network for Stock Forecasting, Master of Science in Electrical Engineering Thesis, Faculty of Texas Tech University, 1995.

1408 Challenges of the Knowledge Society. IT in Social Sciences Anupam Tarsauliya, Shoureya Kant, Rahul Kala, Ritu Tiwari, Anupam Shukla, Analysis of Artificial Neural Network for Financial Time Series Forecasting, International Journal of Computer Applications (0975 8887), Volume 9 No.5, pp. 16-22, November 2010. A. Cretan, A Model for Coordinating Negotiations among Virtual Enterprises, Journal of Applied Quantitative Methods, 4(1):54-67, 2009, ISSN 1842-4562. Paul J. Werbos, Backpropagation through time: what it does and how to do it. Proceedings of the IEEE, Volume 78, Issue 10, pp. 1550-1560, Oct 1990. Ronald J. Wiliams, David Zipser, Gradient-Based Learning Algorithms for Recurrent Networks and Their Complexity, in Y. Chauwin & D. E. Rumelhart (Eds.) Back-propagation: theory, Architectures and Applications, Hillsdale NJ: Erlbaum, 1995. Jing Tao Yao, Chew Lin Tan, Guidelines for Financial Forecasting with Neural Networks, Proceedings of International Conference on Neural Information Processing, Shanghai, China, 14-18 November, pp. 757-761, 2001. Gioqinang Zhang, Michael Y. Hu, Neural Network Forecasting of the British Pound/US Dollar Exchange Rate, OMEGA - The International Journal of Management Science, Vol. 26, No. 4, pp. 495-506, 1998.