Next Article in Journal
Kinetic Parameters Estimation of Thermal and Co-Pyrolysis of Groundnut De-oiled Cake and Polyethylene Terephthalate (PET) Waste
Next Article in Special Issue
The Negative Impact of Electrical Energy Subsidies on the Energy Consumption—Case Study from Jordan
Previous Article in Journal
Microstructure, Deformation Characteristics and Energy Analysis of Mudstone under Water Absorption Process
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Determinants of Electricity Prices in Turkey: An Application of Machine Learning and Time Series Models

by
Hasan Murat Ertuğrul
1,
Mustafa Tevfik Kartal
2,
Serpil Kılıç Depren
3 and
Uğur Soytaş
4,*
1
Department of Economics, Faculty of Economics and Administrative Sciences, Anadolu University, 26470 Eskişehir, Turkey
2
Borsa İstanbul Financial Reporting and Subsidiaries Directorate, 34467 Istanbul, Turkey
3
Department of Statistics, Yildiz Technical University, 34349 Istanbul, Turkey
4
Department of Technology, Management, and Economics, Technical University of Denmark, 2800 Kgs. Lyngby, Denmark
*
Author to whom correspondence should be addressed.
Energies 2022, 15(20), 7512; https://doi.org/10.3390/en15207512
Submission received: 20 September 2022 / Revised: 3 October 2022 / Accepted: 10 October 2022 / Published: 12 October 2022
(This article belongs to the Special Issue Electricity Markets: Modelling, Simulation and Analysis)

Abstract

:
The study compares the prediction performance of alternative machine learning algorithms and time series econometric models for daily Turkish electricity prices and defines the determinants of electricity prices by considering seven global, national, and electricity-related variables as well as the COVID-19 pandemic. Daily data that consist of the pre-pandemic (15 February 2019–10 March 2020) and the pandemic (11 March 2020–31 March 2021) periods are included. Moreover, various time series econometric models and machine learning algorithms are applied. The findings reveal that (i) machine learning algorithms present higher prediction performance than time series models for both periods, (ii) renewable sources are the most influential factor for the electricity prices, and (iii) the COVID-19 pandemic caused a change in the importance order of influential factors on the electricity prices. Thus, the empirical results highlight the consideration of machine learning algorithms in electricity price prediction. Based on the empirical results obtained, potential policy implications are also discussed.

1. Introduction

Both developing and developed countries aim to provide a higher quality of life to their citizens [1]. Although the gross domestic product is not a good indicator of societal well-being [2,3], government policy usually focuses mainly on economic indicators because there is a high correlation between economic indicators and stability [4].
Stability in economic and financial indicators helps reduce uncertainty and improve well-being in an economy. There are many factors that affect the stability of economic and financial indicators, and energy is one of the most important ones that influence both production and consumption capabilities in an economy. Almost all economic and social well-being indicators are affected by the availability and affordability of energy.
Electricity prices affect both production and consumption [5]. The recent pandemic has underlined the notion that access to clean and affordable energy is a basic human right. Therefore, fluctuations in electricity prices cannot be ignored when it comes to economic and social stability.
Electricity can also be regarded as a commodity traded in markets in many countries, including Turkey [6]. Investors are also participating in electricity derivatives markets. Hence, electricity prices affect more economic actors than consumers and producers of electricity.
In general, the stability of electricity prices is crucial for all economic actors. Depending on the lacking proper infrastructures and investments, emerging countries may be suffering from high volatility in energy prices. As an emerging country, Turkey has highly volatile electricity prices, of which the progress of Turkish Lira (TRY) denominated electricity prices in Turkey over recent years, as presented in Figure A1.
To achieve sustainable and stable electricity prices, the influential factors on electricity prices should first be well understood. In this context, not only energy market fundamentals but also global and national factors as well as financial and macroeconomic factors should be considered. Moreover, as a recent crisis and black-swan case [7], the world is facing the COVID-19 pandemic, which influences both economic and social dynamics in every economy [8]. There are approximately 162 million confirmed cases and 3.4 million deaths as of 14 May 2021 in the world, and 5.1 million confirmed cases and 44 thousand deaths as of 14 May 2021 in Turkey [9]. The COVID-19 pandemic has caused a deterioration in all indicators and areas with no exception. Therefore, the pandemic should also be taken into account when stability in energy markets is examined. Moreover, countries are taking various measures to mitigate the negative impacts of the COVID-19 pandemic [10]. These precautions should also be considered in assessing stability in electricity prices.
In the literature, researchers have mainly focused on electricity demand, e.g., [5,6,11,12,13,14,15,16], and a limited number of studies have directly considered electricity prices around the pandemic, e.g., [17,18,19,20,21]. In this study, we investigate the prediction performance of alternative machine learning and time series models for electricity prices and identify the important determinants of electricity prices for Turkey. In addition to market fundamentals, we consider global and national factors and the COVID-19 pandemic in our models. We take Turkey as a case study because it is an emerging economy with highly volatile electricity prices. In the analysis, we include a total of seven variables, and daily data for two sub-periods that consist of the pre-pandemic (15 February 2019–10 March 2020) and the pandemic (11 March 2020–31 March 2021) periods. In addition, we apply various time series econometric as well as machine learning algorithms because some studies have stated that machine learning algorithms can perform better [21,22]. By following up such an approach, we aim to examine the effect of the selected variables on electricity prices, which are hypothesized in the following part of the study by benefitting from the current literature. The findings reveal that (i) machine learning algorithms have better prediction performance than time series models for both periods, (ii) renewable sources are the most influential factor for Turkish electricity prices; and (iii) the COVID-19 pandemic caused a change in the relative importance of electricity price determinants. Hence, the validity of the hypothesis is confirmed.
This study makes three important contributions to the literature. First, to the best of our knowledge, this is a leading study in the current literature that compares the prediction performance of alternative machine learning and time series models for the Turkish electricity market using high-frequency (i.e., daily) data. Although there are studies on developed countries, including Italy [18], Germany [19], Spain [23], and the United Kingdom [24], emerging countries such as Turkey have not been comprehensively examined yet. Second, we show that the COVID-19 pandemic changes the relative importance of electricity price determinants. This implies that stability policies of tranquil times may not work during crisis periods, such as pandemics. Third, we account for global and domestic factors such as oil prices, volatility, foreign exchange (FX) rates, renewable sources, and monetary policy indicators and assess their relative importance in determining electricity price stability.
This study consists of five sections. After the introduction, the relevant literature is examined in Section 2, and the variables used in the analysis are summarized. The research objectives, data, and methodology are explained in Section 3. The results of empirical analysis including the comparison of empirical models, variable importance, and the results of the best model are presented in Section 4. The discussion and policy implications are presented in Section 5. Finally, Section 6 concludes.

