Background

It is well-known that electricity plays a critical role in economic growth, technological development and planning of a country. A study report of World Bank [1], states that no country in the world has succeeded in financial system, without using contemporary technology to produce energy [2]. Smith and Tirpak [3], showed the possible effects of climate change on the USA, across a range of sectors including electricity and that for Colombo by Andrew [4]. Many researchers estimated the impact of global warming on the energy expenditures in a region by Rosenthal [5]. Numerous economical activities have presented climatic changes, so that the predictable revenues may be seriously affected by extreme weather events. Extreme weather events are the infrequent or rare conditions of weather intensity in a locality, like heat waves, cold waves, tropical cyclone, flood, thunderstorm etc. The power sector is one of the most vulnerable to extreme weather, predominantly electricity consumption. Since electricity cannot be stored so the produced electricity must immediately be consumed, this implies that an appropriate model is needed to forecast future electricity demand by Valor [6].

In developin’g countries, there is a powerful positive correlation among wealth and energy especially electricity utilization. Though, the method of electricity production and consumption may generate air pollution and greenhouse gas which results global warming (Lee and Chiu [2], Ferguson [7]). Earlier studies mostly apply time-series or cross-sectional datasets to examine the appropriate topic of energy (Wolde-Rufael, [8, 9]). Investigators have also started to utilize panel data to investigate the issues on energy (Lee and Lee [10]). Economic derivatives, such as future and alternative agreement on electricity, are usually engaged with this objective [11]. As electricity has become the basic need for survival in Pakistan. Unfortunately our country has been in deficit regarding electricity. Only 16% of rural population have grid-connected electricity, compared with 85% of the urban population [12]. The government called 2nd National Energy Conference on 9th April, 2012 and discussed critical issues and compelled to decide two holidays a week to recover the energy crises. Now it has become a big challenge for new government in Pakistan. Prime minister calls energy conference immediately, after taking over his responsibility. To overcome these problems an appropriate analysis of the link between electricity consumption and climatic variables, particularly air temperature, must be undertaken. The current work is an attempt to study the above relationship in Pakistan.

This communication is planned as, "Data description and methodology" gives an account of the data used in the study, and "Test for stationarity of temperature series" gives the estimates of the constancy test for temperature data. The time series model of temperature is constructed in "Time series modeling", while "Results and discussion" shows the forecast values of EC using regression technique. Finally, "Conclusion" summarizes the conclusions drawn from this investigation.

Data description and methodology

Electricity consumption in Pakistan

Currently Pakistan is facing severe energy crisis and power failures. The trend of power shortages has increased about 5000 MW, load shedding has been increased from 8 to 14 hours daily. Industrial growth has been decelerated and ultimately the whole economy has crashed down [13], so investigation of electricity consumption is an important study. A series of monthly electricity consumption (EC) of Pakistan in GWh, across the period from January 1990 through December 2010, has been used in this study. The data was recorded by Department of Federal Bureau of Statistics Pakistan. This data consists of electricity consumption in all economic sectors such as industrial, housing, and commercial sectors of Pakistan, because regional or sector wise disaggregated data was not available. Figure 1 shows that electricity demand has a considerable, growing trend that can be associated to demographic, community, and economic aspect, while a gradual increment in maximum temperature has also been observed.

Figure 1
figure 1

Relationship b/w electricity demand and maximum temperature from 1990 to 2010.

The series of electricity demand shows seasonal effect, that can be examined with the monthly seasonal variation index (MSVI) and can be defined as;

MSV I ij = ME C ij MA E j
(1)

where MSVI ij is the index value for month i in year j, MEC ij is the monthly electricity consumption for month i in year j, and MAE j is the monthly average electricity load for year j[6]. Figure 2 illustrate the average, maximum, and minimum MSVI values for each month of the year. Here the average values confirm the relative behavior of electricity consumption between different months while the variation between the highest and lowest amount shows the actual deviation from this mean behavior.

Figure 2
figure 2

Monthly seasonal behavior of electricity consumption from 1990 through 2010.

The monthly seasonality graph demonstrates that the electricity demand starts to rise up from March to August owing to increased use of air conditioning systems and is maximum in months of July and August while minimum in January and February. This gives graphical support for our assumption that electricity consumption increases with maximum temperature in our country while it has less correlation with minimum temperature also. Unfortunately the daily data for electricity consumption was not available due to which we are unable to say anything about the daily profile of electricity consumption e.g. in working days and holidays.

The weather variable

