Prediction Model for Crude Oil Price Using Artificial Neural Networks



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

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

Neural Network Applications in Stock Market Predictions - A Methodology Analysis

A Prediction Model for Taiwan Tourism Industry Stock Index

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

Neural Networks and Back Propagation Algorithm

Power Prediction Analysis using Artificial Neural Network in MS Excel

Neural Networks in Data Mining

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

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

Lecture 6. Artificial Neural Networks

NEURAL NETWORKS IN DATA MINING

Neural Network Design in Cloud Computing

Time Series Data Mining in Rainfall Forecasting Using Artificial Neural Network

Artificial Neural Network and Non-Linear Regression: A Comparative Study

Forecasting the U.S. Stock Market via Levenberg-Marquardt and Haken Artificial Neural Networks Using ICA&PCA Pre-Processing Techniques

An Introduction to Neural Networks

Comparison of Regression Model and Artificial Neural Network Model for the prediction of Electrical Power generated in Nigeria

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

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

Stock Market Prediction System with Modular Neural Networks

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

Open Access Research on Application of Neural Network in Computer Network Security Evaluation. Shujuan Jin *

Keywords: Image complexity, PSNR, Levenberg-Marquardt, Multi-layer neural network.

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

Horse Racing Prediction Using Artificial Neural Networks

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

How To Use Neural Networks In Data Mining

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

Analecta Vol. 8, No. 2 ISSN

Building lighting energy consumption modelling with hybrid neural-statistic approaches

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

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

A Wavelet Based Prediction Method for Time Series

Creating Short-term Stockmarket Trading Strategies using Artificial Neural Networks: A Case Study

AN APPLICATION OF TIME SERIES ANALYSIS FOR WEATHER FORECASTING

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

Forecasting Of Indian Stock Market Index Using Artificial Neural Network

AUTOMATION OF ENERGY DEMAND FORECASTING. Sanzad Siddique, B.S.

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

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

Neural Networks in Quantitative Finance

Cash Forecasting: An Application of Artificial Neural Networks in Finance

NAVAL POSTGRADUATE SCHOOL Monterey, California THESIS FORECASTING FINANCIAL MARKETS USING NEURAL NETWORKS: AN ANALYSIS OF METHODS AND ACCURACY

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

Computational Neural Network for Global Stock Indexes Prediction

Iranian J Env Health Sci Eng, 2004, Vol.1, No.2, pp Application of Intelligent System for Water Treatment Plant Operation.

DATA MINING TECHNIQUES AND APPLICATIONS

An Introduction to Artificial Neural Networks (ANN) - Methods, Abstraction, and Usage

APPLYING DATA MINING TECHNIQUES TO FORECAST NUMBER OF AIRLINE PASSENGERS

Chapter 12 Discovering New Knowledge Data Mining

Optimization of technical trading strategies and the profitability in security markets

Neural Network Based Forecasting of Foreign Currency Exchange Rates

2 Forecasting by Error Correction Neural Networks

IBM SPSS Neural Networks 22

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

Advanced analytics at your hands

DEVELOPING AN ARTIFICIAL NEURAL NETWORK MODEL FOR LIFE CYCLE COSTING IN BUILDINGS

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

Utilization of Neural Network for Disease Forecasting

Use of Artificial Neural Network in Data Mining For Weather Forecasting

Comparison of Supervised and Unsupervised Learning Classifiers for Travel Recommendations

Prediction of Stock Performance Using Analytical Techniques

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

Comparison of K-means and Backpropagation Data Mining Algorithms

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

Adaptive model for thermal demand forecast in residential buildings

Stock Prediction using Artificial Neural Networks

Forecasting Trade Direction and Size of Future Contracts Using Deep Belief Network

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

COMBINED NEURAL NETWORKS FOR TIME SERIES ANALYSIS

BACK CALCULATION PROCEDURE FOR THE STIFFNESS MODULUS OF CEMENT TREATED BASE LAYERS USING COMPUTATIONAL INTELLIGENCE BASED MODELS

Predicting the Risk of Heart Attacks using Neural Network and Decision Tree

A hybrid financial analysis model for business failure prediction

