Next Article in Journal
A Study on Improving Switching Characteristics According to a Circuit Analysis Technique in Converter Applications Using Gallium Nitride Field Effect Transistors
Previous Article in Journal
Fault Identification of Broken Rotor Bars in Induction Motors Using an Improved Cyclic Modulation Spectral Analysis
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Comparison of Forecasting Energy Consumption in East Africa Using the MGM, NMGM, MGM-ARIMA, and NMGM-ARIMA Model

School of Economics and Management, China University of Petroleum (East China), Qingdao 266580, China
*
Author to whom correspondence should be addressed.
Energies 2019, 12(17), 3278; https://doi.org/10.3390/en12173278
Submission received: 7 July 2019 / Revised: 14 August 2019 / Accepted: 20 August 2019 / Published: 26 August 2019
(This article belongs to the Section C: Energy Economics and Policy)

Abstract

:
Forecasting energy demand is the basis for sustainable energy development. In recent years, the new discovery of East Africa’s energy has completely reversed the energy shortage, having turned the attention of the world to the East African region. Systematic research on energy forecasting in Africa, particularly in East Africa, is still relatively rare. In view of this, this study uses a variety of methods to comprehensively predict energy consumption in East Africa. Based on the traditional grey model, this study: (1) Integrated the power coefficient and metabolic principles, and then proposed non-linear metabolic grey model (NMGM) forecasting model; (2) Used Auto Regressive Integrated Moving Average Model (ARIMA) for secondary modeling, and then developed a metabolic grey model-Auto Regressive Integrated Moving Average Model (MGM-ARIMA) and non-linear metabolic grey model-Auto Regressive Integrated Moving Average Model (NMGM-ARIMA) combined models. In terms of the prediction interval, the data for 2000–2017 is a fit to the past stage, while the data for 2018–2030 is used for the prediction of the future stage. To measure the effect of the prediction, the study used the average relative error indicator to evaluate the accuracy of different models. The results indicate that: (1) Mean relative errors of NMGM, MGM-ARIMA, and NMGM-ARIMA are 2.9697%, 2.0969%, and 1.4654%, proving that each prediction model is accurate; (2) Compared with the single model, the combined model has higher precision, confirming the superiority and feasibility of model combination. After prediction, the conclusion shows that East Africa’s primary energy consumption will grow by about 4 percent between 2018 and 2030. In addition, the limitation of this study is that only single variable are considered.

1. Introduction

Energy forecasting is the basis for countries and regions to develop energy development strategies and achieve sustainable energy using. Africa is rich in energy resources. In recent years, the new discovery of energy in East Africa has completely reversed the situation of energy shortage and put the energy industry on the track of rapid development. At the same time, the world has turned its attention to East Africa. However, most of the existing research on energy in Africa focuses on North Africa, Southern Africa and sub-Saharan Africa, which provides a gap for our research [1,2]. Therefore, a comprehensive analysis of East Africa’s energy consumption by various methods will be helpful to the mastery of East Africa’s energy in the future.
Taking East Africa as an example, this work forecasts the primary energy demand from 2018 to 2030 with the help of the primary energy consumption from 2000 to 2017 published by BP Statistical Review of World Energy 2018. Forecasting results will provide insights into rational allocation for existing resources in East Africa, which will be conducive to coping with future opportunities and challenges and formulating sustainable development strategies. In this paper, two categories and five methods are utilized to predict the primary energy demand in East Africa. First, NMGM (non-linear metabolic grey model) forecasting model is proposed by integrating the power coefficient and metabolic principles to grey model (GM) model. Then, based on the strategy of quadratic modeling, the combined metabolic grey model-Auto Regressive Integrated Moving Average Model (MGM-ARIMA) and non-linear metabolic grey model-Auto Regressive Integrated Moving Average Model (NMGM-ARIMA) models are developed. According to the forecasting results of various methods, the future energy consumption in East Africa will be more comprehensively reflected.
The structure of this paper is as follows: the second section mainly reviews the research on energy forecasting in Africa and the development and application of GM and ARIMA Model. The third section mainly explains the prediction principles and steps of the five methods. The fourth section shows the actual prediction process and related parameters. Fifth section summarizes the entire paper.

2. Literature Review

This section begins with a review and discussion of African energy forecasting studies. Then the development of Grey model and ARIMA model and related applications in recent years are discussed. Finally, based on the above analysis, this section gives a summary of the existing literature.

2.1. Review of Energy Research in Africa

For the whole of Africa, Mulugetta et al. [3] made an economic assessment of biodiesel and studied the energy transition [4]. Sanoh et al. [5] analyzed the optimal project for supplying electricity to national economies by using high voltage lines. Mentis et al. [6] assessed the potential of wind energy technology. Ouedraogo et al. [7] studied the long-term sustainable electricity supply and demand. In addition, other scholars have studied the issue of renewable energy technologies [8] and development [9]. Besides, energy research in Africa is generally carried out by region, i.e., North Africa, West Africa, East Africa, Central Africa, Southern Africa, and sub-Saharan Africa.
For North Africa, Tsikalakisa et al. [10] studied the best way of use solar energy in MENA countries [11]. Lacher et al. [12] discussed potential threats to energy security and the development of renewable energy plans. For West Africa, Gnansounoua [13] discussed the prospects for the development of the West African electric power industry. Lee and Leal [14] provided a systematic review of the energy planning (EP) activities being conducted in the Economic Community of West African States (ECOWAS). Ameyaw et al. [15] predicted and discussed the relationship between CO2 Emissions and GDP in five West African countries. For East Africa, James [16] discussed energy transformation in rural. Tigabu et al. [17] analyzed technology innovation systems (TIS) by comparing Kenya with Rwanda. For middle Africa, Kenfack et al. [18] used Cameroon as an example to discuss renewable energy and energy efficiency in Central Africa.For Southern Africa, there are relatively few studies. Conway et al. [19,20] discussed the relevance between climate and water–energy–food. Then they studied hydroelectric plans in Southern and Eastern Africa.Rafeya et al. [21] studied the implications of the Medupi coal-fired power plant in South Africa Fant et al. [22] assessed the impact of climate change on wind and solar energy resources. For sub-Saharan Africa, Bazilian et al. [23] used long-term forecasting methods to forecast installed generation capacity. Esso [24] studied the relationship between threshold cointegration, causality, energy use and growth. Al-mulali [25] and Kivyiroab et al. [26] studied the relationship between energy consumption and CO2 emissions and economic growth, respectively. Asumadu-Sarkodie et al. [27] forecasted Nigeria’s energy consumption by an econometric approach. Emodia et al. [28] explored the relationship between energy supply and demand and carbon emissions from 2010 to 2040. Another researcher studied the relationship between Nigeria’s carbon dioxide emissions and GDP [29]. Wu et al. [30] predicted South Africa’s carbon dioxide emissions. Lebotsa et al. [31] tested the forecasting model using South Africa’s electricity consumption and made a prediction of short-term electricity demand. Sigauke et al. [32] predicted daily peak load demand in South Africa. Moreover, scholars have studied the price and income elasticity of South Africa’s oil import demand [33], the economic growth and Electricity consumption [34].
In summary, a review of the literature on energy forecasting in Africa reveals that there is relatively more energy research in North Africa and sub-Saharan Africa and less systematic research on primary energy consumption projections in East Africa.

2.2. Review of Grey Model