2. Literature Review

The main focus of the literature is on the demand side of electricity markets. There are also several studies on the determinants of electricity prices. These studies have considered various factors, such as raw material prices, FX rate, renewable sources, volatility, etc. In what follows, we provide a brief discussion of these studies from the perspective of determinants used.
Global factors take place in the first group of studies. One of the main determinants of electricity prices considered in the literature is raw material prices. Although there are a variety of sources that are used for electricity production, oil prices appear the most significant indicator for electricity markets. For this reason, we include oil prices as a determinant in line with the studies of [6,13,16,25,26,27,28,29,30]. It is expected that electricity prices increase while oil prices increase because the cost of electricity production increases as well. We consider Brent crude oil prices as oil prices because this type of oil is used in Turkey and expect a positive relationship between oil prices and electricity prices.
H1: 
OIL has a statistically significant positive impact on EP at a 95% of confidence level.
References [6,15,26] found that the volatility in financial asset markets has a significant impact on energy markets. Hence, we also include volatility in this study. Although there are a variety of volatility indicators, the volatility (VIX) index is the most used variable to capture global risk perceptions. For this reason, we include the VIX index as a determinant. It is expected that electricity prices increase while the VIX index increases because the cost of production increases with risk perceptions. We expect a positive relationship between the VIX index and electricity prices.
H2: 
VIX has a statistically significant positive impact on EP at a 95% of confidence level.
National factors, such as the strength of the local currency, also play an important role in electricity price determination. References [26,28] included FX rates as a determinant and find that they are significant. In line with these findings, we include the United States Dollar (USD)/TRY FX rate in the study because USD is the most used FX in the world [31]. It is expected that electricity prices increase while FX rates increase because the cost of electricity production increases. We expect a positive relationship between FX rates and electricity prices.
H3: 
USDTRY has a statistically significant positive impact on EP at a 95% of confidence level.
In addition, we include some financial indicators in the context of national factors by considering that electricity can also be used as an alternative investment vehicle. For this reason, we consider the stock market index of Turkey (e.g., XU100 index) [32,33]. It is expected that electricity prices increase while the XU100 index increases because they can be viewed as alternative investments, and we expect a positive relationship between the XU100 index and electricity prices.
H4: 
XU100 has a statistically significant positive impact on EP at a 95% of confidence level.
Moreover, money emission by the central bank can be influential because the emission amount can affect the prices of any commodities through liquidity. In addition, including such an indicator is important because most countries have used monetary policy measures to mitigate the negative economic impacts of the COVID-19 pandemic [10]. Hence, we include the TRY emissions by the central bank of the Republic of Turkey (CBRT). It is expected that electricity prices increase while emission amount increases because demand for commodities increases in response to higher liquidity as well. We expect a positive relationship between emission amount and electricity prices.
H5: 
EMISSION has a statistically significant positive impact on EP at a 95% of confidence level.
The electricity market variables take place in the third group of studies. In this group, the consumption amount of electricity and share of renewable sources in total electricity production is observed. References [6,15,16,34] included the supply and demand of electricity in their studies. Naturally, we expect a positive relationship between electricity demand and electricity prices.
H6: 
DEMAND has a statistically significant positive impact on EP at a 95% of confidence level.
Using renewable sources can significantly decrease electricity prices. References [5,34,35,36] used renewable sources as a determinant in their studies. Following these studies, we include renewable sources and expect a negative relationship between renewable sources usage and electricity prices because it is expected that electricity prices decrease while renewable use increases.
H7: 
RENEW has a statistically significant negative impact on EP at a 95% of confidence level.
Moreover, the impact of the COVID-19 pandemic is also considered since it affects both economic and social indicators. The COVID-19 pandemic has been considered by various studies in the literature [10,33,37,38]. In line with these studies, we also account for the pandemic. We expect a positive relationship between the pandemic and electricity prices because the pandemic affects indicators adversely.
H8: 
COVID-19 has a changing effect in importance order of influential factors on EP.
The current studies have used either econometric techniques like Autoregressive Distributed Lag (ARDL), causality & cointegration (Granger, Johansen), Generalized Autoregressive Conditional Heteroskedastic (GARCH), Generalized Method of Moments (GMM), Nonlinear Autoregressive Distributed Lag (NARDL), Regression (Dynamic Ordinary Least Squares-DOLS, Fully Modified Ordinary Least Squares-FMOLS, Ordinary Least Squares-OLS), or machine learning algorithms (Artificial Neural Network-ANN). On the other hand, since studies about working on the prediction performance of electricity prices before and during the pandemic using machine learning algorithms are limited in the literature, different machine learning algorithms’ performances are tested and compared to classical econometric models in this study. Moreover, there is no such study for Turkey in the current literature. This study attempts to add to this limited literature by examining the relative importance of global, national, and electricity market fundamentals as well as the COVID-19 pandemic for electricity prices in Turkey, and by comparing the prediction performance of econometric models and machine learning algorithms. Our results may have important implications for other emerging economies.
In total, seven independent variables as well as the COVID-19 pandemic are included in the analysis with benefiting from the literature. Table 1 summarizes the details of these variables.

3. Data and Methods

3.1. Data