Review on Financial Forecasting using Neural Network and Data Mining Technique

ARTIFICIAL NEURAL NETWORKS FOR ADAPTIVE MANAGEMENT TRAFFIC LIGHT OBJECTS AT THE INTERSECTION

Stock Data Analysis Based On Neural Network. 1Rajesh Musne, 2 Sachin Godse

Guidelines for Financial Forecasting with Neural Networks

A Time Series ANN Approach for Weather Forecasting

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

Joseph Twagilimana, University of Louisville, Louisville, KY

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

Weather forecast prediction: a Data Mining application

Methodology Framework for Analysis and Design of Business Intelligence Systems

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

Neuro-Rough Trading Rules for Mining Kuala Lumpur Composite Index

Review on Financial Forecasting using Neural Network and Data Mining Technique

Applying Multiple Neural Networks on Large Scale Data

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

Data Mining Algorithms Part 1. Dejan Sarka

Application of Artificial Neural Networks To Predict Intraday Trading Signals

Using artificial intelligence for data reduction in mechanical engineering

Intelligent Modeling of Sugar-cane Maturation

Sound Quality Evaluation of Hermetic Compressors Using Artificial Neural Networks

Data Mining using Artificial Neural Network Rules

Predictive time series analysis of stock prices using neural network classifier

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

EFFICIENT DATA PRE-PROCESSING FOR DATA MINING

SURVIVABILITY ANALYSIS OF PEDIATRIC LEUKAEMIC PATIENTS USING NEURAL NETWORK APPROACH

Technical Trading Rules as a Prior Knowledge to a Neural Networks Prediction System for the S&P 500 Index

Transcription:

Applied Mathematical Sciences, Vol. 8, 2014, no. 80, 3953-3965 HIKARI Ltd, www.m-hikari.com http://dx.doi.org/10.12988/ams.2014.43193 Prediction Model for Crude Oil Price Using Artificial Neural Networks Mayuree Sompui 1 and Wullapa Wongsinlatam 2* 1 Department of Mathematics, Faculty of Science Udon Thani Rajabhat University, Thailand 41000 2 Faculty of Applied Science and Engineering, Nong Khai Campus Khon Kaen University, Nong Khai, Thailand 43000 *Corresponding author Copyright 2014 Mayuree Sompui and Wullapa Wongsinlatam. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited. Abstract This paper presents a prediction model for crude oil price spot price direction in the short-term. The prediction model based on artificial neural network (ANN) to forecast and compared with least square method (LSM). The results show that on the short-term, the best prediction model for ANN of four, three, two and one hidden layers, respectively. The ANN of one - four hidden layers is found to be able to forecast better than the LSM. Keywords: Crude Oil Price, Prediction Model, Artificial Neural Networks, Least Square Method 1. Introduction Crude oil is the significance of global economic variable. It is a vital component for the economic development and growth for industrialized. However, extreme weather, speculation in financial market, amongst others is major characteristics of crude oil market which increase the level of price volatility in the oil markets. The effect of oil price fluctuation extends to reach large number of goods and services which have direct impact on the economy as well as the communities. Therefore, to reduce the negative impact of the price fluctuations, it is very important to predicate the price direction.