The results of past case studies reveal that the air temperature is the most important weather variable having an effect on electricity demand, while other variables i.e. humidity, wind, speed etc may also have an effect on temperature [6, 1417]. Since our country lies between latitudes 24°N to 36°N and longitudes 62°E to 78°E, so the maximum temperature affects electricity consumption a lot as compare to min temperature. Due to which we have estimated only the impact of maximum temperature on electricity consumption in this study. To show the average maximum temperature of Pakistan, we have taken the records of mean monthly maximum temperature of 18 meteorological stations (Chitral, Peshawar, Parachinar, Murree, Mianwali, Faisalabad, Lahore, Multan, Khanpur, Zhob, Queta, Khuzdar, Nokundi, Punjgur, Jiwani, Rohri, Nawabshah, Karachi and Badin) for the period from 1990 to 2010 which are spatially distributed throughout the country.

Since the accessible electricity consumption data are not present regionally, so a population weighted temperature index TI (°C) has been estimated from the mean monthly maximum temperatures of eighteen weather stations spatially spread across the country. The reason of selecting populations as weighting aspect is that weather affects the electricity consumption practices through the response of people to weather. i.e. depending on the heat, or coldness, people will increase or decrease the use of electric heating tools or air conditioners. Thus the higher the population has the higher the influence of climatic situation in electricity demand [6].

Test for stationarity of temperature series

Since we are using time series data so for the purpose of time series modeling first we have to check the stationarity of the data. A stochastic (or time-series) is called stationary if its mean and variance are constant over time. In addition, the value of the co-variance between the two time periods depends only on the lag between the two time periods and not the actual time at which the covariance is estimated. Although there are several tests of constancy, but we discuss only those that are prominently used in the literature i.e. Unit Root Test.

Unit root stochastic process

Consider a random walk model

Y t = ρ Y t 1 + u t 1 ρ 1
(2)

This model resembles the Markov first-order autoregressive model and depends upon the value of “ρ”. if ρ = 1 then the above model shows nonstationarity or has unit root, where u t is white noise error term.

Unit root test

This test starts from above equation and we simply regress Y t on its (single period) lagged value Yt−1 and estimated if the predictable value of ρ is statistically identical to 1 then the series has unit root and we reject the null hypothesis.

For theoretical reasons, we manipulate eq. (2) as follows: subtract Yt -1 from both sides of eq. (2) we have

Y t Y t 1 = ρ Y t 1 Y t 1 + u t Y t Y t 1 = Y t 1 ρ 1 + u t Δ Y t = δ Y t 1 + u t
(3)

where δ = (ρ – 1) and ∆ is the first difference operator. Further, we estimate eq. (3) instead of eq. (2) and test (null) hypothesis that δ = 0. If δ = 0, then ρ = 1, which is the condition of unit root, implies that the time series under study is not stationary.

The Augmented Deckey Fuller (ADF) test

To tackle the autocorrelation problem, a test developed called Augmented Deckey Fuller (ADF) test. Now the test is conducted by “augmenting” the following three equations by adding the lagged values of the dependent variable ∆ Yt

Y t is a random walk with;

Intercept only i . e . β 1 is Δ Y t = β 1 + δ Y t 1 + u t
(4)
Trend and intercept i . e β 2 t & β 1 . Δ Y t = β 1 + β 2 t + δ Y t 1 + u t
(5)
No trend and no intercept . Δ Y t = δ Y t 1 + u t
(6)

Hypotheses

Null Hypotheses Ho: Variable has unit root (data is non stationary)

Here we can reject the null hypotheses in two ways:

  1. i)

    If p-value is less than 5%

ii) If absolute value of Augmented Deckey Fuller test statistics is greater than the critical value at 1% and 5% significance level.

According to ADF test, the temperature series show no constancy in level forms because both the above conditions are not satisfied. Since temperature is not in stationary form so we will take first difference to make it stationary for time series modeling.

Now from Table 1,2 and 3[18] the p-values are less than 5% and the absolute value of ADF test statistics is greater than the critical values at 1%, 5% and 10% level of significance also. So the first difference of temperature time series is stationary.

Table 1 Firs t d ifference for Intercept form
Table 2 First difference for Trend and intercept form
Table 3 First difference for No Trend No Intercept form

Time series modeling

Several researchers used AR(1) model to show daily maximum temperature fluctuations. Using a statistical package, E-VIEWS ver. 14, the parameter values for different orders of autoregressive (AR), moving average (MA) & auto regressive integrated moving average (ARIMA) models e.g. AR(1), AR(2), MA(1), MA(2), ARIMA(1,1,1), ARIMA(1,1,2), ARIMA(1,1,5), ARIMA(3,1,1), ARIMA(4,1,1) and ARIMA(4,1,4) were estimated. Now, in order to get optimized model, we use Akaike Information Criteria (AIC), which aims to optimize the exchange between goodness of fit and model parsimony. AIC can be represented mathematically as;

AIC = ln σ 2 + 2 p + q + 1 n
(7)