The sample period ranges from 15 February 2019 to 31 March 2021. The first COVID-19 case was determined on 11 March 2020 in Turkey. Hence, the beginning of the pandemic was used to divide data into sub-periods. For this reason, data regarding the pandemic period started on 11 March 2020, and there were 266 observations until 31 March 2021 for this sub-period. We extended the date back to have the same number of observations, namely to 15 February 2019, for the pre-pandemic sub-period. As a result, the data was split into two sub-periods, the pre-pandemic period (15 February 2019–10 March 2020) and the pandemic period (11 March 2020–31 March 2021), and each period had 266 observations. Moreover, we used the last 26 observations in each period for out-of-sample performance evaluation.
Data for all variables were gathered from the Ministry of Health of Turkey [9], Bloomberg [39], CBRT [40], and Energy Exchange Istanbul [41]. Moreover, a business day-based dataset for all variables was used because the study focused on the progress of the electricity prices in both the pre-pandemic and pandemic period.

3.2. Methodology

As depicted in Figure 1, the methodology of this research consists of seven steps as follows: (i) collecting raw data from four different sources, (ii) combining the data to reach the final dataset that is ready to analyze for the pre-pandemic and the pandemic periods, (iii) analyzing descriptive statistics, (iv) conducting time series models to predict electricity prices, (v) creating the train/test design of the machine learning models, (vi) comparing the results of time series models versus machine learning models, and finally (vii) interpreting the results of the best performing model on the electricity prices.

3.2.1. Extreme Gradient Boosting (XGB) Algorithm

XGB is an ensemble machine learning method based on a tree boosting algorithm, which was proposed by the authors of [42]. To optimize the loss function, the XGB algorithm uses not only the first derivative but only the second derivative of this function. The gradient boosting method can improve the effectiveness and flexibility of the model for both prediction and classification problems.
For a given dataset D that has m features and n samples D = { ( x i , y i ) : i = 1 , 2 , , n ,   x i ϵ R m , y i ϵ R } , the objective function is expressed in Equation (1).
o b j ( ϕ ) = i = 1 n l ( y i , y ^ i ) + k = 1 K Ω ( f k )
where l represents the loss function, k is the number of trees, and fk is the kth tree in the model. According to Taylor’s expansion of the objective function, the second-order Taylor of the loss function after the kth iteration was obtained. Therefore, the loss function was calculated to avoid overfitting as given below [43]:
i = 1 n [ l ( y i , y ^ k 1 ) + g i f k ( x i ) + 1 2 h i f k 2 ( x i ) ] + Ω ( f k )
Ω ( f k ) = γ T + 1 2 λ j = 1 T w j 2
In Equations (2) and (3), T is the total number of leaf nodes and w is the score of each leaf node. gi and hi show the first- and second-order derivatives of each sample, respectively [44].

3.2.2. Model Construction and Performance Evaluation

In the machine learning methods, training and testing samples were determined based on the repeated cross-validation methodology to improve the accuracy of the model. Herein, 10-fold with a 5-repeat validation approach was performed to reach the final model, which was named the in-the-sample period. Furthermore, the last 26 observations in both the pre-pandemic and the pandemic periods are were into consideration as an out-of-sample period to evaluate the prediction performance of all models. Measuring the model performance in both in-the-sample (train and test) and out-of-sample confirmed the reliability of the model.
The model performance was evaluated based on the root mean squared error (RMSE), the mean absolute error (MAE), and the mean absolute percentage error (MAPE). The lower values of these statistics indicated that the difference between the actual and predicted values was relatively small. The formulations of the model performance statistics are given in Equations (4)–(6) below:
M A E = 1 n i = 1 n | y i y ^ i |  
M A P E = 1 n i = 1 n | y i y ^ i y i | 100
R M S E = 1 n i = 1 n ( y i y ^ i ) 2
where y i , y ^ i , and n represent the observed values of the dependent variable, predictions of the dependent variables, and the number of observations, respectively.

4. Empirical Analysis

4.1. Descriptive Statistics

The first stage of the analysis is to examine the distribution of the variables using common descriptive statistics and a box-plot approach. Figure 2 and Figure 3 depict the basic statistics and the distributions of the variables used in the study for the pre-pandemic and the pandemic periods.
In the pre-pandemic period, the mean and standard deviation of the electricity price were 282.4 and 44.1, respectively. In addition, the electricity price had a left-skewed distribution with few outliers. On the other hand, independent factors generally had no outliers and the coefficient of variation values were lower than 15 (except for renewable energy), which means that there was no strong variation in the independent factors in the pre-pandemic period. It is not surprising to have a high variation relative to the mean for renewable energy since it depends on weather conditions.
As presented in Figure 3, contrary to the pre-pandemic period, the number of outliers in electricity price, renewable electricity, oil prices, and the volatility index was relatively higher in the pandemic period, which states that the volatility of the aforementioned factors increased. The standard deviations and variations relative to the mean were all above their pre-pandemic levels, reflecting the increased uncertainty due to the pandemic. Furthermore, the average values of the oil prices, volatility index, stock market index, foreign exchanges, and CBRT emission amount in the pre-pandemic period significantly changed in the pandemic period, while the average value of electricity prices stayed stable at the 280–209 level. This descriptive finding is strong evidence that the factors that influence the electricity price should be examined as separate periods for the pre-pandemic and pandemic periods.

4.2. Comparison of Empirical Models