3954 Mayuree Sompui and Wullapa Wongsinlatam Artificial Neural Network (ANN) is the science of Artificial Intelligence (AI) that being applied in various fields effectively, for example, pattern recognition, prediction, control, optimization and clustering. The concept is that it simulates the working of the human brain neurons. Generally, it can be seen from the nodes of neural network which are simulated from synapse. Also, the signal transmission of nodes is simulated from dendrite and axon. Finally, activation function or transfer functions are simulated from the human neuron. The mathematical model of ANN is a dynamic weighted sum, a general possibly convergent function, which is far different from any of the basic neural models or their compositions. It is perhaps a good instance which indicates that artificial intelligent not be rigorously studied before the natural intelligence [1-3]. Least Square Method (LSM) is probably the most popular technique in statistics. LSM arise when fitting a parameterized linear or nonlinear function to a set of measured data points by minimizing the sum of the squares of the errors between the data points and the linear or nonlinear function [4-6]. This paper presents a very brief review of the related and recent studies. Wang et al [7] present a hybrid methodology to forecast crude oil monthly prices. The model consists of combination of three separate components that they extract rule based system. These three components work disjointedly, and then intergraded together to get the final results. They claimed that nonlinear integration of these three models has outperformed any single one. However, there are several issues in this system. For example, the rule base system of the text mining model 3 depends on the knowledge base which developed by human experts. This process is not only controversial, but also unreliable, experts opinions vary on the same problem. Moreover, neither the rules nor the knowledge base was made available to the public. Bopp and Sitzer tested [8] whether futures prices are good predictors for cash price in the future for the heating oil market. In attempt to answer if futures prices has the capacity to improve forecasting ability of econometrical models. The results showed that only futures contract 1 and 2 months to maturity are statistically significant for cash price forecast. In other words contain new information. Abosedra and Baghestani tested [9] monthly future prices for long term-forecast. The results showed that only future 1 and 12 months ahead produced significant forecast and could be useful for policy making purposes. In this study, we presented the ANN for crude oil price prediction for the short-term. Next, we test whether crude oil future prices contain information about spot price direction on the short-term. The prediction model based on ANN of four layers feedforward network with backpropagation algorithm to forecast and compared with LSM. First, section 2 presents model and calculations, and preprocessing along with our methodology. Second, section 3 presents results and discussion. Finally the paper is concluded in Section 4.

Prediction model for crude oil price 3955 2. Model and calculations ANN architecture is divided into 2 types: a single neural network layer and a multi neural network layer. The single layer has only input and output level (see Figure 1). However, the multi neural network layer has one or more than one hidden levels which are in the middle of the input and output level (see Figure 2). Input Output Input layer Hidden layer Output layer Figure 1 The model of single neural network layer. Input Output Input layer Hidden layer Hidden layer Output layer Figure 2 The model of multi neural network layer. LSM is probably the most popular technique in statistics. LSM arise when fitting a parameterized function to a set of measured data points by minimizing the sum of the squares of the errors between the data points and the function. LSM based methods have received considerable attention for crude oil price forecasting. These models have been used to deal with the nonlinearity of crude oil price. The methodology of this study is based on four layers feedforward network with backpropagation algorithm. The goal is to forecast crude oil prices. Convergence, the ability of the model to perform with new data and Satiability, consistency of the network output are main requirements for any successful ANN [10]. The points are successfully, a large number of considerations need to be taken into account, the size and frequency of the data, network architect, the number of hidden neurons, and activation function.

3956 Mayuree Sompui and Wullapa Wongsinlatam The residuals mean squared error (RMSE) used metric for ANN performance regardless of the network goal. The measure of linear correlation between the forecasted and value [10]. In this study, we used mean squared error (MSE) for ANN. Finally, the information coefficient given by equation 2.1 was used. yx ˆ, 2 i y w xi n MSE (2.1) i1 2 Where y x i is the observation data, ˆ, i y w x is the predicted value that ensconced activation function and weight, x i is the original time series, and w is weight. The observation data is daily closing price; from Sep 2002 to Aug 2013, it includes 3057 data points for each time series. All data sets retrieved from Energy Information Administration web site: http://www.eia.doe.gov/ [11]. We used 85 % of the data for training and 15 % for out of sample testing. The network normalization is transferred the data to fit within the limit of transfer function. A linear normalization method is given by equation 2.2 to transfer the data to fit between [-1, 1]. y i xi min xi 2 1 max( x ) min( x ) i i (2.2) The most widely used activation functions for ANN in the hidden layer are the sigmoid functions and the hyperbolic tangent. We used sigmoid function in Figure 3 for activation function. Figure 3 The sigmoid function and normalization method. The sigmoid function is given by equation 2.3 1 gx i x (2.3) e 1 i