where n implies the sample size of the series and σ2 is the mean squared error of the ARIMA model fit to the series. p is the order of AR parameter while q is the order of MA parameter [4]. Thus for ARIMA (4,1,4) model, p = 4, q = 4 and 1 shows the first difference. Here, our objective is to minimize AIC so that the required model can best explain fluctuating behavior of process under study.

For temperature data series the AIC shows that the ARIMA (4,1,4) is the best fitted model. The equation of this model is;

T cal . = 0.00011 + 2.571 T t 1 3.16 T t 2 + 2.063 T t 3 0.707 T t 4 + 3. 026 U t 1 3.55 U t 2 + 1.835 U t 3 0.313 U t 4
(8)

where Tcal Indicates the forecast values of temperature while T and U with subscript t show the time lagged values of autoregressive and moving average respectively. Table 4 gives the estimated future values of the monthly mean maximum temperature of Pakistan from Jan 2011 to December 2020 using above model (Eq. 8).

Table 4 Forecast values of mean monthly maximum temperature series for Pakistan from Jan, 2011 to Dec, 2020

Results and discussion

Extreme temperature events affect electricity demands primarily by raising the number of air conditioner used, as people attempt to sustain a predictable level of comfort. Consequently, increase in extreme temperature events, results an increase in air conditioner use and power demand as well. Power utilities might have to approve new approach to fulfill the increased loads [4]. In addition the more demands can also sag the transmission lines with hot temperature.

Now, we will justify our hypothesis by using exploratory data analysis (EDA) for both electricity and temperature data series. EDA makes a general use of robust statistics and relies greatly on graphical techniques, which present an idea about the shape of the distribution of data under study. It also gives a widespread description of the underlying system in the form of models. To assess that how peak power demand strength to vary, it has to be correlated with maximum temperature. As, a correlation is made the probability of identical or exceeding certain electricity demand thresholds can be determined [4].

Figure 3 depicts a positive correlation between electricity consumption (EC) and temperature index (TI). The Pearson correlation of E.C. and TI is 0.412 with p-value (0.000) less than 5% and T statistics is 7.15. The correlation value is not very high because the electricity demand is always greater than its production in Pakistan. So the electricity production authorities are compelled to initiate load shedding to manage this problem, due to which exact correlation could not be found. Secondly, we could not collect the daily data and sector wise disaggregated data of EC in our country to show its exact relationship with temperature. Coefficient of determination is highest for the linear model as compared to quadratic and nonlinear models. This shows that a linear model can better predict the values of E.C. in future. Figure 3 also reveals that when temperature increases above 30°C, the EC rapidly increases due to cooling appliances. The prediction equation for EC can be shown by following equation.

E . C . T = 2461 + 109.3 T ° C
(9)

where T is the mean monthly maximum temperature and EC is the electricity consumption in Pakistan. Now being the best fitted model eq. (9), peak power demand corresponding to threshold temperatures has been computed and shown in Table 5. Since the correlation between electricity demand and mean monthly maximum temperature is not so good, implies that there are many other factors which are also accountable to increase the electricity consumption e.g. population, inflation rate of heating appliances, unit price of electricity, etc. In this article we have only attempted to calculate the expected change in EC, due to the increase of mean monthly maximum temperature for Pakistan by using the above forecast values of temperature from January 2011 to December 2020 (Table 4).

Figure 3
figure 3

Correlation between EC and TI with best fitted regression line.

Table 5 Monthly forecast values of electricity consumption from Jan, 2011 to Dec, 2020 for Pakistan

Now we use Figure 4 to compare the average monthly behavior of EC and maximum temperature for the predicted values in future. This figure also throws light on the correlation between these two parameters keeping influence of other parameters constant. This indicates that the EC is maximum for summer season and minimum for winter season. The cyclic trend in temperature is similar as that of EC, so one cannot neglect the influence of maximum temperature on electricity consumption.

Figure 4
figure 4

Monthly average forecast values of temperature (°C) & Electricity consumption (GWh) from 2011 to 2020.

Conclusion

This study demonstrates that the the electricity consumption (EC) increases with mean monthly maximum temperature having significant correlation coefficient 0.412. This correlation is not so good due to the insufficient electricity production in our country, the authorities are compelled to get load shedding and we could not get the monthly load shedding hour’s data. The peak power demand is significantly increased during summer season as compared to winter season due to the uses of cooling appliances. The monthly behavior depicts that EC is more for summer season and highest demand will be 6785.6 (GWh) in July, 2020 due to increase in temperature. The average monthly behavior of forecast values of temperature and electricity has been shown in Figure 4, which reveals that the maximum temperature has a great influence on EC keeping other parameters constant. The current study also suggests that ARIMA (4,1,4) model is the best fitted model for the future prediction of temperature series. Our calculation also shows that for an increase of 1°C temperature there will be an increase of 109.3 million-kWh electricity demand for Pakistan. So the power utilities have to adopt new strategies in order to meet future electricity demands.