Professional Documents
Culture Documents
iii
Muhammad Arshad, Akbar Azam
Fixed points solutions of sequence of locally contractive fuzzy mappings via iterative procedure ....................................................... 113
Aye Hande Erol, Nilay zelikkan, Asm Tokgz, Semih zel, Selim Zaim, mer F. Demirel
Forecasting Electricity Consumption Of Turkey Using Time Series Methods And Neural Networks ...................................................... 117
Kharfouchi Soumia
A generalized moments estimator for random coefficients auto-regressive model on a plane ............................................................ 129
Salah Derradji Lylia, Moumeni Abdelkader
Global solution for reaction-diffusion systems with non diagonal matrix ............................................................................................ 131
Samira Ghasemi, Alireza Moghali
Investigating the relationship between BPR and application of IT in PIDEC employees ....................................................................... 135
Mahmoud Syam, Ahmed Taleb
Investigating the use of some tools of Instructional Technology in teaching Mathematics; A case study ............................................. 141
Abdelaziz Amroune, Lemnaouar Zedam
Many valued logic and Zadeh's fuzzy sets: A Stone theorem generalization ........................................................................................ 145
Husnia Mohamed Eldanfour
Modified Newton's methods with fifth or sixth-order convergence .................................................................................................... 149
E. S. Ismail, N. Tahat
A new electronic signature based on hybrid-mode problems .............................................................................................................. 153
Husnia Mohamed Eldanfour
Newton's method with sixth-order convergence for solving systems of non-linear equations ............................................................. 157
Mohammad Tohidi, Jafar Emamipour, Amir-Masoud Eftekharimoghadam
A novel fuzzy similarity measure based on monotonic inclusion for image retrieval systems ............................................................. 163
,
Mohammad Mehdi Mazarei Ali Asghar Behroozpoor
Numerical solution of nonlinear partial differential equations using optimization method ................................................................ 167
M. A. Bokhari, H. Al-Attas
-1
On (1 t ) weighted orthogonal polynomials: Applications and computational aspects ................................................................... 171
Said Mohamed Said
On a nonlinear problem intervening in relativistic quantum mechanics perturbed by a factor of amortizement ................................. 175
Badis Abdelhafid
On minimal non-((periodic radicable abelian)-by-hypercenal) groups ................................................................................................. 181
Tahir H. Ismail1, Hind Y. Saleh, Barah M. Sulaiman
On some properties of convex galaxies and functions ......................................................................................................................... 183
Ismael Akray
Soc-+-Supplemented Modules ............................................................................................................................................................ 185
Faieza Samat, Fudziah Ismail, Norihan Md Arifin, Mohamed Suleiman
Solving second order initial value problems by an exponentially fitted explicit hybrid method .......................................................... 191
Seid Bahlali, Boulakhras Gherbal
Stochastic maximum principle for backward doubly control systems .................................................................................................. 195
N.Rajeswari, K.Indrani
Supply chain decision model for time dependent deteriorating items, variable holding cost and trade credit ..................................... 199
iv
Forecasting Electricity Consumption Of Turkey Using Time Series
Methods And Neural Networks
Aye Hande Erol 1,*, Nilay zelikkan 2 , Asm Tokgz 3 , Semih zel 4 , Selim Zaim 5 and
mer F. Demirel 6
1
Department of Industrial Engineering, Marmara University, Institute For Graduate Studies In Pure And Applied Sciences ,
Gztepe, 34722, TURKEY , hande.erol@marmara.edu.tr,
2
Department of Industrial Engineering, Marmara University, Institute For Graduate Studies In Pure And Applied Sciences ,
Gztepe, 34722, TURKEY , nilay.ozcelikkan@gmail.com,
3
Department of Industrial Engineering, Marmara University, Institute For Graduate Studies In Pure And Applied Sciences ,
Gztepe, 34722, TURKEY , asimtokgoz@gmail.com,
4
Department of Industrial Engineering, Marmara University, Institute For Graduate Studies In Pure And Applied Sciences ,
Gztepe, 34722, TURKEY , semih.ozel@marmara.edu.tr4,
5
Department of Industrial Engineering, Marmara University, Institute For Graduate Studies In Pure And Applied Sciences ,
Gztepe, 34722, TURKEY , selimzaim@marmara.edu.tr5,
6 Department of Industrial Engineering, Fatih University, TURKEY , odemirel@fatih.edu.tr,
ICM 2012, 11-14 March, Al Ain
117
Aye Hande Erol, et al.
this approach have been in the form of insertion of more specific 3 METHODOLOGY
energy-related variables in the model and the development of new
methods to identify co integrating relationships, using the Autore-
3.1 The Box-Jenkins (ARIMA) Methodology
gressive Distributed Lag Model (ARDL) and the Johansen Maxi-
mum Likelihood Model (JML) are especially popular [7].
Autoregressive integrated moving average modeling (ARIMA)
was greatly improved by G.E.P. Box and G.M. Jenkins. They have
contributed a great deal of effort to identify, fit and check the
model validity [8]. Box-Jenkins methodology is different from the
2 FORECASTING ENERGY CONSUMPTION other forecasting methods as it does not assume any regular pattern
in the history of the data series that will be forecasted. It heavily
There are many approaches include statistical models, neural net-
relies on its own past while describing the series and its an appro-
works, fuzzy logic and expert systems. A number of them focused
priate method for medium to long length time series data [4]. It
on mid-term and long-term electricity demand and incorporated
iteratively improves the model until residuals are small, stochasti-
climate factors [3].
cally distributed and show no regular pattern [7][8].
Ediger and Akar (2007) [6] improved the ARIMA and the seasonal
The ARIMA model is inherited from the ARMA(p,q) model which
ARIMA methods for forecasting the primary energy demand with
has the form as,
respect to types of fuel for the period 2005-2020 in 2007. nler
(2008) used the Particle Swarm Optimization (PSO) technique to
forecast the 2006-2025 period of energy demand based on the data Yt 0 1Yt 1 2Yt 2 ... pYt p t 1 t 1 2 t 2 ... q t q (1)
118
Forecasting Monthly Electricity Consumption in Turkey
After selecting a rough model, the parameters (phis and thetas) bt ( Lt Lt 1 ) (1 )bt 1 (4)
for that model must be estimated. The parameters of the ARIMA
Yt
models are estimated by minimizing the sum of squares of the St (1 ) St s
fitting models. The significance of the parameters is tested with t- Lt (5)
statistics and p-value. As the t-statistic is itself not informative, it is
used for the calculation of p-value for hypothesis testing [8]. The Ft m ( Lt bt m ) S t s m
null hypothesis (H0) states that all parameters of the model are (6)
zero against the alternative hypothesis (Ha) that some parameters where s is the number of periods in one cycle of seasons e.g. num-
are different than zero. If the p-value is less than , representing ber of months or quarters in a year. Lt and bt are respectively (ex-
the level of confidence as (1- ) %, then null hypothesis is rejected, ponentially smoothed) estimates of the level and linear trend of the
meaning that there are some parameters different than zero. series at time t, whilst Ft+m is the m-step-ahead forecast starting
from time period t. For initialization, one complete cycle of data,
Before forecasting with model, the adequacy of the model must be i.e. s values, is necessary. The parameters , , should be be-
checked by examining the information about the residuals, which tween the interval (0, 1), and can be selected by minimizing mean
should be random and normally distributed. This can be done very absolute error (MAE) and square root of mean squared error values
easily by examining the histogram, or the normal probability plot (RMSE).
or a time sequence plot of residuals. The residual autocorrelations Then set
should be small and within the confidence intervals at the ACF and
119
Aye Hande Erol, et al.
The equations are (taken from Russell Cheng web site [10]);
Lt (Yt St s ) (1 )( Lt 1 bt 1 ) (10)
bt ( Lt Lt 1 ) (1 )bt 1 (11)
St (Yt Lt ) (1 ) St s
(12)
Ft m Lt bt m St s m
(13)
where s is the number of periods in one cycle. The parameters , , Fig. 1. An example of neural network
should be between the interval (0, 1), and can again be selected
by minimizing error values.
As you see in the Figure 1, the neural network consists of inputs, weights,
The initial values of Ls and bs can be computed as in the multip- summation function, activation function and outputs.
licative case. The initial seasonal indices can be taken as
120
Forecasting Monthly Electricity Consumption in Turkey
In literature, neural network was used especially for energy con- After the application of natural logarithm transformation to the
suming forecasting. As an example of time series study, the inter- data (see Figure 5), the variance became constant but, trend and
ested person can investigate the study of [15]. Zhang (2003) [14] seasonality can be seen.
used ARIMA and artificial neural network together in his study.
4.1.1 Identification
Fig. 5. Natural Logarithm Transformation of the Electric Consumption
As a first step to model identification, monthly electric consump- Data.
tion time series data is plotted for the years 1970 to 2010. When
the time series plot is examined Figure 3, the main features of the
data are: (1) the overall level rises almost linearly until 1985 and
after that there are exponential fluctuations. (2) the variance is not
constant meaning that transformation is necessary (3) there is also
seasonal pattern of monthly length 12 which can be more easily
seen when the yearly data superimposed on the same graph as seen
in the Figure 4.
Fig. 3. Time Series Plot of Electric Consumption between 1970 and 2010.
18000
2007
2008
17000 2009
2010
16000
Consumption
15000
14000
13000
12000
Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
Month
Fig. 4. Seasonal Pattern of the Electric Consumption Data. Fig. 7. ACF of Natural Logarithm and Differencing (1) Transformation of
the Electric Consumption Data.
121
Aye Hande Erol, et al.
The ACF in Figure 10 cuts off to zero suddenly after lag 1 at the
nonseasonal level while the PACF in Figure 11 almost dies down
meaning MA (1), nonseasonal moving average. Both ACF and
PACF dies down at the seasonal or near seasonal lags that suggests
to add SAR (1) and SMA(1) to the model. Thus the final model is
the combination of them and stated as ARIMA (0,1,1)(1,1,1)12.
The PACF in Figure 11 also reminds of the AR(1) pattern, that will
result in ARIMA (1,1,1)(1,1,1)12 model as a whole but, the for-
mer model is simple and has slightly better residual errors than the
later. Also principle of parsimony advises us to prefer simple
Fig. 11. PACF of Natural Logarithm, Differencing (1) and Seasonal
models over complex ones. Differencing (1,period 12) Transformation of the Electric Consumption
Data.
122
Forecasting Monthly Electricity Consumption in Turkey
Estimate SE t Sig.
The parameters of the model ARIMA (0,1,1)(1,1,1)12 are estimated
Consumption Natural Difference 1
by using the IBM SPSS 19 package. The model fit statistics are Log MA(1) 0.540 0.039 13.943 0.000
Stationary R-squared 0.411, R-squared 0.997, RMSE 241.743, AR, Seasonal (1) 0.270 0.066 4.081 0.000
MAPE 2.719, MAE 146.693, MaxAPE 13.382, MaxAE 1331.077 Seasonal 1
Difference
Ljung-Box Q(18) Statistics 39.715 DF 15 Sig. 0.001.
MA, Seasonal(1) 0.816 0.044 18.665 0.000
Yt 1 t 13 1 t 1 11 t 13 (Yt 1 Yt 12 Yt 13 ) 1 (Yt 13 Yt 12 Yt 24 Yt 25 )
0.6
0.4
Autocorrelation
0.2
And 0.0
t Y Yt -0.2
-0.4
Zt eYt
-0.6
The real estimates (Zs) will be
-0.8
-1.0
The estimated ARIMA Model Parameters and their corresponding 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30
values are 0.540 for the MA(1) ,1, 0.270 for the SAR(1), 1, and Lag
1.0
From plotting and looking the residual errors, they look random, 0.8
normally distributed, no outliers and their mean is approximately 0.6
Partial Autocorrelation
at some lags, the overall appearance of the plots is good (see Fig- 0.2
0.0
ure 12, Figure 13 and Figure 14 ).
-0.2
-0.4
The Ljung-Box statistic is a test of the relationship between the -0.6
residuals and a large value shows that the residuals are related. -0.8
When the observations are completely random (i.e. form a white -1.0
10
-0.05
1 -0.10
0.1
-0.10 -0.05 0.00 0.05 0.10 6 7 8 9 10
Table 1. Model Statistics Residual Fitted Value
Stationary R- 0.05
RMSE 45
Frequency
123
Aye Hande Erol, et al.
PACF of Residuals
4.1.4 Forecasting
1.0
0.8
After the diagnostic checking of the model, the forecasting is made
0.6
for the next 12 months by using the constructed model and pre-
Partial Autocorrelation
0.4
sented at the Results and Discussions part. 0.2
Residual Plots for Natural Log(Consumption) Residual Plots for Natural Log (Consumption)
Normal Probability Plot Versus Fits Normal Probability Plot Versus Fits
99.9 99.9
0.1 0.10
99 99
90 90 0.05
Residual
Residual
Percent
Percent
0.0 0.00
50 50
-0.05
10 10
-0.1 -0.10
1 1
0.1 0.1
-0.1 0.0 0.1 6 7 8 9 10 -0.10 -0.05 0.00 0.05 0.10 6 7 8 9 10
Residual Fitted Value Residual Fitted Value
45 0.05
Frequency
45
Frequency
Residual
0.0 Residual
0.00
30
30
-0.05
15 15
-0.1 -0.10
0 0
-0.12 -0.08 -0.04 0.00 0.04 0.08 1 50 100 150 200 250 300 350 400 450 -0.12 -0.08 -0.04 0.00 0.04 0.08 1 50 100 150 200 250 300 350 400 450
Residual Observation Order Residual Observation Order
1.0 1.0
0.8 0.8
0.6 0.6
0.4 0.4
Autocorrelation
Autocorrelation
0.2 0.2
0.0 0.0
-0.2 -0.2
-0.4 -0.4
-0.6 -0.6
-0.8 -0.8
-1.0 -1.0
1 5 10 15 20 25 30 35 40 45 50 55 60 65 1 5 10 15 20 25 30 35 40 45 50 55 60 65
Lag Lag
124
Forecasting Monthly Electricity Consumption in Turkey
PACF of Residuals
1.0
0.8
0.6
Partial Autocorrelation
0.4
0.2
Fig. 21. ANN Model
0.0
-0.2 Backpropogation with momentum learning method is selected while creat-
-0.4
ing the model. The parameters used in this study are: momentum rate 0.8,
learning rate 0.5 and error rate 0.0001. The software run stops when the
-0.6
error rate decreased to the value that was set for training. According to the
-0.8 defined parameters, Neuroph software was executed and the training
-1.0 process was performed. The training error rates were demonstrated on the
Table 4 below. In the next step, the model was verified with the test data
1 5 10 15 20 25 30 35 40 45 50 55 60 65
and the learning level was measured as in Table 4.
Lag
MAE RMSE
Fig. 20. PACF Plots of Residuals Training 272.44 389.59
Test 1136.36 1329.27
4.3 ANN Model During the training phase, the trend was usually easy part for ANN
model to capture but, the major challenge was to overlap the fitted
values with the actual values to meet the seasonality pattern needs.
In this work, an electricity consumption estimation model is devel-
oped by using artificial neural network. In order to estimate the When the ANN model is trained normally, the fitted values
consumption, multilayer perception (MLP) structure is used. The showed a very similar behavior to simple linear regression and a
MLP training process is based on supervised learning algorithm. seasonal pattern cannot be seen. However, when the model is
To generate ANN network, Java based, open source Neuroph trained up to a significant level in order to minimize the errors, the
software is used (http://neuroph.sourceforge.net/index.html, Janu- ANN model produced fitted values that match the seasonal pat-
ary 2012). Neuroph is simple and functional software with Java terns somehow. But this overtraining did not end up with good
libraries for developing ANN models. Training and test data are predictions as it almost removed the trend from the ANN weights.
separately given to the software with the other necessary selected This can be easily seen at Table 3 by comparing the training meas-
model parameters. With training data set, the ANN network learns ures with the test measures. There is great deal of difference be-
the structure of the data, and then with test data set, the quality of
tween training and test measures. Even though the training seems
the learning of the network is tested.
significant, the ANN failed to produce good estimates for testing
and it can be seen at the Figure 22.
The consumption data from 1970 to 2009 are considered as train-
ing data and 2010 consumption data as test data. Years and months
of data are selected as input while the consumption is considered
as output. As it is selected the sigmoid function for activation
function, normalization of the data fields between (0,1) is neces-
sary. The normalization of the input output data is maintained by
formulation. For normalization of consumption data, DataMin
value is set as 350 and DataMax value is set as 20.000. The years
are normalized between 1970 and 2025 while the months are nor-
malized dividing each month to 12. The model is constructed with;
an input layer with two nodes, two hidden layers with six nodes
each and an output layer with one node. Additionally a bias node is
included in each layer except the output layer. The model structure
created with Neuroph software can be seen in the Figure 21 below.
Fig. 22. ANN Test Data Comparison
125
Aye Hande Erol, et al.
5 RESULTS AND DISCUSSIONS Mucuk, M., Uysal, D., (2009). Turkeys Energy Demand, Current Research Journal of
Social Sciences 1(3), 123-128
Mirasgedis, S., Sarafidis, Y., Georgopoulou, E., Lalas, D.P., Moschovits, M., Kar a-
The real consumption values of 2011 and the forecasted values giannis, F., Papakonstantinou, D., (2006). Models for mid -term electricity demand
forecasting incorporating weather influences, Energy 31, 208227.
produced by each method are given in Table 4. Their mean abso-
Albayrak, A.S., (2010). ARIMA forecasting of primary energy production and con-
lute mean error values and root mean squared error values are also sumption in Turkey: 19232006, Enerji, piyasa ve dzenleme, vol.1, no.1, 24-50.
given. In forecasting 2011 monthly consumption values Winters Box, G.E.P. and Jenkins, G.M., (1976). Time series analysis: forecasting and control,
additive method performs the best; both MAE and RMSE values Holden Day, San Francisco.
are lower than other methods. SARIMA is the second best per- Ediger, V.., Akar, S.B., (2007). ARIMA Forecasting of Primary Energy Demand by
former. ANNs performance is quite poorer than others. This is Fuel in Turkey, Energy Policy, 35, 1701-1708.
also obvious in figure 23 the ANN forecasts are constantly lower Erdodu, E. (2007). Electricity Demand Analysis Using Cointegration and ARIMA
than the real values. Modeling: A Case Study of Turkey, Energy Policy, Volume 35, 1129-1146.
Hanke, J.E. (2005). Business Forecasting, Pearson Education International, Eight
Edition.
We recommend to use Winters additive method to forecast Prajakta, S., Kalekar, B. (2004). Time series Forecasting using Holt-Winters Exponen-
tial Smoothing, Technology Issue: 04329008 (online)
monthly electricity consumption of Turkey. Our results have
http://www.it.iitb.ac.in/~praj/acads/seminar/04329008_ExponentialSmoothing.pdf
shown that this method is really successful for predicting the real (Access date: January 02, 2012).
consumption values. The forecasted values can be used confidently Russell Cheng's Home Page (online)
for making short term energy planning such as purchasing and http://www.personal.soton.ac.uk/rchc/Teaching/MATH6011/ Forecasting-
selling electricity decisions. Chap3.htm (Access date: January 02, 2012).
Pankratz, A., (1983). Forecasting with Univariate Box-Jenkins Models: Consepts and
Cases, Wiley, New York.
Table 4. The Comparison of 2011 Forecasts Permanasari, A.E., Dayang, R.A.R. and Dominic, P.D.D., (2009). Prediction of
Zoonosis Incidence in Human using Seasonal Auto Regressive Integrated Moving
Winters Winters Average (SARIMA), International Journal of Computer Science and Information
Real ANN SARIMA
Multip. Add. Security, Vol. 5, No. 1.
16926.19 14704.33 16785.68 16774.95 16483.81 Fausett, L.. (1994). Fundamentals of Neural Networks: Architectures, Algorithms and
15392.17 14299.54 15224.35 15315.34 15052.93 Applications, Prentice Hall.
16596.39 13993.00 16057.08 16174.70 15995.09 Zhang, G., Patuwo, B. E., Hu, M. Y., (1998). Forecasting with artificial neural net-
15279.88 13776.85 14851.74 15109.59 15034.08 works: the state of the art, International Journal of Forecasting, 14, 35-62.
15213.85 13684.49 15066.03 15427.42 15429.74
Ghiassi, M., Saidane, H. , Zimbra, D. K. (2005) A dynamic artificial neural network
model for forecasting time series events, International Journal of Forecasting 21,
15636.83 13928.15 15383.88 15873.9 15870.10
341362.
18414.47 15545.35 17226.36 17832.08 17940.77
Haykin, S., (1994). Neural Networks, Maxwell-McMillan, Eight Edition, Ontario-
17971.84 16478.72 17535.16 18233.59 18565.25 Canada, 1-45.
16577.64 14364.38 15495.92 16206.44 16026.07 ztemel, E., (2003). Yapay Sinir Alar, Papatya Yaynclk, Istanbul.
16378.25 13945.84 15583.17 16404.40 15910.24 Engle, R.F., Granger, C.W.J., Hallman, J.J., (1989). Merging short-and long-run
16586.5 13936.01 16257.19 17192.66 15848.78 forecasts: an application of seasonal cointegration to monthly electricity sales fo-
18355.08 13998.89 18081.95 19160.00 17746.06 recasting. Journal of Econometrics 40-1, 4562.
MAE 2222.80 481.72 326.94 459.28 nler, A., (2008). Improvement of energy demand forecasts using swarm intelligence:
The case of Turkey with projections to 2025. Energ. Policy 36, 1937-1944.
RMSE 2375.28 591.29 397.80 487.23
Ediger, V.. and Tatldil, H., (2002). Forecasting the primary energy demand in
Turkey and analysis of cyclic patterns. Energ. Convers. Management, vol. 43,
473-487.
Toksar, M.D., (2009). Estimating the net electricity energy generation and demand
using the ant colony optimization approach: Case of Turkey. Energy Policy 37,
1181-1187.
Mucuk, M. and Uysal, D., (2009). Turkeys Energy Demand, Current Research
Journal of Social Sciences 1(3), 123-128
Kouris, G., (1981). Elasticities - Science or fiction?. Energy Economics, 3:2, 66-126.
Drollas, L.P., (1984). The demand for gasoline: Further evidence. Energy Economics,
6:1, 71-82.
Stewart, J., (1991). Econometrics, Philip Allan: Hemel Hempstead.
Pindyck, R.S., (1979). The Structure of World Energy Demand, Mass.: M.I.T. Press:
Cambridge.
Hamzaebi, . (2007). Forecasting of Turkeys Net Electricity Energy Consumption
on Sectoral Bases, Energy Policy, 35, 2009-2016.
APPENDIX 1
Fig. 23. The Comparison Plot of 2011 Predictions with 2011 Real Values The general SARIMA model is;
126
Forecasting Monthly Electricity Consumption in Turkey
=>
(1 1B12 )(Yt Yt 1 Yt 12 Yt 13 ) ( t 1 t 1 )(1 1B12 )
=>
Yt Yt 1 Yt 12 Yt 13 1Yt 12 1Yt 13 1Yt 24 1Yt 25 t 1 t 13 1 t 1 1 1 t 13
=>
Yt (Yt 1 Yt 12 Yt 13 ) 1(Yt 13 Yt 12 Yt 24 Yt 25) t 1 t 13 1 t 1 1 1 t 13
=>
Yt t 1 t 13 1 t 1 11 t 13 (Yt 1 Yt 12 Yt 13) 1(Yt 13 Yt 12 Yt 24 Yt 25)
127