Prediction model for crude oil price 3957 Finally, parameters are used learning rate, training time, optimization algorithm that selected base on experiments. 3. Results and discussion The methodology of this study was compared a fully connected feedforward for backpropagation algorithm networks of one to four hidden layers with LSM. Hence, we focus our interest on modeling with feedforward network. The Choice of activation function, learning rate, were determined by experiments. The optimization algorithms was chosen Leveberg-Maquardt [12-13] that was approximated the second order. A linear normalization method is given by Figure 3 for the data to fit between [-1, 1]. 1 0.8 0.6 Dollars per Barrel 0.4 0.2 0 0.2 0.4 0.6 0.8 1 0 500 1000 1500 2000 2500 3000 3500 time (day) (a) 1 0.8 0.6 Dollars per Barrel 0.4 0.2 0 0.2 0.4 0.6 0.8 1 0 500 1000 1500 2000 2500 3000 3500 time (day) Figure 4 The observations data (a) and the normalization of observations data (b). (b) The network architecture is 4 layers feedforward with 9 neurons in the hidden layer. The network was trained for 1000 iterations or until one of the stopping criteria is met. The learning rate is 0.01 and training algorithm is Levenberg-

3958 Mayuree Sompui and Wullapa Wongsinlatam Marquardt. The results of the prediction model for ANN show that on Table I-III, ANN (one, two, three and four hidden layer) are found to be able to forecast better than the LSM. This makes sense, the targets of ANN shown in Table I-II and the output of the prediction model based on ANN shown the best solution in four, three, two and one hidden layer, respectively. The outputs of ANN are found to be able to forecast better than the LSM. TABLE I. The prediction model for crude oil price of normalization data used ANN in one and two hidden layer for target and output. Time One hidden layer Two hidden layer Series Target Output Target Output 1-0.841494-0.854032-0.841494-0.821653 2-0.826899-0.850917-0.826899-0.819214 3-0.826114-0.840760-0.826114-0.812024 4-0.802103-0.837337-0.802103-0.809363 5-0.815913-0.820602-0.815913-0.799180 6-0.816541-0.825366-0.816541-0.801096 7-0.800534-0.827686-0.800534-0.805170 8-0.814658-0.817290-0.814658-0.797250 9-0.826899-0.823919-0.826899-0.800737 10-0.859856-0.834241-0.859856-0.809646 11-0.857815-0.857368-0.857815-0.825137 12-0.864093-0.862249-0.864093-0.829133 13-0.935342-0.866728-0.935342-0.829747 14-0.943189-0.903946-0.943189-0.857630 15-0.934714-0.916929-0.934714-0.869641 TABLE II. The prediction model for crude oil price of normalization data used ANN in three and four hidden layer for target and output. Time Three hidden layer Four hidden layer Series Target Output Target Output 1-0.841494-0.862796-0.841494-0.830432 2-0.826899-0.859872-0.826899-0.827379 3-0.826114-0.847411-0.826114-0.818852 4-0.802103-0.841271-0.802103-0.818438 5-0.815913-0.817085-0.815913-0.803688 6-0.816541-0.821629-0.816541-0.812378 7-0.800534-0.821937-0.800534-0.812816 8-0.814658-0.810136-0.814658-0.802755 9-0.826899-0.818080-0.826899-0.811645 10-0.859856-0.829918-0.859856-0.819081 11-0.857815-0.860061-0.857815-0.837806 12-0.864093-0.870408-0.864093-0.836577 13-0.935342-0.879890-0.935342-0.839891 14-0.943189-0.915614-0.943189-0.874719 15-0.934714-0.933299-0.934714-0.877994

Prediction model for crude oil price 3959 TABLE III. Structure of LSM and mean squared error. Time Series LSM Observations data Output 1-0.841494-0.993395 2-0.826899-0.993391 3-0.826114-0.993215 4-0.802103-0.993009 5-0.815913-0.992582 6-0.816541-0.992457 7-0.800534-0.992294 8-0.814658-0.992313 9-0.826899-0.992296 10-0.859856-0.992373 11-0.857815-0.993013 12-0.864093-0.993433 13-0.935342-0.993794 14-0.943189-0.994315 15-0.934714-0.994835 The MSE is by far the most used metric for ANN performance regardless of the network goal and LSM used MSE for measure information. The results of the prediction model between ANN of one to four hidden layers with LSM. This makes sense, the a measure of the predictions model shown in Figure 5-9 and the MSE of the prediction model based on ANN shown the error of information coefficient in four, three, two and one hidden layer, respectively. The error between observations data with predicted value of ANN are found to be able to forecast better than the LSM. (a)