In the study, seven different time series-based and three machine learning-based methodologies were used to predict electricity prices. The performance of the models used in the study was evaluated based on the goodness-of fit-statistics, which are RMSE, MAE, and MAPE. The model performance statistics are given in Table 2 and Table 3 in both the pre-pandemic and the pandemic periods.
The obtained results of the model performed in the pre-pandemic period revealed that the Support Vector Machines (SVM) and XGB algorithms relatively outperformed other models. Although the RMSE values of ARDL, DOLS, and FMOLS, the SVM, and XGB algorithms were close to each other, the MAE and MAPE values of the machine learning models were relatively lower than time series models. Since the k-Nearest Neighbors (k-NN) algorithm was only better than the Threshold model, it is not a good alternative to econometric models to predict electricity prices.
The results of the pandemic period in terms of model comparison statistics were similar to the pre-pandemic period. In the pandemic period, all machine learning algorithms had significantly better performance than the time series models considering the RMSE, MAE, and MAPE statistics.
According to Table 2 and Table 3, machine learning models provide superior prediction performance than time series models for both the pre-pandemic and pandemic periods. After we found that machine learning models produced superior predictions than time series models, we compared the out-of-sample performance of the alternative machine learning algorithms to determine the best-performing model. The out-of-sample performance of machine learning models is presented in Table 4.
As presented in Table 4, the performances of the XGB and SVM algorithms are very close to each other in the pre-pandemic period. On the other hand, when the model is performed for the out-of-sample period to validate the model, it is seen that the XGB algorithm has significantly superior performance to the SVM algorithm. In addition, the performance comparison of all models in the pandemic period was analyzed. Similar to the results of the pre-pandemic period, the XGB algorithm was selected as the suitable model based on minimum RMSE, MAE, and MAPE statistics in both in-the-sample and out-of-sample periods.

4.3. Variable Importance

Variable importance analysis was used to determine the most influencing factor on the target variable to make a prioritization of the actions. The result of the variable relative importance analysis is presented in descending order in Figure 4. According to the literature, since the impacts of the different lag-orders of the electricity price have a significant impact on the electricity prices, the 1-day (EP_1), 1-week (EP_7), and 2-week (EP_14) lags of the electricity prices were included in the model [50,51].
The most influencing factor affecting electricity prices is renewable electricity in both periods. The second and third most important factors, which are the 1-day lag of electricity price and electricity consumption in the pre-pandemic period, had almost equal importance. Furthermore, the impacts of other factors were relatively lower than renewable electricity, the 1-day lag of electricity price, and electricity consumption. In addition, the 2-week lag between electricity price and the volatility index did not have a statistically meaningful impact. Compared to the pre-pandemic period, most of the factors had a slightly increased impact on electricity prices, except for renewable energy in the pandemic period. In this period, 1- and 2-week lag orders of electricity prices had no impact on the electricity prices. In addition, the importance of oil prices and CBRT money emissions significantly increased.
The single effect, interaction effects, and thresholds of the independent factors on electricity prices are visualized in Figure 5 and Figure 6. The thresholds show statistically significant changes in electricity prices over the independent factors. Furthermore, interaction effects show the co-impact of independent factors on the change in electricity prices. In addition, the x-axis represents the values of independent variables, while the y-axis represents the estimated values of the dependent variable in Figure 5 and Figure 6.
As presented in Figure 5, the electricity prices increased as the electricity consumption, oil prices, the volatility index, and CBRT emission amount increased. These findings, as expected, are consistent with the literature, e.g., [13,15,16,21,29,30,32,34]. The critical thresholds of the aforementioned factors were determined as 750,000, 70, 14, and 135, respectively. These critical thresholds are important because it means that electricity prices are significantly increased in areas where electricity consumption, oil prices, the volatility index, and CBRT emission amount are above these critical thresholds. This is why policymakers should create ready-to-action plans based on these thresholds.
On the other hand, there was a strong negative correlation between renewable electricity and electricity prices, which is similar to the results of studies in the literature, e.g., [5,34,35,36]. In addition, the critical threshold of renewable electricity was around 50, and electricity prices were at a lower level when the stock market index and foreign exchanges were between 925–1150 and 5.70–5.90, respectively. The interaction effects between the 1-day lag of electricity prices versus electricity consumption, renewable electricity, and the stock market index were statistically significant. In addition, the following interaction effects were statistically significant: electricity consumption versus renewable electricity, electricity consumption versus the stock market index, and renewable electricity versus the stock market index. To sum up, these findings show that not only individual impact but also interaction effects are taken into consideration by policymakers to estimate or decline the electricity price because of the nexus between variables used in the study.
As given in Figure 6, similar to the pre-pandemic period, electricity prices increased as electricity consumption, oil prices, the stock market index, and CBRT emission amount increase. Similar to the results of the pre-pandemic period, electricity prices decreased as renewable electricity increased. There were clear critical thresholds in a few independent factors in the pandemic period as well. These thresholds for the 1-week lag of electricity prices, electricity consumption, oil prices, the volatility index, the stock market index, and CBRT emission amount increase were 320, 850,000, 64, 28, 1.525, and 180, respectively. Similar to the results obtained from the pandemic period, we observed a 1-day lag of electricity prices versus renewable electricity, the stock market index, and foreign exchanges. In addition, the following interaction effects were statistically significant: renewable electricity versus the stock market index, renewable electricity versus foreign exchanges, and foreign exchanges versus the stock market index. Compatible with the results obtained from the pre-pandemic period, the nexus between electricity prices and independent factors is consistent with the literature during the pandemic period.

4.4. Results of the Best Machine Learning Model

The actual versus the predicted values of the electricity prices in both in-the-sample and out-of-sample periods are given in Figure 7 and Figure 8.
Figure 7 depicts that the ability of the XGB algorithm in predicting the electricity prices in the pre-pandemic period is at a satisfactory level (R2: 85%), especially in sudden increases and decreases. The performance of the model in the out-of-sample period is quite satisfactory as well.
It is evident from the results obtained that the prediction ability of the XGB algorithm is also at a satisfactory level (R2: 80%) during the pandemic period. Hence, it is concluded that the XGB algorithm can predict electricity prices based on the results of both in-the-sample and out-of-sample periods for predicting electricity prices.

5. Discussion and Policy Implications

By following the proposed methodology and making a comparison between time series econometrics and machine learning algorithms, we found that machine learning algorithms provided better prediction performance for electricity prices. Specifically, the Extreme Gradient Boosting (XGB) algorithm provided the best results. Hence, we completed the detailed analysis with the XGB algorithm.
The use of renewable sources emerged as the most important determinant in both periods. However, the relative importance of other influential factors varied across periods. Electricity demand, XU100 index, emission amount, oil prices, USD/TRY FX rates had corresponding importance following renewable sources usage, whereas the VIX index did not have an impact in the pre-pandemic period. However, renewable energy was followed by emission amount, electricity demand, oil prices, XU100 index, USD/TRY FX rates, and VIX index in the pandemic period, respectively. It seems that electricity prices responded more to global factors (i.e., oil price, VIX index) and domestic monetary and economic (i.e., money emissions, XU100, FX) stances during the pandemic.
The results of the Extreme Gradient Boosting (XGB) algorithm showed that oil prices, VIX index, USD/TRY FX rates, stock market index, emission amount, and electricity demand had a positive relationship with the electricity prices, whereas the share of renewable energy had a negative relationship in both periods. Hence, the empirical results obtained reveal that the hypotheses included in the study are validated. These results are consistent with the current literature, e.g., [5,15,16,21,32,52,53,54].
The empirical results suggest that the following policies are appropriate. First, Turkey should focus on increasing the share of renewables in electricity production to increase the affordability of electricity. This would improve the greenhouse gas emission performance of the country as well.
After renewable sources, Turkey should concentrate on electricity consumption as an important factor in the electricity prices. In this regard, Turkey can increase electricity production to meet the demand and improve energy efficiency. For this, Turkey should take into account the rebound effect and develop incentive schemes for renewable energy investments.
The government cannot ignore the effects of stock market developments and money emissions on electricity prices. As variable importance shows, the importance of emission increased in the pandemic period, whereas the importance of XU100 index decreased. Issuing money to mitigate the negative economic impacts of a pandemic leads to rising electricity prices, which may crowd out the initial impact by raising production costs.
The COVID-19 pandemic caused a change in the relative importance of electricity price determinants. Thus, this dynamic change must be followed closely to understand the potential impacts of government policies until the end of the pandemic. It may be fruitful for future research to repeat this analysis in the post-pandemic period.
Last but not least, machine learning algorithms have better prediction performances than time series econometric models. Policymakers and market participants can benefit from these tools to improve their forecasts to design better policies and strategies.
The findings in this study can help Turkish authorities improve stability in the electricity market. Producers, consumers, and investors will benefit from this stability. Turkish policymakers have access to high-frequency data that are not available to the public, and machine learning algorithms can help them utilize these data more effectively.

6. Conclusions

This study identifies the relative importance of electricity price determinants and compares the prediction performance of alternative machine learning and time series models in Turkey. In this context, seven global, national, and electricity-related variables were used. In addition, daily data for two sub-periods, the pre-pandemic (15 February 2019–10 March 2020) and the pandemic (11 March 2020–31 March 2021) periods, were included.
According to our results, machine learning algorithms had better prediction performances than time series econometric models. In addition, according to out-of-sample prediction performance, the XGB algorithm yielded the best results in both periods. XGB results showed that the share of renewables in electricity production was the most important determinant, and the pandemic caused a change in the relative importance of determinants. It is important to keep track of these changing dynamics throughout the pandemic to correctly anticipate the potential impacts of global and local factors on electricity prices. The results obtained from the XGB are consistent with the expectations and the current literature.
The results highlight the importance of renewable energy share for electricity prices, the pandemic’s role in the changing importance of the variables, and the better performance of machine learning algorithms in electricity price prediction. This analysis can be repeated by government authorities using high-frequency data, which are not available to the public, to illuminate the path for a more stable electricity market in Turkey.
Although this study makes a comprehensive empirical examination, unfortunately, it has some limitations. In this context, continuing this line of research in other emerging countries can be fruitful in understanding the drivers of electricity price stability during natural crises. A comparative study between highly and less affected countries by the COVID-19 pandemic can be beneficial. In addition, including more factors and using different indicators, which were not included in this study, can be considered in new studies to either validate the results of this study or obtain different insights regarding electricity prices. Moreover, different time series econometric models, mixed models considering the unobserved heterogeneity in the data, and machine learning algorithms not included in this study can be applied in forthcoming studies.

Author Contributions

Conceptualization, M.T.K. and S.K.D.; Data curation, H.M.E., M.T.K. and S.K.D.; Formal analysis, H.M.E., M.T.K. and S.K.D.; Investigation, H.M.E.; Methodology, H.M.E., M.T.K. and S.K.D.; Project administration, U.S.; Supervision, U.S.; Validation, H.M.E.; Writing—original draft, H.M.E., M.T.K., S.K.D. and U.S.; Writing—review & editing, H.M.E., M.T.K., S.K.D. and U.S. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

Data will be made available on request.

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A

Figure A1. The progress of electricity prices in Turkey.
Figure A1. The progress of electricity prices in Turkey.
Energies 15 07512 g0a1

References

  1. Kartal, M.T.; Kirikkaleli, D.; Ayhan, F. Nexus between Non-Performing Loans and Economic Growth in Emerging Markets: Evidence from Turkey with Wavelet Coherence Approach. Int. J. Financ. Econ. 2021, 1–11. [Google Scholar] [CrossRef]
  2. Costanza, R.; Kubiszewski, I.; Giovannini, E.; Lovins, H.; McGlade, J.; Pickett, K.E.; Wilkinson, R. Time to leave GDP behind. Nature 2014, 505, 283–285. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  3. OECD. Beyond GDP: Measuring What Counts for Economic and Social Performance; OECD Publications: Paris, France, 2018. [Google Scholar]
  4. Rahman, S.M.K.; Chowdhury, M.A.F.; Tania, T.C. Nexus among Bank Competition, Efficiency and Financial Stability: A Comprehensive Study in Bangladesh. J. Asian Financ. Econ. Bus. 2021, 8, 317–328. [Google Scholar]
  5. Bohlmann, J.A.; Inglesi-Lotz, R. Examining the Determinants of Electricity Demand by South African Households per Income Level. Energy Policy 2021, 148, 111901. [Google Scholar] [CrossRef]
  6. Girish, G.P.; Vijayalakshmi, S. Determinants of Electricity Price in Competitive Power Market. Int. J. Bus. Manag. 2013, 8, 70–75. [Google Scholar]
  7. Goodell, J.W. COVID-19 and Finance: Agendas for Future Research. Financ. Res. Lett. 2020, 35, 101512. [Google Scholar] [CrossRef]
  8. World Health Organization. Coronavirus Disease (COVID-19) Outbreak Situation. 2021. Available online: https://www.who.int/emergencies/diseases/novel-coronavirus-2019 (accessed on 15 May 2021).
  9. Ministry of Health of Turkey. COVID-19 Numbers. 2021. Available online: https://covid19.saglik.gov.tr/TR-66935/genel-koronavirus-tablosu.html (accessed on 7 April 2021).
  10. Depren, Ö.; Kartal, M.T.; Kılıç Depren, S. Changes of Gold Prices in COVID-19 Pandemic: Daily Evidence from Turkey’s Monetary Policy Measures with Selected Determinants. Technol. Forecast. Soc. Change 2021, 170, 120884. [Google Scholar] [CrossRef]
  11. Mulder, M.; Scholtens, B. The Impact of Renewable Energy on Electricity Prices in the Netherlands. Renew. Energy 2013, 57, 94–100. [Google Scholar] [CrossRef]
  12. Al-Bajjali, S.K.; Shamayleh, A.Y. Estimating the Determinants of Electricity Consumption in Jordan. Energy 2018, 147, 1311–1320. [Google Scholar] [CrossRef]
  13. Sharma, R.; Kautish, P. Dynamism between Selected Macroeconomic Determinants and Electricity Consumption in India. Int. J. Soc. Econ. 2019, 46, 805–821. [Google Scholar] [CrossRef]
  14. Ridzuan, A.R.; Kamaluddin, M.; Ismail, N.A.; Razak MI, M.; Haron, N.F. Macroeconomic Indicators for Electrical Consumption Demand Model in Malaysia. Int. J. Energy Econ. Policy 2020, 10, 16. [Google Scholar] [CrossRef]
  15. Soytaş, M.A.; Ertuğrul, H.M.; Ulussever, T. Nonlinear Excess Demand Model for Electricity Price Prediction; Working Papers; Economic Research Forum: Giza, Egypt, 2020. [Google Scholar]
  16. Moutinho, V.; Oliveira, H.; Mota, J. Examining the Long Term Relationships between Energy Commodities Prices and Carbon Prices on Electricity Prices using Markov Switching Regression. Energy Rep. 2022, 8, 589–594. [Google Scholar] [CrossRef]
  17. Fatema, I.; Kong, X.; Fang, G. Analysing and Forecasting Electricity Demand and Price Using Deep Learning Model During the COVID-19 Pandemic. In International Symposium on Parallel Architectures, Algorithms and Programming; Springer: Singapore, 2020; pp. 115–127. [Google Scholar]
  18. Ghiani, E.; Galici, M.; Mureddu, M.; Pilo, F. Impact on Electricity Consumption and Market Pricing of Energy and Ancillary Services during Pandemic of COVID-19 in Italy. Energies 2020, 13, 3357. [Google Scholar] [CrossRef]
  19. Halbrügge, S.; Schott, P.; Weibelzahl, M.; Buhl, H.U.; Fridgen, G.; Schöpf, M. How Did the GERMAN and Other European Electricity Systems React to the COVID-19 Pandemic? Appl. Energy 2021, 285, 116370. [Google Scholar] [CrossRef]
  20. Xu, A.T.; Gao, B.W.; Li, C.Y.; Qian, D.F. Impact of the COVID-19 Pandemic on the Reduction of Electricity Demand and the Integration of Renewable Energy into the Power Grid. J. Renew. Sustain. Energy 2021, 13, 026304. [Google Scholar]
  21. Kılıç Depren, S.; Kartal, M.T.; Ertuğrul, H.M.; Depren, Ö. The Role of Data Frequency and Method Selection in Electricity Price Estimation: Comparative Evidence from Turkey in Pre-Pandemic and Pandemic Periods. Renew. Energy 2022, 186, 217–225. [Google Scholar] [CrossRef]
  22. Keleş, D.; Scelle, J.; Paraschiv, F.; Fichtner, W. Extended Forecast Methods for Day-Ahead Electricity Spot Prices Applying Artificial Neural Networks. Appl. Energy 2016, 162, 218–230. [Google Scholar] [CrossRef]
  23. Santiago, I.; Moreno-Munoz, A.; Quintero-Jiménez, P.; Garcia-Torres, F.; Gonzalez-Redondo, M.J. Electricity Demand during Pandemic Times: The Case of the COVID-19 in Spain. Energy Policy 2021, 148, 111964. [Google Scholar] [CrossRef]
  24. Ruan, G.; Wu, J.; Zhong, H.; Xia, Q.; Xie, L. Quantitative Assessment of US Bulk Power Systems and Market Operations during the COVID-19 Pandemic. Appl. Energy 2021, 286, 116354. [Google Scholar] [CrossRef]
  25. Mohammadi, H. Electricity Prices and Fuel Costs: Long-Run Relations and Short-Run Dynamics. Energy Econ. 2009, 31, 503–509. [Google Scholar] [CrossRef]
  26. Muñoz, M.P.; Dickey, D.A. Are Electricity Prices Affected by the US Dollar to Euro Exchange Rate? The Spanish Case. Energy Econ. 2009, 31, 857–866. [Google Scholar] [CrossRef]
  27. Furió, D.; Chuliá, H. Price and Volatility Dynamics between Electricity and Fuel Costs: Some evidence for Spain. Energy Econ. 2012, 34, 2058–2065. [Google Scholar] [CrossRef]
  28. Nakajima, T.; Hamori, S. Causality-in-Mean and causality-in-Variance among Electricity Prices, Crude Oil Prices, and Yen–US Dollar Exchange Rates in Japan. Res. Int. Bus. Financ. 2012, 26, 371–386. [Google Scholar] [CrossRef]
  29. Paraschiv, F.; Erni, D.; Pietsch, R. The Impact of Renewable Energies on EEX Day-Ahead Electricity Prices. Energy Policy 2014, 73, 196–210. [Google Scholar] [CrossRef] [Green Version]
  30. Biber, A.; Tunçinan, M.; Wieland, C.; Spliethoff, H. Negative Price Spiral Caused by Renewables? Electricity Price Prediction on the German Market for 2030. Electr. J. 2022, 35, 107188. [Google Scholar] [CrossRef]
  31. Atmaca, S.; Karadaş, H.A. Decision Making on Financial Investment in Turkey by Using ARDL Long-Term Coefficients and AHP. Financ. Innov. 2020, 6, 1–22. [Google Scholar] [CrossRef]
  32. Chien, F.; Sadiq, M.; Kamran, H.W.; Nawaz, M.A.; Hussain, M.S.; Raza, M. Co-Movement of Energy Prices and Stock Market Return: Environmental Wavelet Nexus of COVID-19 Pandemic from the USA, Europe, and China. Environ. Sci. Pollut. Res. 2021, 28, 32359–32373. [Google Scholar] [CrossRef] [PubMed]
  33. Kartal, M.T.; Ayhan, F.; Kirikkaleli, D. Regime-Switching Effect of COVID-19 Pandemic on Stock Market Index: Evidence from Turkey as An Emerging Market Example. Macroecon. Financ. Emerg. Market. Econ. 2022, 1–18. [Google Scholar] [CrossRef]
  34. Huisman, R.; Stradnic, V.; Westgaard, S. Renewable Energy and Electricity Prices: Indirect Empirical Evidence from Hydro Power; IEB Working Paper; SSNR: Rochester, NY, USA, 2013. [Google Scholar]
  35. Bublitz, A.; Keles, D.; Fichtner, W. An Analysis of the Decline of Electricity Spot Prices in Europe: Who is to Blame? Energy Policy 2017, 107, 323–336. [Google Scholar] [CrossRef]
  36. Da Silva, P.P.; Cerqueira, P.A. Assessing the Determinants of Household Electricity Prices in the EU: A System-GMM Panel Data Approach. Renew. Sustain. Energy Rev. 2017, 73, 1131–1137. [Google Scholar] [CrossRef] [Green Version]
  37. Kartal, M.T. The Effect of COVID-19 Pandemic on Oil Prices: Daily Evidence from Turkey. Energy Res. Lett. 2021, 1, 1–4. [Google Scholar] [CrossRef]
  38. Yılmazkuday, H. COVID-19 and Housing Prices: Evidence from US County-Level Data. 2021. Available online: https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3746552 (accessed on 15 May 2021).
  39. Bloomberg. Bloomberg Terminal; Borsa Istanbul: Istanbul, Turkey, 2021. [Google Scholar]
  40. CBRT. Electronic Data Distribution System (EVDS). 2021. Available online: https://evds2.tcmb.gov.tr/index.php?/evds/serieMarket (accessed on 7 April 2021).
  41. EXIST. Data of Electricity Prices, Electricity Production, and Renewable Electricity; EXIST: Istanbul, Turkey, 2021. [Google Scholar]
  42. Chen, T.; Guestrin, C. Xgboost: A Scalable Tree Boosting System. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, San Francisco, CA, USA, 13–17 August 2016; pp. 785–794. [Google Scholar]
  43. Yu, B.; Qiu, W.; Chen, C.; Ma, A.; Jiang, J.; Zhou, H.; Ma, Q. SubMito-XGBoost: Predicting Protein Submitochondrial Localization by Fusing Multiple Feature Information and eXtreme Gradient Boosting. Bioinformatics 2020, 36, 1074–1081. [Google Scholar] [CrossRef] [PubMed]
  44. Zhang, W.; Wu, C.; Zhong, H.; Li, Y.; Wang, L. Prediction of Undrained Shear Strength using Extreme Gradient Boosting and Random Forest Based on Bayesian Optimization. Geosci. Front. 2021, 12, 469–477. [Google Scholar] [CrossRef]
  45. Ertuğrul, H.M.; Gebeşoğlu, P.F. The Effect of Private Pension Scheme on Savings: A Case Study for Turkey. Borsa Istanb. Rev. 2020, 20, 172–177. [Google Scholar] [CrossRef]
  46. Ertuğrul, H.M.; Seven, Ü. Dynamic Spillover Analysis of International and Turkish Food Prices. Int. J. Financ. Econ. 2021. [Google Scholar] [CrossRef]
  47. Kılıç Depren, S.; Kartal, M.T. Prediction on the Volume of Non-Performing Loans in Turkey using Multivariate Adaptive Regression Splines Approach. Int. J. Financ. Econ. 2021, 26, 6395–6405. [Google Scholar] [CrossRef]
  48. Kartal, M.T.; Depren, Ö.; Depren, S.K. The Determinants of Main Stock Exchange Index Changes in Emerging Countries: Evidence from Turkey in Covid-19 Pandemic Age. Quant. Financ. Econ. 2020, 4, 526–541. [Google Scholar] [CrossRef]
  49. Depren, Ö.; Kartal, M.T.; Kılıç Depren, S. Recent Innovation in Benchmark Rates (BMR): Evidence from Influential Factors on Turkish Lira Overnight Reference Interest Rate with Machine Learning Algorithms. Financ. Innov. 2021, 7, 1–20. [Google Scholar] [CrossRef]
  50. Singhal, D.; Swarup, K.S. Electricity Prices Forecasting using Artificial Neural Networks. Electr. Power Energy Syst. 2011, 33, 550–555. [Google Scholar] [CrossRef]
  51. Yorulmuş, H.; Uğurlu, U.; Taş, O. A Long Short Term Memory Application on the Turkish Intraday Electricity Price Forecasting. PressAcademia Procedia 2018, 7, 126–130. [Google Scholar] [CrossRef]
  52. Yan, X.; Jie, W.; Minjun, S.; Shouyang, W.; Zhuoying, Z. China’s Regional Imbalance in Electricity Demand, Power and Water Pricing-From the Perspective of Electricity-Related Virtual Water Transmission. Energy 2022, 257, 124775. [Google Scholar] [CrossRef]
  53. Castelli, M.; Groznik, A.; Popovič, A. Forecasting Electricity Prices: A Machine Learning Approach. Algorithms 2020, 13, 119. [Google Scholar] [CrossRef]
  54. Vega-Márquez, B.; Rubio-Escudero, C.; Nepomuceno-Chamorro, I.A.; Arcos-Vargas, Á. Use of Deep Learning Architectures for Day-Ahead Electricity Price Forecasting over Different Time Periods in the Spanish Electricity Market. Appl. Sci. 2021, 11, 6097. [Google Scholar] [CrossRef]
Figure 1. The methodology flowchart.
Figure 1. The methodology flowchart.
Energies 15 07512 g001
Figure 2. Descriptive statistics in the pre-pandemic period (15 February 2019–10 March 2020).
Figure 2. Descriptive statistics in the pre-pandemic period (15 February 2019–10 March 2020).
Energies 15 07512 g002
Figure 3. Descriptive statistics in the pandemic period (11 March 2020–31 March 2021).
Figure 3. Descriptive statistics in the pandemic period (11 March 2020–31 March 2021).
Energies 15 07512 g003
Figure 4. Variable importance analysis of the XGB algorithm.
Figure 4. Variable importance analysis of the XGB algorithm.
Energies 15 07512 g004
Figure 5. Single and interaction effects of independent variables in the pre-pandemic period.
Figure 5. Single and interaction effects of independent variables in the pre-pandemic period.
Energies 15 07512 g005
Figure 6. Single and interaction effects of independent variables in the pandemic period.
Figure 6. Single and interaction effects of independent variables in the pandemic period.
Energies 15 07512 g006
Figure 7. Actual and predicted values in the pre-pandemic period.
Figure 7. Actual and predicted values in the pre-pandemic period.
Energies 15 07512 g007
Figure 8. Actual and predicted values in the pandemic period.
Figure 8. Actual and predicted values in the pandemic period.
Energies 15 07512 g008
Table 1. The description of the variables.
Table 1. The description of the variables.
GroupVariableSymbolDescriptionRelation
DependentElectricity PricesEPSpot Electricity Prices (TRY/MWh)
GlobalOil PricesOILBrent Crude Oil Prices (USD/Barrel)+
VolatilityVIXVolatility Index+
NationalForeign ExchangesUSDTRYUSD/TRY FX Rate+
Stock Market IndexXU100XU100 Price Index+
Central Bank EmissionEMISSIONAmount of Money Issued by CBRT+
Electricity RelatedElectricity ConsumptionDEMANDElectricity Consumption (MWh)+
Renewable ElectricityRENEWShare of Renewable Energy in Electricity Production (%)-
Table 2. Prediction performance comparison of models in the pre-pandemic period.
Table 2. Prediction performance comparison of models in the pre-pandemic period.
GroupModelRMSEMAEMAPE
Time Series
Econometrics 1
AR20.37317.1525.783
ARDL17.66412.6444.435
DOLS17.55614.0934.885
FMOLS17.25112.6864.451
MARKOV16.26912.7114.418
THRESHOLD32.76419.1956.742
OLS18.80516.4125.609
Machine Learning Algorithms 1SVM17.46311.5353.230
XGB17.50312.0513.234
k-NN21.51813.4194.699
1 To save space and not to extend the article too much, the mentioned methods are not discussed broadly. Detailed information concerning these models can be found in [45,46] for time series econometric models and [10,21,47,48,49] for machine learning algorithms.
Table 3. Prediction performance comparison of alternative models in the pandemic period.
Table 3. Prediction performance comparison of alternative models in the pandemic period.
GroupModelRMSEMAEMAPE
Time Series
Econometrics
AR29.47022.9027.048
ARDL57.66152.45116.580
DOLS55.65550.96216.117
FMOLS57.56652.55016.621
MARKOV55.40550.05215.770
THRESHOLD35.45730.7019.571
OLS62.18457.01818.050
Machine
Learning Algorithms
SVM21.05614.8102.490
XGB21.20815.0524.383
k-NN25.63917.4395.429
Table 4. The Out-of-Sample Period Performance of Machine Learning Algorithms.
Table 4. The Out-of-Sample Period Performance of Machine Learning Algorithms.
PeriodModelIn-the-SampleOut-of-Sample
RMSEMAEMAPERMSEMAEMAPE
Pre-Pandemic PeriodXGB17.50312.0513.23415.51211.8194.076
SVM17.46311.5353.23018.85815.4635.291
k-NN21.51813.4194.69925.22818.4856.700
Pandemic PeriodXGB21.05614.8102.49021.64116.5805.145
SVM21.20815.0524.38325.45221.9346.849
k-NN25.63917.4395.42919.42114.1794.376
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Ertuğrul, H.M.; Kartal, M.T.; Depren, S.K.; Soytaş, U. Determinants of Electricity Prices in Turkey: An Application of Machine Learning and Time Series Models. Energies 2022, 15, 7512. https://doi.org/10.3390/en15207512

AMA Style

Ertuğrul HM, Kartal MT, Depren SK, Soytaş U. Determinants of Electricity Prices in Turkey: An Application of Machine Learning and Time Series Models. Energies. 2022; 15(20):7512. https://doi.org/10.3390/en15207512

Chicago/Turabian Style

Ertuğrul, Hasan Murat, Mustafa Tevfik Kartal, Serpil Kılıç Depren, and Uğur Soytaş. 2022. "Determinants of Electricity Prices in Turkey: An Application of Machine Learning and Time Series Models" Energies 15, no. 20: 7512. https://doi.org/10.3390/en15207512

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