The grey theory, first put forward by Professor Deng [35], is the theory that some of the information is unclear and has an uncertain phenomenon. The resulting Grey Model is commonly used in the field of prediction. Xie et al. [36] used grey model to predict China’s energy demand and self-sufficiency rate. Mao [37] used GM (1,1) in vehicle fatality risk estimation and got accurate prediction. Jouini et al. [38] applied GM(1,1) model to forecast historical medical sensor data towards system preventive in smart home e-health for elderly person. Jiang et al. [39] applied grey model to the operating energy performance of air cooled water chillers. Although GM is widely used in forecasting, there is room for improvement. As for the GM model, the data obtained by the prediction are not fully utilized. Therefore MGM (grey model of metabolism) improved the grey model according to the principle of metabolic, added the latest predicted data into the original data for grey prediction again, and so on to obtain the predicted value of the target. At present, it is also commonly used in the field of prediction. Wang et al. [40] applied GM and MGM to forecast the consumption of coal in the US. Truong et al. [41] studied the feasibility of applying MGM (1,1) to real-time control of wave energy converters (WECs). Tang et al. [42] combined MGM with BP neural network to construct a tandem Grey Neural Network model for load forecasting of smart grid. Lee et al. [43] used MGM model and GM model to evaluate air quality in traffic tunnels. Wang et al. [44] applied MGM to forecast future energy consumption in China and India. Akay et al. [45] used Grey prediction with rolling mechanism (GPRM) to forecast the Turkey’s total and industrial electricity consumption. Kumar et al. [46] used a variety of models to predict India’s energy consumption. Among them, MGM was used to predict India’s coal consumption. Despite the fact that MGM models are used more in energy prediction, they become inaccurate when the time series is nonlinear. By adding the power factor β to the MGM model, a new model, the non-linear metabolic grey model (NMGM), has been created. It is a nonlinear prediction method, which obtains both linear and nonlinear prediction results by proper adjustment of power coefficient, so that the results are more accurate. Today, energy forecasting is widely available. Wang et al. [47] established the NMGM model and applied it to the prediction of shale oil production in the United States and compared with other three model [48]. Later, NMGM served several times in the field of energy forecasting [49].
Furthermore, other researchers have enhanced the Grey model. For instance:Lee et al. [50] combined genetic programming with grey model to improve the grey model. Bahrami et al. [51] used PSO (particle swarm optimization) algorithm to improve the grey model and used the model to forecast the short-term electric load. Ding et al. [52] improved grey model byalterable weighted coefficients and rolling mechanism. Chen [53] investigates forecasting by using novel nonlinear grey bernoulli model (NGBM). Xu et al. [54] proposed a adaptive grey model with buffered rolling method. Zeng et al. [55] proposed a new multivariate grey model by combining multivariate grey model with univariate grey model. Li et al. [56] used BP (Back Propagation) to improve the NMGM model. To sum up, after years of development, the grey model has been optimized in more and more ways, and the prediction effect has become better and better.

2.3. Review of ARIMA Model

ARIMA Model is recognized as Autoregressive Integrated Moving Average Model and abbreviated as ARIMA. It is a famous time series prediction method proposed by Box and Jenkins in the early 1970s [57]. The basic idea of the ARIMA model is to process the data sequence formed by the predicted object into a random sequence over time, which is roughly described by a precise mathematical model. Once identified, the model can predict future values from the past and present values of the time series. Nowadays, ARIMA model is applicable to ecological, economic, energy and other aspects of time series prediction. In terms of ecology, Kumar et al. [58] applied ARIMA to the prediction of atmospheric pollutants (Ozone, carbon monoxide, nitric oxide, nitrogen dioxide) and could effectively predict short-term atmospheric pollutants. Nieto et al. [59] used four models to predict PM10 concentration, including ARIMA. Aasim et al [60] proposed combined repeated wavelet transform and ARIMA to forecast short-term wind speed. S. Swain et al. [61] applied ARIMA to forecast Monthly Rainfall. On the economic front, Nyangarika et al. [62] used the modified ARIMA model to predict oil prices. Prasad et al. [63] applied ARIMA model to the prediction of India’s total export value. Hossain et al. [64] used ARIMA to forecast the prices of motor, mash and mung. For energy, Edigera et al. [65] used ARIMA to forecast Turkey’s primary energy consumption and found that the ARIMA forecasting of the total primary energy demand appears to be more reliable than the summation of the individual forecasts. Musaylh et al. [66] used ARIMA to forecast short-term electricity demand in Australia. Jiang [67] take advantage of ARIMA to calculate China’s coal consumption and price from 2016 to 2030. Mehedintu et al. [68] used five single methods to predict the share of renewable energy consumption in total consumption in 2020, including ARIMA model. It can be seen that ARIMA model is widely used, and the accuracy of prediction results is also accepted by researchers. Because the application of ARIMA model has been paid a lot of attention, so many researchers have made optimization and improvement of the ARIMA model. For instance, Wang et al. [69] combined ARIMA with MNGM to establish the MNGM-ARIMA model that produced more accurate forecasting results. Ludlow and Enders [70] found that a non-linear time-series can be represented by a deterministic time-dependent coefficient model without first specifying the nature of the non-linearity. Chen et al. [71] proposed a nonlinear ARIMA model based on SVR (support vector regression). Zhang et al. [72] combined EEMD and ARIMA to establish the EEMD-ARIMA model to predict hotel daily occupancy rate, which has obvious advantages in short-term prediction Celestino et al. [73] combined ARIMA and SVM models for the remaining useful life of aircraft engines forecasting. Lee et al. [74] combined ARIMA model with genetic programming to improve both models and commit the effectiveness of the new model. Baraka and Sadegh [75] proposed a hybrid ARIMA-ANFIS (Adaptive Neuro Fuzzy Inference System) algorithm which based on three different pattern. Dindarloo [76] compared ARIMA and ANN (Artificial Neural Network). Daz-Roblesa et al. [77] combined ARIMA with ANN (Artificial Neural Network) to predict particulate matter in urban areas. Wang et al. [78] combined ARIMA with ANN to forecast shale gas monthly production in Pennsylvania and Texas of the United States and compared with single model and the result of application shows the advantages of this method. Zhang et al. [79] improved MEEMD-ARIMA model by using PE. Matyjaszek et al. [80] used the full time series, GRNN (generalized regression neural network) models to improve ARIMA model. These improvements make ARIMA’s predictions more convincing.
Although GM and ARIMA model have been widely used in real life, there is still room for improvement. Therefore, the model needs to be strengthened to get more accurate predictions. At present, there are roughly three improved methods. First, put together a few single models to predict and compare prediction accuracy, and finally put the results together to show or select the most accurate model. Secondly, the theory of single model is improved. For example, the MGM model, the NMGM model. Third, the combination of more than two models complements the advantages to achieve more accurate results.
Based on this, this study has the following contributions: (1) From the existing research, it was found that the systematic prediction of energy resources in East Africa is a gap. This study predicts primary energy demand in East Africa from 2018 to 2030. The forecasting results will be helpful for a comprehensive understanding of the current energy situation in East Africa and for the prospects of energy development.
(2) For more accurate prediction, various prediction methods have been developed and used in this study. On the one hand, NMGM (non-linear metabolic grey) forecasting model was proposed by integrating the power coefficient and metabolic principles to GM model. On the other hand, the improved grey model and ARIMA model are combined by the strategy of secondary modeling, thus resulting in MGM-ARIMA and NMGM-ARIMA models.

3. Method

This section will detail the operation of five models used to predict primary energy consumption in East Africa one by one. Five are MGM, NMGM, ARIMA MGM-ARIMA, and NMGM-ARIMA, of which the latter two models are combinations of the first three models. The relevant formulas and steps will be presented. In addition, a formula for measuring the prediction accuracy of the five models is attached at the end of this section.
For ease of understanding, Table 1 presents the meaning of the relevant symbols in the formulas.

3.1. MGM Model

MGM model is a shorthand for metabolic grey model. This method uses the obtained data sequence to establish the grey differential equation. The objective is to obtain the law of these data and predict the future data. Assume that the original data sequence is: X(0)={X(0)(1), X(0)(2), X(0)(3),…, X(0)(n)}. In most cases, the original data’s rules are not obvious, and cannot be directly used for modeling. For the sake of getting a more stable time series data, we accumulate it and get the once accumulated sequence (1-AGO): X(1)={X(1)(1), X(1)(2), X(1)(3),…, X(1)(n)}. Among them, X ( 1 ) = i = 1 m X ( 1 ) ( i ) , k = 1 , 2 , 3 n .
After that, the following differential equation is established by means of the obtained cumulative sequence:
d X d t + a X ( 1 ) ( t ) = b
For differential Equation (1), the cumulative matrix D, constant term Cn and the values of ‘a’ and ‘b’ are obtained by using the least square method. The construction results are as follows:
D = [ 1 2 ( X ( 1 ) ( 1 ) + X ( 1 ) ( 2 ) ) 1 1 2 ( X ( 1 ) ( 2 ) + X ( 1 ) ( 3 ) ) 1 1 2 ( X ( 1 ) ( n 1 ) + X ( 1 ) ( n ) ) 1 ]
C n = [ X ( 0 ) ( 2 ) X ( 0 ) ( 3 ) X ( 0 ) ( n ) ] T
[ a b ] = ( D T D ) 1 D T C n
Put the calculated value of “a” and “b” into the Equation (1) to get the result. Since the results are also cumulative sequences, the predicted values are obtained by cumulative subtraction.
The forecast is calculated as follows:
X ^ ( 0 ) ( k ) = X ^ ( 1 ) ( k ) X ^ ( 1 ) ( k 1 ) ( k = 2 , 3 , 4 n )