3960 Mayuree Sompui and Wullapa Wongsinlatam Figure 5 The result of ANN with one hidden layer (a) and the error of training and testing with the network (b). (b) (a) Figure 6 The result of ANN with two hidden layer (a) and the error of training and testing with the network (b). (b)

Prediction model for crude oil price 3961 (a) (b) Figure 7 The result of ANN with three hidden layer (a) and the error of training and testing with the network (b).

3962 Mayuree Sompui and Wullapa Wongsinlatam (a) Figure 8 The result of ANN with four hidden layer (a) and the error of training and testing with the network (b). (b) Figure 9 The result of LSM.

Prediction model for crude oil price 3963 4. Conclusion In this paper we presented a prediction model for crude oil price spot price direction in the short-term. Data was obtained from Energy Information Administration covering from 2002 to 2013. In addition, we tested the relation crude oil prices and the prediction model based on ANN to forecast and compared with LSM. The results shown that on the short-term, the best prediction model for ANN of four, three, two and one hidden layers, respectively. The ANN of one to four hidden layers is found to be able to forecast better than the LSM in Figure 5-9. Finally, our future research continue to investigate other variable which could lead to improving the short-term forecast, such as heating oil prices, share of stock, share of business, interest rate, and gold prices. References [1] M. Azoff, Neural network time series forecasting of financial markets, John Wiley, New York, 1994. [2] R. Neuneier and H. Zimmermann, How to train neural networks Neural networks, Spring, 1 (1998), 273-423. [3] S. Haykin, Neural networks a comprehensive foundation, Wiley, New Jersey, 1999. [4] D. M. Batesand and D. G. Watts, Nonlinear regression and its applications, Wiley, New York, 1988. [5] G. Philip and M. Walter, Algorithms for the solution of the nonlinear least-squares problem, SIAM Journal, 4 (1978), 977-992. [6] I. Griva, S. Nash and A. Sofer, Linear and nonlinear optimization, Springer Science, 2009.

3964 Mayuree Sompui and Wullapa Wongsinlatam [7] S.Wang, L. Yu and K. Lai, Crude oil price forecasting with TEI@Imethodology, Journal of Systems Science and Complexity, 18 (2005), 145-166. [8] E. Bopp and S. Sitzer, Are petroleum futures prices good predictors of cash value, The Journal of Futures Market, 7 (1987), 705-719. [9] S. Abosedra and H. Baghestani, On the predictive accuracy of crude oil futures prices, Energy Policy, 1 (2004), 1389-1393. [10] A. Refenes, Neural networks in the capital markets, Wiley, New York, 1995. [11] A. Coppola, Forecasting oil price movements: Exploiting the information in futures market,the Journal of Futures Markets, 28 (2008), 34-56. http://papers.ssrn.com/paper.taf?abstract_id=967408 [12] H. Gavin, The Levenberg-Marquardt method for nonlinear least squares curve fitting problems, Journal of Computational Physic, 2 (2011), 164-168. [13] D.W. Marquardt, An algorithm for least-squares estimation of nonlinear parameters, Journal of the Society for Industrial and Applied Mathematics, 11 (1963), 431-441. http://www.brnt.eu/ phd/node10.html [14] B. Vanstone, Trading in the Australian stock market using artificial neural networks, Bond University in fulfillment of the requirements for the degree Doctor of Philosophy, 2005. [15] C. Brooks, Introductory econometrics for finance, Cambridge University press, Cambridge, 2002. [16] R. Grothmann, Multi-agent market modeling based on neural networks, University of Bremen, Germany, 2005.

Prediction model for crude oil price 3965 [17] G. Bowden and K. James, Neural networks for the prediction and forecasting of water resources variables: a review of modelling issues and applications, Journal Environmental Modelling and Software, 15 (2001), 101-124. Received: March 15, 2014