3.2. NMGM Model

The NMGM model is called the nonlinear metabolic grey model, which is a nonlinear prediction method and an improvement of MGM. The difference between NMGM and MGM is the addition of power factor “ β ”. When the data is non-linear, MGM becomes inaccurate. Therefore, by properly adjusting the power coefficient, the results will be more accurate when considering linearity and nonlinearity. In general, grey predictions are calculated using 4 to 10 data, and here are five data for convenience. Suppose the original time series data is: X = { X ( 1 ) X ( 2 ) X ( n ) } . The steps of the calculation are as follows:
i. Extract 5 pieces of data from the original data:
X ( 0 ) = { X ( 0 ) ( i ) X ( 0 ) ( i + 1 ) X ( 0 ) ( i + 2 ) X ( 0 ) ( i + 4 ) } i = ( 1 , 2 , n 4 )
ii. Get the cumulative sequence:
X ( 1 ) = { X ( 1 ) ( 1 ) X ( 1 ) ( 2 ) X ( 1 ) ( n ) }
Based on (7), get the linear addition sequence:
Z ( 1 ) k = 1 2 ( X ( 1 ) ( k 1 ) + X ( 1 ) ( k ) )
iii. On the basis of (7) and (8), the differential equations of NMGM are as follows:
X ( 0 ) ( k ) + a ( z ( 1 ) ( k ) ) β = b
d X ( 1 ) d t + a ( X ( 1 ) ( t ) ) β = b
After the differential equations are listed, the following equations are used to solve them:
D = [ ( z ( 1 ) ( 2 ) ) β 1 ( z ( 1 ) ( 3 ) ) β 1 ( z ( 1 ) ( n ) ) β 1 ]
C n = [ X ( 0 ) ( 2 ) X ( 0 ) ( 3 ) X ( 0 ) ( n ) ] T
β = [ a b ] = ( D T D ) 1 D T C n
Referring to the fourth-order Runge–Kutta, the equation is
d X d t = F ( t , X )
{ L 1 = F ( t n , X n ) L 2 = F ( t n + h 2 , X n + h 2 L 1 ) L 3 = F ( t n + h 2 , X n + h 2 L 2 ) L 4 = F ( t n + h , X n + h L 3 ) X n + 1 = X n + h 6 ( L 1 + 2 L 2 + 2 L 3 + L 4 )
iv. The cumulative sequence of the predicted value can be obtained from the iii, and the predicted values are obtained by deducting it. The formula is as follows:
X ^ ( 0 ) ( k + 1 ) = X ^ ( 1 ) ( k + 1 ) X ^ ( 1 ) ( k )

3.3. ARIMA Model

The principle of ARIMA is to transform the non-stationary time series into stationary time series, and then return its lag value and random error term and establish a model. In fact, ARIMA model consists of auto-regressive (AR) model and moving average (MA) model. On the one hand, AR can describe the relationship between the current value and the historical value. On the other hand, the historical time data of the variable itself can also be used to estimate and predict itself. The MA model is devoted to the accumulation of error terms from the regression model, which can effectively eliminate the random fluctuations in the prediction.
The p-order autoregressive formula AR (p) is:
Y t * = μ + φ 1 Y t 1 + φ 2 Y t 2 + + φ p Y t p + ε t
Where the ε t is the error term.
The q-order moving average formula is MA(q) for:
Y t * = ε t θ 1 Y t 1 θ 2 Y t 2 θ p Y t p
By combining AR (p) and MA (q), the autoregressive average moving formula ARMA (p, q) is obtained as follows:
Y t * = φ 1 Y t 1 + φ 2 Y t 2 + + φ p Y t p + θ 0 ε t θ 1 Y t 1 θ 2 Y t 2 θ p Y t p + μ t
Firstly, aiming to meet the requirement of stability, the order in which the time series becomes smooth is denoted as “d”. Secondly, the two specific parameters related to AR and MA are “p” and “q”. “P” is called autoregressive term, and “q” is called moving average term. Therefore, the ARIMA model can be written as ARIMA (p, d, q). In addition, set the original time series as Y t = [ Y ( 0 ) ( 1 ) Y ( 0 ) ( 2 ) Y ( 0 ) ( n ) ] . The forecast result is Y t * = [ Y ( 1 ) ( 1 ) Y ( 1 ) ( 2 ) Y ( 1 ) ( n ) ] . In the process of solving the Equation (19), it is found that Y t * can be represented by Y t , the specific formula is as follows:
Y t * = ( 1 B ) d Y t
B = [ 1 2 ( Y ( 1 ) ( 1 ) + Y ( 1 ) ( 2 ) ) 1 1 2 ( Y ( 1 ) ( 2 ) + Y ( 1 ) ( 3 ) ) 1 1 2 ( Y ( 1 ) ( n 1 ) + Y ( 1 ) ( n ) ) 1 ]

3.4. MGM-ARIMA and NMGM-ARIMA Model

Based on three single MGM, NMGM, and ARIMA models, this study conducted a combination of models and proposed MGM-ARIMA and NMGM-ARIMA. The principle is to use the MGM and NMGM for initial forecasting, and then recalibrate the error series by ARIMA, so as to reduce the error and get more accurate prediction results. Therefore, the prediction steps for combining models include three parts. First of all, the predicted value is obtained and then the error is corrected and new error sequence is obtained. Finally, the novel predicted value can be obtained by subtracting the predicted value obtained by MGM from the new relative error time series.
For ease of understanding, set the error series to be: E ( 0 ) = { E ( 0 ) ( 1 ) E ( 0 ) ( 2 ) E ( 0 ) ( 2 ) }
The corrected error is: E * ( 0 ) = { E * ( 0 ) ( 1 ) E * ( 0 ) ( 2 ) E * ( 0 ) ( n ) }
Figure 1 shows this process.

3.5. The Comparison of Five Models and Formulas for Measuring Accuracy

Based on the interpretation of these five methods, the conclusions shown in Table 2 are derived. Besides, mean absolute per error (MAPE) is used to measure the accuracy of the model. The formula is Equation (22).
MAPE = 1 n i = 1 n y ( i ) x ( i ) x ( i )
Accordingly, the predicted goodness can also be calculated based on the relative error. The formula is as follows:
Goodness = 1 APE = 1 | Prediction-True   value | True   value

4. Empirical Results and Discussion

Figure 2 shows the primary energy consumption in East Africa and the growth rates from 2000 to 2017 (data from the BP Statistical Review of World Energy 2018). The data demonstrates that the overall trend in primary energy consumption in East Africa is increasing. Since 2008, the overall trend has remained relatively stable.
Built on the explanation of Figure 2. This section mainly demonstrates the prediction process of the five models, MGM, NMGM, ARIMA, MGM-ARIMA, and NMGM-ARIMA, the generation of relevant parameters and the fitting data. In addition, after the fitting results are obtained, the accuracy of the five models is analyzed and compared with the original data. Then make a forecast of the energy consumption of East Africa from 2018 to 2030.

4.1. Forecasting Process of MGM Model

Using the raw data, first step adds up to a cumulative time series. As shown in Figure 3, the cumulative processing of the data becomes more stable.
In the second step, the accumulated sequence is used to establish the differential equation, and as mentioned in Equation (4), the parameters “a” and “b” are calculated by the least square method, as shown in Table 3.
Next, this study used the values of parameters “a” and “b” obtained and EXCEL to obtain the fitting value and predicted value.

4.2. Forecasting Process of NMGM Mode

As described in the method, the actual operation process of NMGM’s prediction is generally divided into two steps. In the first step, the five data of the original time series are operated to get the fitting value from 2000 to 2017 through the cycle. The second step is to use the data from 2013 to 2017 to get the predicted value for 2018, and then put the predicted value of 2018 into the original data, namely metabolism. In other words, the predicted value needs to be used as the known data and used for prediction to get the predicted value of 2018 to 2030.
As mentioned above, a series of power coefficient “β” values can be obtained by using Matlab R2018b, the same goes for a and b. as shown in Table 4. “ β ”, “a” and “b” values in the table can be used to obtain the fitting values and predicted values.

4.3. Forecasting Process of ARIMA Model

ARIMA model requires smooth raw data. To stabilize the data, the unit root test, autocorrelation function (ACF) and partial autocorrelation function (PACF) can be the tool. In this work, Eviews 7 was used to obtain the order of the difference required, that is, the value of “d”. As shown in Table 5, the first-order difference is performed on the original data. If the test value is less than three critical values, data series pass the square root test. Therefore, the value of “d” is determined to be 1.
Since the value of “d” is 1, the autocorrelation function diagram and partial autocorrelation function diagram are drawn by using Eviews 7, as shown in Figure 4. The autocorrelation function graph and partial correlation function diagram of the original time series under the difference of order 1 show that neither of the two functions has the characteristic of 0 after a certain order, and neither of them has the property of censoring, but has the property of trailing. According to the model selection rules, ARIMA model should be selected for prediction.
Next step requires to determine the values of “p” and “q” parameters, aiming to minimize the error of the prediction results. In this step, ARIMA modeler of time series model in IBM SPSS statistics is used to model. In order to obtain more accurate fitting value, the optimal model with high fitting accuracy is selected by referring to the following principles: First, the higher the fixed value R2 is, the better the fitting degree is; Second, the larger the decision coefficient R2 is, the better the fitting degree of the model is; Third, the larger the root mean square error (RMSE) is, the greater the degree of data dispersion is, the worse the fitting degree of the model is, the lower the reliability is. Fourth, the smaller the maximum absolute prediction error MAPE is, the better the fitting degree of the model is. After repeated experiments, the final selected ARIMA (11,1,2). The data required for judgment is shown in Table 6.

4.4. Forecasting Process of MGM-ARIMA Model

The first step of MGM-ARIMA is to obtain the residual by subtracting the original data from the fitted values obtained from MGM model. After calculation, the fitting values, original data and absolute errors of MGM are shown in Table 7.
In the second step, the ARIMA model is used to correct the residual. Firstly, the difference is used to stabilize the relative error. The square root test results are shown in Table 8. We found that the zero-order difference of the relative error has already passed the square root test, so the original error is stable without difference, that is, “d” is 0.
Based on the above analysis, the autocorrelation function diagram and part of autocorrelation function diagram are drawn by using “d” value through Eviews 7, as shown in Figure 5. It can be seen that under the first-order difference of the original time series, the autocorrelation function graph and the partial correlation function graph neither has the characteristics of zero after a certain order, nor has the truncation property, but has the trailing property. According to the model selection rules, ARIMA model is selected.
To get more accurate results, the ARIMA model of time series model in data mining and analysis tool IBM SPSS statistics is used to model, and after continuous testing, MGM-ARIMA (3, 0, 9) model is selected, and the required data is shown in Table 9. For comparison, we put the relative error of MGM and corrected error into Figure 6. Figure 6 shows that the relative error of MGM becomes smoother after correction by the ARIMA model, indicating that the MGM-ARIMA model is more accurate than the MGM model.

4.5. Forecasting Process of NMGM-ARIMA Model

As shown in the method, the NMGM-ARIMA model is like the prediction process of the MGM-ARIMA model. Therefore, the prediction process is as follows: first step is to obtain the NMGM-ARIMA residual time series. The fitting value, raw data, and residuals of NMGM are calculated as shown in Table 10.
In the second step, ARIMA is used to correct the residuals. First, the difference makes the residual stable. The residual of first-order differential has passed the square root test, that is, “d” for 1. Square root test results as shown in Table 11.
Based on the above analysis, “d” value is used to draw autocorrelation function and partial autocorrelation function. As shown in Figure 7, the autocorrelation function and partial correlation function graphs of the original time series under first order difference show that the two functions are not truncated after a certain period but have tailing property.
Analogous to MGM-ARIMA, in order to obtain more accurate results, the ARIMA modeler of the time series model in IBM SPSS statistics was used for modeling. After continuous testing, the NMGM-ARIMA (4,1,1) model was finally selected, and the required data was determined in Table 12. To facilitate comparison, we put the residual of NMGM and the corrected error into Figure 8. Figure 8 shows that the residuals of NMGM becomes more stable after the correction of ARIMA model.

4.6. Comparison of Fitting Results by Multiple Model

This section compares the accuracy of the five models and analyzes the performance of the five models, as well as the advantages of the combined model over the single model. Table 13 shows the fitting results of five models. Figure 9 and Figure 10 shows our comparative results.
It can be seen roughly from Figure 7 and Figure 8 that the deviation of MGM and NMGM is reduced after being corrected by ARIMA model at some points, which shows that it is reasonable and effective to use ARIMA to correct MGM and NMGM. In other words, the combined model is more accurate than the single model. As can be seen from Figure 9, there are not many differences between the absolute fit of the five models and the raw data. In order to see the accuracy of the five models more accurately, we explain them using formulas. First of all, as mentioned in the Method part, the MAPE of five models is calculated by using Excel. As show in Table 14, firstly, the accuracy of NMGM-ARIMA is the highest, followed by MGM-ARIMA and ARIMA, and finally MGM and NMGM; secondly, the combined model does improve the accuracy of a single grey model. Thirdly, criteria of MAPE is shown as Table 15, which is also the standard of the acceptability of the forecasting error. And the MAPE of the five models is lower than 5%, which shows that the five models are quite reliable.
Finally, the prediction errors of each model are calculated by formula (22). The accuracy of the five models is shown in Figure 11. As can be seen from the chart, although the accuracy of all models varies every year, it still exceeds 90%. This shows that these five models are very accurate and can be used for prediction.

4.7. Prediction Results

From the above analysis, the prediction results obtained by these five models have high accuracy. In this paper, the primary energy consumption in East Africa from 2018 to 2030 can be predicted Table 16 shows the forecast results of the five models. Figure 12 shows the predicted results of the five models.

5. Conclusions

In this paper, the primary energy demand of East Africa in the next 13 years is predicted by virtue of BP Statistical Review of World Energy 2018. The main conclusions (findings) are as follows:
(1) In this study, five methods (MGM, NMGM, ARIMA, MGM-ARIMA, and NMGM-ARIMA) are used to fit the primary energy consumption of East Africa from 2000 to 2017. On the one hand, the average relative errors of the five models are 2.8216%, 2.9697%, 1.5013%, 2.0969%, and 1.4654%, respectively. The average relative errors of the five models are all less than 3%. This shows that the five models are suitable for prediction and can produce reliable prediction information. On the other hand, compared with MGM and NMGM models, the average relative errors of models after ARIMA correction decreased from 2.8216%, 2.9697% to 2.0969%, 1.4624%, which showed the advantages of the combined model respectively.
(2) This work studies the future trend of primary energy consumption in East Africa. According to the fitting results of five models, future average growth rate of primary energy demand in East Africa is about 4% in the future. In short, this means that the demand for primary energy in East Africa will continue to increase from 2018 to 2030, and East Africa has great potential in energy market.
In addition, the results showed that MGM is more accurate than NMGM that may be explained by the linearity of raw data, whilst there are some cusps that means nonlinearity. But after ARIMA correction, the NMGM-ARIMA is more accurate than MGM-ARIMA. The results show that NMGM-ARIMA is an improvement of MGM-ARIMA and MGM when data is nonlinear. And further research is needed on the application and improvement of MGM and NMGM.

Author Contributions

X.H. performed the experiments, analyzed the data, contributed reagents/materials/analysis tools, and wrote the paper; R.L. conceived and designed the experiments and wrote the paper. All authors read and approved the final manuscript.

Funding

The current work is supported by “the Fundamental Research Funds for the Central Universities (18CX04009B)”.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Madubansi, M.; Shackleton, C. Changing energy profiles and consumption patterns following electrification in five rural villages, South Africa. Energy Policy 2006, 34, 4081–4092. [Google Scholar] [CrossRef]
  2. Inglesi-Lotz, R. The evolution of price elasticity of electricity demand in South Africa: A Kalman filter application. Energy Policy 2011, 39, 3690–3696. [Google Scholar] [CrossRef] [Green Version]
  3. Mulugetta, Y. Evaluating the economics of biodiesel in Africa. Renew. Sustain. Energy Rev. 2009, 13, 1592–1598. [Google Scholar] [CrossRef]
  4. Sokona, Y.; Mulugetta, Y.; Gujba, H. Widening energy access in Africa: Towards energy transition. Energy Policy 2012, 47, 3–10. [Google Scholar] [CrossRef]
  5. Sanoh, A.; Kocaman, A.S.; Kocal, S.; Sherpa, S.; Modi, V. The economics of clean energy resource development and grid interconnection in Africa. Renew. Energy 2014, 62, 598–609. [Google Scholar] [CrossRef]
  6. Mentis, D.; Hermann, S.; Howells, M.; Welsch, M.; Siyal, S.H. Assessing the technical wind energy potential in Africa a GIS-based approach. Renew. Energy 2015, 83, 110–125. [Google Scholar] [CrossRef]
  7. Ouedraogo, N.S. Modeling sustainable long-term electricity supply-demand in Africa. Appl. Energy 2017, 190, 1047–1067. [Google Scholar] [CrossRef]
  8. Barry, M.L.; Steyn, H.; Brent, A. Selection of renewable energy technologies for Africa: Eight case studies in Rwanda, Tanzania and Malawi. Renew. Energy 2011, 36, 2845–2852. [Google Scholar] [CrossRef] [Green Version]
  9. Schwerhoff, G.; Sy, M. Financing renewable energy in Africa—Key challenge of the sustainable development goals. Renew. Sustain. Energy Rev. 2017, 75, 393–401. [Google Scholar] [CrossRef]
  10. Tsikalakis, A.; Tomtsi, T.; Hatziargyriou, N.; Poullikkas, A.; Malamatenios, C.; Giakoumelos, E.; Jaouad, O.C.; Chenak, A.; Fayek, A.; Matar, T.; et al. Review of best practices of solar electricity resources applications in selected Middle East and North Africa (MENA) countries. Renew. Sustain. Energy Rev. 2011, 15, 2838–2849. [Google Scholar] [CrossRef]
  11. Komendantova, N.; Patt, A.; Barras, L.; Battaglini, A. Perception of risks in renewable energy projects: The case of concentrated solar power in North Africa. Energy Policy 2012, 40, 103–109. [Google Scholar] [CrossRef]
  12. Lacher, W.; Kumetat, D. The security of energy infrastructure and supply in North Africa: Hydrocarbons and renewable energies in comparative perspective. Energy Policy 2011, 39, 4466–4478. [Google Scholar] [CrossRef]
  13. Gnansounou, E.; Bayem, H.; Bednyagin, D.; Dong, J. Strategies for regional integration of electricity supply in West Africa. Energy Policy 2007, 35, 4142–4153. [Google Scholar] [CrossRef]
  14. Lee, N.; Leal, V. A review of energy planning practices of members of the Economic Community of West African States. Renew. Sustain. Energy Rev. 2014, 31, 202–220. [Google Scholar] [CrossRef]
  15. Ameyaw, B.; Yao, L. Analyzing the Impact of GDP on CO2 Emissions and Forecasting Africa’s Total CO2 Emissions with Non-Assumption Driven Bidirectional Long Short-Term Memory. Sustainability 2018, 10, 3110. [Google Scholar] [CrossRef]
  16. Murphy, J.T. Making the energy transition in rural East Africa: Is leapfrogging an alternative? Technol. Forecast. Soc. Chang. 2001, 68, 173–193. [Google Scholar] [CrossRef]
  17. Tigabu, A.D.; Berkhout, F.; Van Beukering, P. The diffusion of a renewable energy technology and innovation system functioning: Comparing bio-digestion in Kenya and Rwanda. Technol. Forecast. Soc. Chang. 2015, 90, 331–345. [Google Scholar] [CrossRef]
  18. Kenfack, J.; Fogue, M.; Hamandjoda, O.; Tatietse, T.T. Promoting renewable energy and energy efficiency in Central Africa. In Proceedings of the World Renewable Energy Congress-Sweden, Linköping, Sweden, 8–13 May 2011; pp. 2602–2609. [Google Scholar]
  19. Conway, D.; Van Garderen, E.A.; Deryng, D.; Dorling, S.; Krueger, T.; Landman, W.; Lankford, B.; Lebek, K.; Osborn, T.; Ringler, C.; et al. Climate and southern Africa’s water–energy–food nexus. Nat. Clim. Chang. 2015, 5, 837. [Google Scholar] [CrossRef]
  20. Conway, D.; Dalin, C.; Landman, W.A.; Osborn, T.J. Hydropower plans in eastern and southern Africa increase risk of concurrent climate-related electricity supply disruption. Nat. Energy 2017, 2, 946–953. [Google Scholar] [CrossRef]
  21. Rafey, W.; Sovacool, B.K. Competing discourses of energy development: The implications of the Medupi coal-fired power plant in South Africa. Glob. Environ. Chang. 2011, 21, 1141–1151. [Google Scholar] [CrossRef]
  22. Fant, C.; Schlosser, C.A.; Strzepek, K. The impact of climate change on wind and solar resources in southern Africa. Appl. Energy 2016, 161, 556–564. [Google Scholar] [CrossRef] [Green Version]
  23. Bazilian, M.; Nussbaumer, P.; Rogner, H.H.; Brew-Hammond, A.; Foster, V.; Pachauri, S.; Williams, E.; Howells, M.; Niyongabo, P.; Musaba, L.; et al. Energy access scenarios to 2030 for the power sector in sub-Saharan Africa. Util. Policy 2012, 20, 1–16. [Google Scholar] [CrossRef] [Green Version]
  24. Esso, L.J. Threshold cointegration and causality relationship between energy use and growth in seven African countries. Energy Econ. 2010, 32, 1383–1391. [Google Scholar] [CrossRef]
  25. Al-Mulali, U.; Sab, C.N.B.C. The impact of energy consumption and CO2 emission on the economic growth and financial development in the Sub Saharan African countries. Energy 2012, 39, 180–186. [Google Scholar] [CrossRef]
  26. Kivyiro, P.; Arminen, H. Carbon dioxide emissions, energy consumption, economic growth, and foreign direct investment: Causality analysis for Sub-Saharan Africa. Energy 2014, 74, 595–606. [Google Scholar] [CrossRef]
  27. Asumadu-Sarkodie, S.; Owusu, P.A. Forecasting Nigeria’s energy use by 2030, an econometric approach. Energy Sources Part B Econ. Plan. Policy 2016, 11, 990–997. [Google Scholar] [CrossRef]
  28. Emodi, N.V.; Emodi, C.C.; Murthy, G.P.; Emodi, A.S.A. Energy policy for low carbon development in Nigeria: A LEAP model application. Renew. Sustain. Energy Rev. 2017, 68, 247–261. [Google Scholar] [CrossRef]
  29. Rafindadi, A.A. Does the need for economic growth influence energy consumption and CO2 emissions in Nigeria? Evidence from the innovation accounting test. Renew. Sustain. Energy Rev. 2016, 62, 1209–1225. [Google Scholar] [CrossRef]
  30. Wu, L.; Liu, S.; Liu, D.; Fang, Z.; Xu, H. Modelling and forecasting CO2 emissions in the BRICS (Brazil, Russia, India, China, and South Africa) countries using a novel multi-variable grey model. Energy 2015, 79, 489–495. [Google Scholar] [CrossRef]
  31. Lebotsa, M.E.; Sigauke, C.; Bere, A.; Fildes, R.; Boylan, J.E. Short term electricity demand forecasting using partially linear additive quantile regression with an application to the unit commitment problem. Appl. Energy 2018, 222, 104–118. [Google Scholar] [CrossRef] [Green Version]
  32. Sigauke, C.; Chikobvu, D. Daily peak electricity load forecasting in South Africa using a multivariate non-parametric regression approach. ORiON 2010, 26. [Google Scholar] [CrossRef] [Green Version]
  33. Ziramba, E. Price and income elasticities of crude oil import demand in South Africa: A cointegration analysis. Energy Policy 2010, 38, 7844–7849. [Google Scholar] [CrossRef]
  34. Odhiambo, N.M. Electricity consumption and economic growth in South Africa: A trivariate causality test. Energy Econ. 2009, 31, 635–640. [Google Scholar] [CrossRef]
  35. Deng, J. Grey System Fundamental Method; Huazhong University of Science and Technology: Wuhan, China, 1982. [Google Scholar]
  36. Xie, N.M.; Yuan, C.Q.; Yang, Y.J. Forecasting China’s energy demand and self-sufficiency rate by grey forecasting model and Markov model. Int. J. Electr. Power Energy Syst. 2015, 66, 1–8. [Google Scholar] [CrossRef]
  37. Kang, J.; Zhao, H. Application of Improved Grey Model in Long-term Load Forecasting of Power Engineering. Syst. Eng. Procedia 2012, 3, 85–91. [Google Scholar] [CrossRef] [Green Version]
  38. Jouini, R.; Lemlouma, T.; Maalaoui, K. Employing Grey Model forecasting GM (1, 1) to historical medical sensor data towards system preventive in smart home e-health for elderly person. In Proceedings of the 12th International Wireless Communications & Mobile Computing Conference, Paphos, Cyprus, 5–9 September 2016; pp. 1086–1091. [Google Scholar]
  39. Jiang, Y.; Yao, Y.; Deng, S.S.; Ma, Z. Applying grey forecasting to predicting the operating energy performance of air cooled water chillers. Int. J. Refrig. 2004, 27, 385–392. [Google Scholar] [CrossRef]
  40. Wang, Q.; Li, S.; Li, R. Will Trump’s coal revival plan work?-Comparison of results based on the optimal combined forecasting technique and an extended IPAT forecasting technique. Energy 2019, 169, 762–775. [Google Scholar] [CrossRef]
  41. Truong, D.; Ahn, K.K. Wave prediction based on a modified grey model MGM(1,1) for real-time control of wave energy converters in irregular waves. Renew. Energy 2012, 43, 242–255. [Google Scholar] [CrossRef]
  42. Tang, N.; Zhang, D.J. Application of a Load Forecasting Model Based on Improved Grey Neural Network in the Smart Grid. Energy Procedia 2011, 12, 180–184. [Google Scholar] [CrossRef] [Green Version]
  43. Lee, C.C.; Wan, T.J.; Kuo, C.Y.; Chung, C.Y. Modified Grey Model for Estimating Traffic Tunnel Air Quality. Environ. Monit. Assess. 2007, 132, 351–364. [Google Scholar] [CrossRef]
  44. Wang, Q.; Li, S.; Li, R. Forecasting energy demand in China and India: Using single-linear, hybrid-linear, and non-linear time series forecast techniques. Energy 2018, 161, 821–831. [Google Scholar] [CrossRef]
  45. Akay, D.; Atak, M. Grey prediction with rolling mechanism for electricity demand forecasting of Turkey. Energy 2007, 32, 1670–1675. [Google Scholar] [CrossRef]
  46. Kumar, U.; Jain, V. Time series models (Grey-Markov, Grey Model with rolling mechanism and singular spectrum analysis) to forecast energy consumption in India. Energy 2010, 35, 1709–1716. [Google Scholar] [CrossRef]
  47. Wang, Q.; Song, X.; Li, R. A novel hybridization of nonlinear grey model and linear ARIMA residual correction for forecasting U.S. shale oil production. Energy 2018, 165, 1320–1331. [Google Scholar] [CrossRef]
  48. Wang, Q.; Song, X. Forecasting China’s oil consumption: A comparison of novel nonlinear-dynamic grey model (GM), linear GM, nonlinear GM and metabolism GM. Energy 2019, 183, 160–171. [Google Scholar] [CrossRef]
  49. Wang, Q.; Li, S.; Li, R. China’s dependency on foreign oil will exceed 80% by 2030: Developing a novel NMGM-ARIMA to forecast China’s foreign oil dependence from two dimensions. Energy 2018, 163, 151–167. [Google Scholar] [CrossRef]
  50. Lee, Y.S.; Tong, L.I. Forecasting energy consumption using a grey model improved by incorporating genetic programming. Energy Convers. Manag. 2011, 52, 147–152. [Google Scholar] [CrossRef]
  51. Bahrami, S.; Hooshmand, R.A.; Parastegari, M. Short term electric load forecasting by wavelet transform and grey model improved by PSO (particle swarm optimization) algorithm. Energy 2014, 72, 434–442. [Google Scholar] [CrossRef]
  52. Ding, S.; Hipel, K.W.; Dang, Y.-g. Forecasting China’s electricity consumption using a new grey prediction model. Energy 2018, 149, 314–328. [Google Scholar] [CrossRef]
  53. Chen, C.I. Application of the novel nonlinear grey Bernoulli model for forecasting unemployment rate. Chaos Solitons Fractals 2008, 37, 278–287. [Google Scholar] [CrossRef]
  54. Xu, N.; Ding, S.; Gong, Y.D.; Bai, J. Forecasting Chinese greenhouse gas emissions from energy consumption using a novel grey rolling model. Energy 2019, 175, 218–227. [Google Scholar] [CrossRef]
  55. Zeng, X.; Shu, L.; Yan, S.; Shi, Y.; He, F. A novel multivariate grey model for forecasting the sequence of ternary interval numbers. Appl. Math. Model. 2019, 69, 273–286. [Google Scholar] [CrossRef]
  56. Li, S.; Wang, Q. India’s dependence on foreign oil will exceed 90% around 2025-The forecasting results based on two hybridized NMGM-ARIMA and NMGM-BP models. J. Clean. Prod. 2019, 232, 137–153. [Google Scholar] [CrossRef]
  57. Naylor, T.H.; Seaks, T.G.; Wichern, D.W. Box-Jenkins Methods: An Alternative to Econometric Models. Int. Stat. Rev. 1972, 40, 123–137. [Google Scholar] [CrossRef]
  58. Kumar, U.; Jain, V. ARIMA forecasting of ambient air pollutants (O 3, NO, NO 2 and CO). Stoch. Environ. Res. Risk Assess. 2010, 24, 751–760. [Google Scholar] [CrossRef]
  59. Nieto, P.G.; Lasheras, F.S.; García-Gonzalo, E.; de Cos Juez, F.J. PM10 concentration forecasting in the metropolitan area of Oviedo (Northern Spain) using models based on SVM, MLP, VARMA and ARIMA: A case study. Sci. Total Environ. 2018, 621, 753–761. [Google Scholar] [CrossRef]
  60. Singh, S.; Mohapatra, A. Repeated wavelet transform based ARIMA model for very short-term wind speed forecasting. Renew. Energy 2019, 136, 758–768. [Google Scholar]
  61. Swain, S.; Nandi, S.; Patel, P. Development of an ARIMA Model for Monthly Rainfall Forecasting over Khordha District, Odisha, India. In Recent Findings in Intelligent Computing Techniques; Springer: Singapore, 2018; pp. 325–331. [Google Scholar]
  62. Nyangarika, A.M.; Tang, B.J. Oil Price Factors: Forecasting on the Base of Modified ARIMA Model. In IOP Conference Series: Earth and Environmental Science; IOP Publishing: Bristol, UK, 2018. [Google Scholar]
  63. Prasad, S.; Choubey, M. Forecasting India’s Total Exports: An Application of Univariate Arima Model. J. Int. Econ. 2018, 9, 60–68. [Google Scholar]
  64. Hossain, M.Z.; Ali, M.Z.; Samad, Q.A. ARIMA model and forecasting with three types of pulse prices in Bangladesh: A case study. Int. J. Soc. Econ. 2006, 33, 344–353. [Google Scholar] [CrossRef]
  65. Zhang, G. Time series forecasting using a hybrid ARIMA and neural network model. Neurocomputing 2003, 50, 159–175. [Google Scholar] [CrossRef]
  66. Al-Musaylh, M.S.; Deo, R.C.; Adamowski, J.F.; Li, Y. Short-term electricity demand forecasting with MARS, SVR and ARIMA models using aggregated demand data in Queensland, Australia. Adv. Eng. Inform. 2018, 35, 1–16. [Google Scholar] [CrossRef]
  67. Jiang, S.; Yang, C.; Guo, J.; Ding, Z. ARIMA forecasting of China’s coal consumption, price and investment by 2030. Energy Sources Part B Econ. Plan. Policy 2018, 13, 190–195. [Google Scholar] [CrossRef]
  68. Mehedintu, A.; Sterpu, M.; Soava, G. Estimation and Forecasts for the Share of Renewable Energy Consumption in Final Energy Consumption by 2020 in the European Union. Sustainability 2018, 10, 1515. [Google Scholar] [CrossRef]
  69. Wang, Q.; Li, S.; Li, R.; Ma, M.; Forecasting, U.S. shale gas monthly production using a hybrid ARIMA and metabolic nonlinear grey model. Energy 2018, 160, 378–387. [Google Scholar] [CrossRef]
  70. Ludlow, J.; Enders, W. Estimating non-linear ARMA models using Fourier coefficients. Int. J. Forecast. 2000, 16, 333–347. [Google Scholar] [CrossRef]
  71. Chen, S.; Jeong, K.; Härdle, W.K. Recurrent support vector regression for a non-linear ARMA model with applications to forecasting financial returns. Comput. Stat. 2015, 30, 821–843. [Google Scholar] [CrossRef]
  72. Zhang, G.; Ma, M.; Zhang, M.; Wu, J.; Pan, B.; Li, J.; Wang, J. Improving daily occupancy forecasting accuracy for hotels based on EEMD-ARIMA model. Tour. Econ. 2017, 23, 1496–1514. [Google Scholar] [CrossRef]
  73. Ordóñez, C.; Lasheras, F.S.; Roca-Pardiñas, J.; de Cos Juez, F.J. A hybrid ARIMA–SVM model for the study of the remaining useful life of aircraft engines. J. Comput. Appl. Math. 2019, 346, 184–191. [Google Scholar] [CrossRef]
  74. Lee, Y.S.; Tong, L.I. Forecasting time series using a methodology based on autoregressive integrated moving average and genetic programming. Knowl. Based Syst. 2011, 24, 66–72. [Google Scholar] [CrossRef]
  75. Barak, S.; Sadegh, S.S. Forecasting energy consumption using ensemble ARIMA–ANFIS hybrid algorithm. Int. J. Electr. Power Energy Syst. 2016, 82, 92–104. [Google Scholar] [CrossRef]
  76. Dindarloo, S. Reliability forecasting of a Load-Haul-Dump machine: A comparative study of ARIMA and Neural Networks. Qual. Reliab. Eng. Int. 2016, 32, 1545–1552. [Google Scholar] [CrossRef]
  77. Díaz-Robles, L.A.; Ortega, J.C.; Fu, J.S.; Reed, G.D.; Chow, J.C.; Watson, J.G.; Moncada-Herrera, J.A. A hybrid ARIMA and artificial neural networks model to forecast particulate matter in urban areas: The case of Temuco, Chile. Atmos. Environ. 2008, 42, 8331–8340. [Google Scholar] [CrossRef] [Green Version]
  78. Wang, Q.; Jiang, F. Integrating linear and nonlinear forecasting techniques based on grey theory and artificial intelligence to forecast shale gas monthly production in Pennsylvania and Texas of the United States. Energy 2019, 178, 781–803. [Google Scholar] [CrossRef]
  79. Zhang, X.; Tuo, W.; Song, C. Application of MEEMD-ARIMA combining model for annual runoff prediction in the Lower Yellow River. J. Water Clim. Chang. 2019. [Google Scholar] [CrossRef]
  80. Matyjaszek, M.; Fernández, P.R.; Krzemień, A.; Wodarski, K.; Valverde, G.F. Forecasting coking coal prices by means of ARIMA models and neural networks, considering the transgenic time series theory. Resour. Policy 2019, 61, 283–292. [Google Scholar] [CrossRef]
Figure 1. The Forecasting Process of metabolic grey model-Auto Regressive Integrated Moving Average Model (MGM-ARIMA) and non-linear metabolic grey model (NMGM)-ARIMA.
Figure 1. The Forecasting Process of metabolic grey model-Auto Regressive Integrated Moving Average Model (MGM-ARIMA) and non-linear metabolic grey model (NMGM)-ARIMA.
Energies 12 03278 g001
Figure 2. Primary energy consumption (Unit: mtoe) and growth rate in East Africa from 2000 to 2017.
Figure 2. Primary energy consumption (Unit: mtoe) and growth rate in East Africa from 2000 to 2017.
Energies 12 03278 g002
Figure 3. 1-AGO Sequence of primary energy consumption in Eastern Africa.
Figure 3. 1-AGO Sequence of primary energy consumption in Eastern Africa.
Energies 12 03278 g003
Figure 4. Autocorrelation (AC) and partial autocorrelation (PAC) coefficients.
Figure 4. Autocorrelation (AC) and partial autocorrelation (PAC) coefficients.
Energies 12 03278 g004
Figure 5. Autocorrelation (AC) and Partial Autocorrelation coefficients (PAC) of MGM-ARIMA.
Figure 5. Autocorrelation (AC) and Partial Autocorrelation coefficients (PAC) of MGM-ARIMA.
Energies 12 03278 g005
Figure 6. Comparison between the residual of MGM fitting results and the corrected residual.
Figure 6. Comparison between the residual of MGM fitting results and the corrected residual.
Energies 12 03278 g006
Figure 7. Autocorrelation (AC) and Partial autocorrelation coefficients of NMGM-ARIMA.
Figure 7. Autocorrelation (AC) and Partial autocorrelation coefficients of NMGM-ARIMA.
Energies 12 03278 g007
Figure 8. Comparison between the residual of NMGM fitting results and the corrected residual.
Figure 8. Comparison between the residual of NMGM fitting results and the corrected residual.
Energies 12 03278 g008
Figure 9. Comparison of MGM and MGM-ARIMA.
Figure 9. Comparison of MGM and MGM-ARIMA.
Energies 12 03278 g009
Figure 10. Comparison of NMGM and NMGM-ARIMA.
Figure 10. Comparison of NMGM and NMGM-ARIMA.
Energies 12 03278 g010
Figure 11. Goodness of fit for Five Models at different time points.
Figure 11. Goodness of fit for Five Models at different time points.
Energies 12 03278 g011
Figure 12. Outcomes of five models for predicting future primary energy consumption in East Africa.
Figure 12. Outcomes of five models for predicting future primary energy consumption in East Africa.
Energies 12 03278 g012
Table 1. Meaning of the symbols in the formula.
Table 1. Meaning of the symbols in the formula.
NotationExplanationNotationExplanation
X ( 0 ) ( k ) Raw sequence ε t Error term of initial data
X ( 1 ) ( k ) Once accumulated sequence θ i Harmonic parameter
X ^ ( 0 ) ( k ) Prediction of Raw sequenceBMatrix of data and constants
X ^ ( 1 ) ( k ) Prediction of 1-AGO sequencedOrder of the data sequence
tTime sequencepOrder of auto -regression
DMatrix of data and constantsqOrder of moving average
C n Matrix of data E ( 0 ) ( 1 ) Initial residual sequence
aConstant parameter E * ( 0 ) ( 1 ) Predicted residual sequence
bConstant parameter X t * ( i ) Corrected forecasts
β Power coefficientsnSample size
Y t Initial data sequence y ( i ) Fitting value
Y t * Predicted data sequence x ( i ) Truth value
μConstant term
Table 2. The comparison of five models.
Table 2. The comparison of five models.
DifferenceFeature
PrincipleData trendAdvantagesDisadvantages
MGM Differential equation Model Linear Sample;
Does not need regularity and large numbers;
Add metabolic principle to the modeling of GM model
Cannot reflect the non-linearity of data series
NMGM Differential equation Model Non-Linear Sample;
Does not need regularity and large numbers;
Add metabolic and none-linear principles to the modeling of GM model
The Positive and negative fluctuations of the error are too large
ARIMA Differential auto regressive moving average Model Linear The mathematical requires only endogenous variables without resorting to exogenous variables Determination of model parameters is complicated;
Non-linear relationship cannot be reflected;
Require timing data to be stable
MGM-ARIMA Cover two principle of MGM and ARIMA Linear Use ARIMA model to correct the fluctuations of NMGM model; Wider application range Non-linear relationship cannot be reflected;
More steps than a single model
NMGM-ARIMA Cover two principle of NMGM and ARIMA Cover Linear and Non-Linear Use ARIMA model to correct the fluctuations of NMGM model; Combine linearity with None-linearity; Wider application range The effects of multiple variables on predictors cannot be considered;
More steps than a single model
SimilarityForecast period: Short and Medium term
The number of variables: Univariate
Table 3. The value of MGM Parameters in 2005-2030.
Table 3. The value of MGM Parameters in 2005-2030.
2005200620072008200920102011
a−0.0281−0.0386−0.0495−0.0405−0.0239−0.0228−0.0423
b25.426525.427825.435127.584329.735730.74630.15
2012201320142015201620172018
a−0.0649−0.0495−0.0479−0.0695−0.0744−0.0511−0.035
b29.250932.491334.623534.384435.906241.234745.5445
2019202020212022202320242025
a−0.035−0.0364−0.035−0.0357−0.0357−0.0353−0.0355
b47.05648.478750.557352.206554.103156.141458.1107
20262027202820292030
a−0.0353−0.0353−0.0354−0.0353−0.0353
b60.267662.428664.644666.989269.4027
Table 4. The value of NMGM Parameters in 2005–2030.
Table 4. The value of NMGM Parameters in 2005–2030.
Year β abYear β ab
20051−0.028125.425620181.023−0.030545.642
20061−0.038625.427820191.434−0.002848.44
20070.131−16.8519−0.22320200.962−0.050847.8173
20081−0.040527.584320211.274−0.007851.3491
20090.001−2.1175−2.09520220.95−0.05951.3057
20100.151−6.591919.939620231.19−0.013555.1413
20111−0.042330.1520240.959−0.058355.7161
20121−0.064929.250920251.142−0.018559.7007
20130.001−4.8584−4.842920260.973−0.055160.8656
20141−0.047934.623520271.112−0.022864.9779
20151−0.069534.384420280.987−0.051766.715
20160.621−0.737430.724520291.092−0.026370.9873
20170.001−6.3232−6.305620300.999−0.048973.2918
Table 5. Square root test results of first-order difference.
Table 5. Square root test results of first-order difference.
Augmented Dickey-Fuller Test Statistict-StatisticProb.*
−4.86040.0080
Test critical values:1% level−4.7284
5% level−3.7597
10% level−3.3250
Table 6. Parameters of the goodness of fit for the ARIMA (11,1,2) Model.
Table 6. Parameters of the goodness of fit for the ARIMA (11,1,2) Model.
ModelNumber of PredictorsModel Fit Statistics
Stationary R-SquaredR-SquaredRMSEMAPE
ARIMA (11,1,2)10.6430.9932.131.59
Table 7. Relative error based on MGM fitting.
Table 7. Relative error based on MGM fitting.
YearRaw DataFitting Value Obtained by MGMResidual
200024.725224.72520.0000
200126.612926.49170.1212
200227.544427.24670.2977
200327.119028.02320.9042
200429.323128.82180.5012
200530.450429.64320.8072
200631.666631.47550.1911
200733.109733.48840.3787
200832.546534.41901.8725
200934.348233.89330.4549
201037.247234.83812.4091
201139.338538.09481.2437
201239.957942.05692.0990
201343.379042.61550.7634
201447.904044.99732.9066
201549.764350.55900.7947
201651.053054.28793.2349
201753.356454.47111.1147
Table 8. Square root test of zero order differential of MGM relative error.
Table 8. Square root test of zero order differential of MGM relative error.
Augmented Dickey–Fuller Test Statistict-StatisticProb.*
−6.43760.0005
Test critical values:1% level−4.6679
5% level−3.7332
10% level−3.3103
Table 9. Parameters of the goodness of fit for the MGM-ARIMA (3,0,9).
Table 9. Parameters of the goodness of fit for the MGM-ARIMA (3,0,9).
ModelNumber of PredictorsModel Fit Statistics
Stationary R-SquaredR-SquaredRMSEMAPE
MGM-ARIMA (3,0,9)10.7030.7031.69773.033
Table 10. Residual based on NMGM model.
Table 10. Residual based on NMGM model.
YearRaw DataFitting Value Obtained by NMGMResidual
200024.725224.72520.0000
200126.612926.4926−0.1203
200227.544427.2482−0.2962
200327.119028.02530.9063
200429.323128.8246−0.4985
200530.450429.6467−0.8037
200631.666631.4718−0.1948
200733.109732.5918−0.5179
200832.546534.41121.8647
200934.348233.4706−0.8776
201037.247234.3667−2.8805
201139.338538.0857−1.2528
201239.957942.06442.1065
201343.379041.3733−2.0057
201447.904044.9876−2.9164
201549.764350.55220.7879
201651.053053.25812.2051
201753.356452.8345−0.5219
Table 11. Square root test of first order differential of NMGM residual.
Table 11. Square root test of first order differential of NMGM residual.
Augmented Dickey-Fuller Test Statistict-StatisticProb.*
−5.44850.0037
Test critical values:1% level−4.8001
5% level−3.7912
10% level−3.3423
Table 12. Parameters of the goodness of fit for the NMGM-ARIMA (4,1,1).
Table 12. Parameters of the goodness of fit for the NMGM-ARIMA (4,1,1).
ModelNumber of PredictorsModel Fit Statistics
Stationary R-SquaredR-SquaredRMSEMAPE
NMGM-ARIMA(4,1,1)10.7520.4961.37489.307
Table 13. Fitting results of five models (Unit:mtoe).
Table 13. Fitting results of five models (Unit:mtoe).
YearRaw DataMGM Fitting ValueNMGM Fitting Value ARIMA (11,1,2) Fitting ValueMGM-ARIMA (3,0,9) Fitting ValueNMGM-ARIMA (4,1,1) Fitting Value
200024.725224.725224.725224.725224.288524.7252
200126.612926.491726.492625.511126.270726.5720
200227.544427.246727.248227.539226.925427.3952
200327.119028.023228.025327.949126.739826.8756
200429.323128.821828.824628.171329.587429.5278
200530.450429.643229.646731.446929.263029.7684
200631.666631.475531.471831.022631.528431.6552
200733.109733.488432.591832.975233.294033.4650
200832.546534.419034.411234.512932.096232.1749
200934.348233.893333.470634.891934.392234.1104
201037.247234.838134.366737.265635.970035.7398
201139.338538.094838.085739.196838.854339.2275
201239.957942.056942.064439.774041.702841.4293
201343.379042.615541.373343.252443.541043.3391
201447.904044.997344.987648.013345.474245.4348
201549.764350.559050.552249.377950.397949.7744
201651.053054.287953.258151.203554.178752.2417
201753.356454.471152.834553.397254.355551.5983
Table 14. Error of Five Models.
Table 14. Error of Five Models.
MGMMGM-ARIMA(3,0,9)ARIMA(11,1,2)NMGMNMGM-ARIMA(4,1,1)
MAPE2.8216%2.0969%1.5013%2.9697%1.4654%
Table 15. Criteria of mean absolute per error (MAPE).
Table 15. Criteria of mean absolute per error (MAPE).
MAPE (%)Forecasting Power
<10Excellent
10–20Good
20–50Reasonable
>50Incorrect
Table 16. Primary energy forecast results for East Africa (Unit: mtoe).
Table 16. Primary energy forecast results for East Africa (Unit: mtoe).
MGMNMGMARIMA(11,1,2)MGM-ARIMA(3,0,9)NMGM-ARIMA (4,1,1)
201855.093655.122755.710656.592258.0108
201957.048457.773857.692756.840158.3880
202059.244059.961659.532157.296958.8521
202161.276262.923161.451160.057563.6027
202263.544965.512664.758064.220367.7430
202365.845068.790970.104966.148969.6403
202468.170971.793073.765366.732071.3927
202570.647775.420576.218169.090576.1446
202673.182678.863880.814772.907580.6821
202775.809782.889485.920475.835883.8636
202878.545686.817788.578277.510786.9145
202981.347291.301690.478079.787092.0956
203084.278895.771894.207183.398397.3364

Share and Cite

MDPI and ACS Style

Han, X.; Li, R. Comparison of Forecasting Energy Consumption in East Africa Using the MGM, NMGM, MGM-ARIMA, and NMGM-ARIMA Model. Energies 2019, 12, 3278. https://doi.org/10.3390/en12173278

AMA Style

Han X, Li R. Comparison of Forecasting Energy Consumption in East Africa Using the MGM, NMGM, MGM-ARIMA, and NMGM-ARIMA Model. Energies. 2019; 12(17):3278. https://doi.org/10.3390/en12173278

Chicago/Turabian Style

Han, Xinyu, and Rongrong Li. 2019. "Comparison of Forecasting Energy Consumption in East Africa Using the MGM, NMGM, MGM-ARIMA, and NMGM-ARIMA Model" Energies 12, no. 17: 3278. https://doi.org/10.3390/en12173278

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop