Next Article in Journal
Optimal Electric Motor Designs of Light Electric Vehicles: A Review
Previous Article in Journal
An Economic Performance Improving and Analysis for Offshore Wind Farm-Based Islanded Green Hydrogen System
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Joint Component Estimation for Electricity Price Forecasting Using Functional Models

1
Department of Statistical Sciences, University of Padua, 35121 Padua, Italy
2
Department of Statistics, Quaid-i-Azam University, Islamabad 45320, Pakistan
*
Authors to whom correspondence should be addressed.
Energies 2024, 17(14), 3461; https://doi.org/10.3390/en17143461
Submission received: 29 May 2024 / Revised: 8 July 2024 / Accepted: 11 July 2024 / Published: 14 July 2024
(This article belongs to the Section C: Energy Economics and Policy)

Abstract

:
This work considers the issue of modeling and forecasting electricity prices within the functional time series approach. As this is often performed by estimating and predicting the different components of the price dynamics, we study whether jointly modeling the components, able to account for their inter-relations, could improve prediction with respect to a separate instance of modeling. To investigate this issue, we consider and compare the predictive performance of four different predictors. The first two, namely Smoothing Splines-Seasonal Autoregressive (SS-SAR) and Smoothing Splines-Functional Autoregressive (SS-FAR) are based on separate modeling while the third one is derived from a single-step procedure that jointly estimates all the components by suitably including exogenous variables. It is called Functional Autoregressive with eXogenous variables (FARX) model. The fourth one is a combination of the SS-FAR and FARX predictors. The predictive performances of the models are tested using electricity price data from the northern zone of the Italian electricity market (IPEX), both in terms of forecasting error indicators (MAE, MAPE and RMSE) and by means of the Diebold and Mariano test. The results point out that jointly estimating the components leads to significantly more accurate predictions than using a separate instance of modeling. In particular, the MAE, MAPE, and RMSE values for the best predictor, based on the FARX( 3 , 0 , 4 ) model, are 4.25, 9.28, and 5.38, respectively. The percentage error reduction is about 20% with respect to SS-SAR ( 3 , 1 ) and about 10% with respect to SS-FAR(5). Finally, this study suggests that the forecasting errors are generally higher on Sunday and Monday, from hours 3 to 6 in the morning and 14 to 15 in the afternoon, and in June and December. On the other hand, prices are relatively lower on Wednesday, Thursday, and Friday, from hour 20 to 1 a.m., and in January and February.

1. Introduction

Electricity price forecasting is an important issue for producers and consumers in today’s competitive electricity markets. As electricity cannot be efficiently and economically stored in large quantities using current technologies, a slight shift in demand can result in a massive change in electricity prices and, hence, pose a significant risk for traders in the markets. Accurate forecasts empower energy companies to optimize their production schedules, mitigate risks, and make informed trading decisions. Moreover, the end consumers also benefit from improved budgeting and strategic consumption planning. Meanwhile, electricity price forecasting is a challenging task due to its specific features [1].
It is well known that time series of electricity prices are characterized by both long-term and periodic (yearly, weekly, and daily) behaviors, calendar effect, spikes and/or level shifts as well as short-term serial dependence [2,3]. All these components have been considered in several ways in the literature, but we can divide them into methods considering some components as deterministic and others as stochastic, and methods that model all the components as stochastic. In the first case, the usual approach is filtering the deterministic components by some procedure, for example, using smoothing spline and stochastically modeling the residual component [4]. For example, ref. [5] proposed a semi-parametric component-based model consisting of a non-parametric (smoothing spline) and a parametric (autoregressive moving average (ARMA) model) component. To capture different characteristics of day-ahead electricity prices, ref. [6] proposed a model based on the improved empirical mode decomposition (IEMD), ARMA with exogenous terms (ARMAX), exponential generalized autoregressive conditional heteroscedasticity (EGARCH) and adaptive network-based fuzzy inference system (ANFIS). The non-parametric regression techniques and semi-functional partial linear models are used by [7] for electricity demand and price prediction. In this case, the deterministic components are filtered out first, and then the residual component is modeled with a suitable stochastic process.
In the second case, all components are jointly accounted by a single stochastic model [8,9,10]. For instance, ref. [11] studied the periodic behavior of the electricity prices using the seasonal Reg-ARFIMA-GARCH model that explains the conditional mean and variance of electricity prices. Ref. [12] studied the performance of AR-GARCH models on the Indian spot electricity price series. Different seasonalities are captured in the model using hourly, weekly, and daily dummy variables. The conditional mean and conditional variance equations for different variants of the model are estimated, and the forecasting performance of the calibrated models is assessed using standard accuracy measures. The study suggested that AR-GARCH and AR-EGARCH outperform the competitors. Ref. [13] compared the forecasting performance of different approaches, including transfer function, ARIMA, wavelet, and artificial NN used for electricity price forecasting. Ref. [14] studied the performance of univariate time series models for forecasting electricity demand using both components jointly.
Apart from the two approaches described above, researchers used different classical and machine learning techniques to model and forecast electricity prices [15,16,17]. For instance, ref. [18] performed short-term price prediction using regression trees to predict the electricity price. The results of the proposed method are compared with alternative methods like ARIMA, exponential smoothing, and neural networks (NN). The empirical results show that the proposed method performs better than the competitors. Ref. [19] used a variable-segmented support vector machine-based model (VS-SVM) for day-ahead price forecasting in Ontario’s electricity market. The author used the heuristic model, simulation model (Monte Carlo simulation approach), multiple linear regression (MLR), NN model, neuro-fuzzy, ARIMA, dynamic regression model (DRM), and transfer function model (TFM) to compare with the proposed hybrid model. The results indicated that the VS-SVM model outperformed all the other models in terms of MAPE and RMSE. Ref. [20] proposed a fuzzy neural network-based method for short-term price forecasting for mainland Spain’s electricity market. The author compared the proposed model with other fuzzy regression models and hybrid approaches based on NN and fuzzy logic, ARIMA, wavelet-ARIMA, multi-layer perceptron (MLP) and radial basis function (RBF) neural networks. The results indicated that the proposed method outperformed other methods in terms of forecasting accuracy and robustness against outliers and non-stationary behavior of the price series. The use of these forecasting models is not limited to the electricity market as they are extensively used in other research fields [21,22,23]. A summary of previous studies concerning electricity market forecasting is given in Table 1.
In the last years, a promising approach to deal with the complex behavior of electricity markets time series is that based on functional data analysis. Functional modeling can handle high-dimensional data and facilitates the transformation of long forecast horizons into a one-step-ahead functional forecast [24,25]. Considering functional data allows one to obtain forecasts for ultra-short periods, which is not possible with traditional techniques. In addition, it is particularly useful to describe daily periodic profiles of some market variables. In the electricity prices time series literature, when the functional approach has been involved, the separate estimation has always been used. While a separate estimation permits to highlight the role of each component, a joint estimation could account for those inter-relations among components that a separate modeling process usually ignores, possibly improving prediction. In this work, we try to fill the gap by suggesting a functional model that allows for the joint estimation of the components. To investigate the issue, we consider and compare the predictive performance of different predictors referring to both the separate and the joint component estimation. In more detail, we consider two models based on the separate component estimation which use smoothing splines (SS) in the first step and SARIMA (SS-SAR) models or standard functional autoregressive (SS-FAR) models in the second step. For the joint estimation, we consider an extension of the standard FAR model which includes exogenous variables describing the deterministic components (FARX). A suitable estimation procedure based on principal components is proposed. For a deeper insight, we also consider a predictor based on a combination of the two approaches. We test the predictive performances of the models on the hourly electricity prices of the northern zone of the Italian electricity market (IPEX) and show that, using functional models, the joint components estimation leads to significantly better prediction than the separate estimation.
Table 1. Summary of literature review.
Table 1. Summary of literature review.
No.AuthorsMarketForecastingMethodsAccuracy Measures
1Marcjasz et al. (2023) [26]GermanyDay-aheadDNNMAE, RMSE, CRPS
2Alberto et al. (2011) [27]SpainDay-aheaddouble seasonal ARIMA, ES modelSSR, MAPE
3Girish (2016) [12]IndiaHour-aheadAR-GARCH, ARIMA-EGARCHRMSE, MAE, MAPE
4Zhang et al. (2019) [5]Spain, AustraliaDay-aheadIEMD, ARMAX, EGARCH, ANFISMAE, RMSE, MAPE
5Aggarwal et al. (2009) [19]CanadaHour-AheadVS-SVM, MLR, NN, DRMRMSE, MAPE
6Amjady (2006) [20]SpainDay-aheadARIMA, Wavelet-ARIMA, MLP, RBFTE, DME
7Shah et al. (2020) [28]ItalyDay-aheadAR, NPAR, FAR, NPFARMAE, MAPE, R 2
8Vilar et al. (2012) [7]SpainDay-aheadARIMA, FNP, SFPLDEs, SE
9Conejo et al. (2005) [29]SpainDay-aheadwavelet transform, ARIMADEs, HE
10Dudek (2015) [18]PolandDay-aheadRF, ARIMA, ES, NNRMSE
Distributional Neural Networks (DNN), Exponential Smoothing (ES), Continuous Ranked Probability Score (CRPS), Sum of Squared Residuals (SSR), Training Error (TE), Daily Mean Error (DME), Functional Non-parametric (FNP), Semi-Functional Partial Linear (SFPL), Daily Errors (DEs), Seasonal Error (SE), Hourly Error (HE), Random Forest (RF).
The rest of the paper is structured as follows. The general framework within which we move is described in Section 2. Section 3 provides a basic introduction to functional data and the details of the functional models we use. The description of the data, as well as of our forecasting exercise, are contained in Section 4. Section 5 concludes the paper.

2. General Framework

The general framework within which we move in this work is the following.
Let us denote by P t , j the time series of the price for day t and load period (hour) h, t = 1 , , n and h = 1 , , 24 . We assume that its logarithm, log ( P t , j ) , can be decomposed in several additive components:
l o g ( P t , j ) = T t , j + Y t , j + W t , j + C t , j + p t , j
where T t , j represents the long-run (trend component), Y t , j is the annual periodic component, W t , j is the weekly cycles, C t , j is the calendar component describing the effect of bank holidays and other possible calendar effects. Finally, p t , j = describes the short-run dynamics of the price series. Note that since expression (1) refers to a given time slot j, the daily component, due to the periodicity over the hours of the day, is not present. This is why, in the rest of the work, when not necessary, we will omit the hour subscript j.
Usually, the trend is represented through the sequence 1 , 2 , , n , the yearly component by the sequence ( 1 , , 365 , 1 , , 365 , ) or by trigonometric functions, the weekly period by the sequence ( 1 , , 7 , 1 , , 7 , ) , while bank holidays are described by dummy variables.
In the literature, these components have been treated in several ways: using different models or approaches, assuming that the first four components are deterministic while the residual component is stochastic [30] or treating all components as stochastic [31], estimating them separately or jointly. In this work, we compare the predictive performance of functional models when the components are separately or jointly modeled. To the best of our knowledge, the joint estimation of the components using functional methods is new within energy markets.
In the separate approach, the deterministic and the stochastic components are usually estimated using a two-step procedure. First the deterministic components are estimated, then the stochastic component is obtained as the residual difference
p t , j = l o g ( P t , j ) T ^ t j , + Y ^ t , j + W ^ t , j + C ^ t , j .
The series p t are then modeled following some stochastic approach.
In this work, for each given time period j, we estimate the deterministic components using the non-parametric additive model:
l o g ( P t ) = f 1 ( T t ) + f 2 ( Y t ) + f 3 ( W t ) + δ ( C t ) + ε t ,
where δ is a constant parameter defining the bank holidays effect and f i are functions describing the relations between l o g ( P t ) , which are jointly estimated through smoothing splines.
After the residual component p t , j has been estimated using expression (2), we put together the series p t , j to convert them in functional time series. To this end, we use B-spline basis functions, so that we can write
p t ( τ ) = k = 1 K C t k ϕ t k ( τ )
where C t k are constant parameters, ϕ t k ( τ ) represent the B-spline basis functions, and K is the number of basis functions used.
Once the functional time series p t ( τ ) is available, we model it by means of functional autoregressive models (FAR).
The final prediction is obtained by summing the individual forecast:
P ^ t + 1 , j = exp ( f ^ 1 ( T t + 1 ) + f ^ 2 ( Y t + 1 ) + f ^ 3 ( W t + 1 ) + δ ( C t + 1 ) + p ^ t + 1 , j ) .
When the joint estimation approach is considered, both deterministic and stochastic components are estimated using a single-step procedure. This helps to account for possible relationships between deterministic and stochastic components. While joint estimation of the components is not a novelty, it is new in the energy field using functional models.
For the joint estimation, we consider a functional autoregressive model with suitable exogenous variables (FARX), allowing us to include the effects of scalar or functional exogenous drivers. The estimation of such a model is challenging since the computational burden increases more than linearly with the lag orders of endogenous and exogenous variables. In addition, in many cases, the estimation is unfeasible due to the unboundedness of the inverse of covariance operators. Thus, a feasible and adaptable strategy is required. In this work, we use the principle component analysis (PCA) to reduce the number of variables while retaining most information included in the endogenous and exogenous variables. In this case, first log( P t , j ) is converted into a functional time series using the methodology explained in Section 2 and, then, a suitable FARX model is estimated using the PCA approach. The estimated model also allows for the series prediction.

3. Functional Data Analysis

3.1. Preliminaries

This section provides a basic introduction to functional data analysis which is essential to understand the contents of this work. In the following, we will use the mathcal font to denote functional objects, bold fonts for vectors and matrices, and normal fonts for scalar quantities.
Let Z t ( τ ) be a time series of functional observations, where τ a , b and t N . Usually the interval a , b is normalized to 0 , 1 . For each t, the observation Z t ( τ ) belongs to the Hilbert space H L 2 0 , 1 , · of square integrable functions which is equipped with a norm · induced by the inner product x , z = x ( t ) z ( t ) d t .
For a generic time series Z t ( τ ) , defined on a probability space ( Ω , A , P ) , with mean function E Z t ( τ ) = μ ( τ ) , the covariance function C X , with x L 2 [ 0 , 1 ] , is defined as
C X = E Z t ( τ ) μ , X Z t ( τ ) μ
The covariance function (6) can also be expressed using the following spectral decomposition:
C X = k = 1 λ k ϕ k , x ϕ k
where · , · is the inner product, λ k k 1 is the strictly positive decreasing sequence of eigenvalues of (6) and ϕ k k 1 denotes the corresponding sequence of eigenfunctions which form an orthonormal basis system for H .
The functional time series Z t ( τ ) can also be represented using the principal component approach, based on the Karhunen-Loève representation [32]. If Z t * ( τ ) = Z t ( τ ) μ ( τ ) , we can write:
Z t * ( τ ) = k = 1 y k , t ϕ k ( τ ) ,
where y k , t = Z t * ( τ ) ϕ k ( τ ) d τ denotes the k t h functional principal component score while ϕ k ( τ ) are the function principal components (FPC). The functional principal component constitutes an uncorrelated set of random variables with zero mean and variance λ k . The λ k s are such that λ 1 λ 2 λ 3 .
The main advantage of expansion (8) is it allows dimension reduction as the first d terms often provide a good enough approximation to the infinite sum and, thus, the information contained in Z t * can be adequately summarized considering only the first d principal components. The approximated process is given by
Z t * ( τ ) k = 1 d y k , t ϕ k ( τ ) ,
More details on functional principal components and their practical applications are given in [33,34].
In practice, all the previously defined quantities have to be estimated starting from an observed time series, Z 1 * ( τ ) , , Z n * ( τ ) , representing a finite realization of the underlying random process. To this end, the following estimators can be used:
μ ^ ( τ ) = 1 n i = 1 n Z i ( τ ) ,
C ^ n x = 1 n i = 1 n Z i ( τ ) , x Z i ( τ ) .
The authors of [35] showed that the estimators (10) and (11) are consistent estimators for weekly dependent processes. Then, using the KL expansion, the realizations of the random process Z ^ t * ( τ ) can be written as
Z ^ t * ( τ ) = k = 1 d y ^ k , t ϕ ^ k ( τ ) + ϵ ^ ( τ ) , i = 1 , 2 , N
where y ^ k , t is the k t h estimated functional principle component score for the t t h observation, ϕ ^ k ( τ ) is the k t h functional principle components and ϵ ^ ( τ ) is an estimated white noise. This formulation allows us to describe the FAR and FARX models, which will be used to forecast Z t * ( τ ) .

3.2. Functional Autoregressive Models

One of the simplest ways to model a functional time series Z t ( τ ) is to use a functional autoregressive model of order p, F A R ( p ) [36]. A FAR(p) model, which is the generalization of an A R ( p ) model to the case of functional objects, is defined as
Z t ( τ ) = j = 1 p Ψ j Z t j ( τ ) + N t ( τ )
where Ψ j ( j = 1 , , p ) are the functional parameters of the model, Z t j ( τ ) are lagged functional variables and N t ( τ ) is a strong H -white noise with zero mean and finite second moment ( E N t ( τ ) 2 < ). The FAR(p) model can be further generalized by including, besides Z t j lagged variables, other exogenous (possibly lagged) regressors. These exogenous variables may be scalars ( X t ), vector-valued ( X t ) or functional ( X t ). The FARX( p , m , r ) model can be defined as
Z t ( τ ) = j = 1 p Ψ j Z t j ( τ ) + i = 1 m B i X i ( τ ) + k = 1 r γ k X k + N t ( τ )
where X i ( τ ) denotes the functional exogenous variables, X j are the scalar exogenous variables and N t ( τ ) is a strong H -white noise as in (14). Often, the exogenous variables are previously demeaned. Ψ j , ( j = 1 , , p ) , B i , ( i = 1 , , m ) and γ k , ( j = 1 , , r ) are functional (the first two) and scalar (the third one) model parameters.

3.3. Building FAR(p) and FARX( p , m , r ) Models

Building FAR and FARX models requires one to identify the orders p, m and r as well as to estimate the model parameters. A partial theoretical estimation procedure for FAR(p) is given in [36]. This is based on the Shibata-Mourid [37] statistics; however, practical estimation issues are completely ignored by the author. The procedure works in the case of FAR(1); however, it is not clear how to apply it to real data for generic FAR(p) models. In the case of FAR(1), the PCs’ use is useful since the covariance operator behaves erratically due to the unboundedness of its inverse, and thus, the data are projected onto a suitable finite-dimensional subspace, generally spanned by the first few largest eigenvectors.
In this work, we estimate the FAR(p) and FARX( p , m , r ) using the principle components approach. This ensures a fair model estimation as well as computational efficiency since most of the variation in the endogenous and exogenous variables is summarized by the first PCs. Clearly, in this case, the identification step requires the selection of the lag orders ( p , m , r ) and the number of FPCs (d) used in the approximation. To this end, to select p and d, the following algorithm is used
  • (a)
    For a demeaned functional dataset Z t ( τ ) , fix a dimension d and, using (8), compute the vector Y ^ t = y ^ 1 , t , , y ^ d , t , containing the first d FPC scores.
    (b)
    For each functional exogenous variables fix the value of m and use the data X i ( τ ) to compute the vector A ^ i = A ^ k , 1 , , A ^ k , m , containing the first m FPC scores of the exogenous variable lag matrix.
    (c)
    combine all the exogenous variables vectors into a single vector, B ^ = ( A ^ i , X k ) ,
  • Using Y ^ 1 , , Y ^ t and B ^ , consider an appropriate multivariate model, for example vector autoregressive model, Y t = j = 1 p Ψ j Y t j + ϵ t , to obtain a one-step ahead forecast for Y t + 1 as
    Y ^ t + 1 = y ^ t + 1 , 1 , , y ^ t + 1 , d .
    Choose the order p and d using Section 3.4 and obtain Y t + 1 for the optimal p and d.
  • Use the KL expansion to compute the one-step-ahead forecast
    Z ^ t + 1 = μ ^ ( t ) + y ^ t + 1 , 1 ϕ ^ 1 + + y ^ t + 1 , d ϕ ^ d .

3.4. Selection of Orders p , m , r and Number of PCs d

The performance of functional models FAR(p) and FARX( p , m , r ) crucially depends on the appropriate selection of the order p , m , r and of the suitable number of PCs d. In this section, we show that they can be jointly estimated using the functional final prediction error (FFPE) criterion.
We start by considering the mean squared error (MSE). Since the eigenfunctions ϕ i are orthogonal and the PCs y k , t are uncorrelated, it can be written as
E Z t + 1 ( τ ) Z ^ t + 1 ( τ ) 2 = E k = 1 y t + 1 , k ϕ k k = 1 d y ^ t + 1 , k ϕ k 2 = E Z t + 1 Z ^ t + 1 2 + k = d + 1 λ k .
Here, the usual L 2 Euclidean norm of vectors is represented by . 2 . Assuming the stationarity of the process Z t , a d-variate VAR(p) has the form
Z t + 1 = Ψ 1 Z t + Ψ 2 Z t 1 + , , + Ψ p Z t p + 1 + ζ t + 1
where ζ t is a white noise process such that [38]
t ( ρ ^ ρ ) D N p d 2 ( 0 , Σ ζ Δ p 1 )
where ρ ^ = vec [ Ψ ^ 1 , , Ψ ^ P ] is the least squares estimator of ρ = vec [ Ψ 1 , , Ψ P ] , and Δ p = Var[vec ( Z 1 , , Z p ) ] and Σ ζ = E [ ζ 1 , ζ 1 ] . Suppose that the ρ ^ are estimated from independent training sample ( R 1 , , R t ) = D ( Z 1 , , Z t ) . It follows then
E Z t + 1 Z ^ t + 1 2 = E Z t + 1 ( Ψ ^ 1 Z t + + Ψ ^ P Z t p + 1 ) 2 = E ζ t + 1 2 + E ( Ψ 1 Ψ ^ 1 ) Z t + + ( Ψ p Ψ ^ p ) Z t p + 1 2 = trace Σ ζ + E [ I p ( Z t , , Z t p + 1 ) ] ( ρ ρ ^ ) 2
The independence of ρ ^ and ( Z 1 , , Z t ) yields that
E [ I p ( Z t , , Z t p + 1 ) ] ( ρ ρ ^ ) 2 = E trace ( ρ ρ ^ ) I p Γ p ( ρ ρ ^ ) = trace I p Γ p E [ ρ ρ ^ ) ( ρ ρ ^ )
By using (15), the last term can be approximated as
1 t trace Σ ζ I p d + o 1 p d t trace Σ ζ .
Replacing trace ( Σ ζ ) by t t p d trace ( Σ ^ ζ ) , 16 can be written as
E Y t + 1 Y ^ t + 1 2 t + p d t p d trace ( Σ ^ ζ ) + k > d λ k
Thus, the order p and the number of components d are simultaneously selected by minimizing the functional final perdition error criterion as
FFPE ( p , d ) = t + p d t p d trace ( Σ ^ ζ ) + k > d λ k .
The use of FFPE makes the forecasting procedure completely data-driven and does not require any subjective specification of parameters (see [39] for more technical details).
A flowchart of the proposed modeling framework using a separate or joint estimation approach is given in Figure 1. It explains that model estimation is a two-step procedure in the separate modeling approach, while all the components are modeled and forecasted in a single step in the joint approach.

4. Modeling and Forecasting IPEX Price for Northern Zone

4.1. Data

For an empirical investigation of the proposed methods, we consider the time series of the prices for the northern zone of the Italian electricity market (IPEX). The IPEX market is divided into zones, which are portions of the power grid where, for system security purposes, there are physical limits to transfers of electricity to/from other zones. They can be both geographical zones and virtual zones. In the period covered by the series, there were six geographical zones (see Figure 2) and the most important was the northern one (From the 1 January 2021, there are seven zones but the northern one is still the most important). The northern zone covers a wide range of geographical locations in Italy, so that it is difficult to exactly define longitude and latitude. However, roughly, longitude ranges from 7°00′ to 13°40′ east, while latitude from 44°25′ to 47°00′ north.
The data cover a period of five years ranging from 1 January 2015 to 31 December 2019. The data are plotted in Figure 3, where the purple line divides the in-sample period from the out-of-sample period. More precisely, data from 1 January 2015 to 31 December 2018 are used for model identification and estimation, while the whole year of 2019 is used for one-day-ahead out-of-sample forecasting.
Some basic descriptive statistics for the data are listed in Table 2. The mean price is 52.34 EUR/MWh. Notably, the distribution appears to be slightly positively skewed, as suggested by the mean being higher than the median ( 50.16 ). Moreover, the standard deviation of 16.36 points out a non-negligible level of variability around the mean. Additionally, the first quartile at 41.36 EUR/MWh and the third quartile at 61.00 EUR/MWh help us understand where half of the values cluster within the dataset.
Figure 4 shows the daily functional trajectories, Z t ( τ ) ( t = 1 , 2 , , 1826 ) , of our time series. Here, each functional datum (curve) is evaluated at 24 points corresponding to hours of a day. Note that each day represents a single functional datum, facilitating us to evaluate them on a finer grid when required. This will lead us to obtain forecasts for ultra-short periods when needed. From the figure, it is quite clear that the daily price profiles show a considerable variation across time.

4.2. Models Identification and Estimation

Since this work considers the model defined in (1), this section describes the model identification and estimation procedure in the cases of separate and joint estimation of the components described in Section 2.
Within the separate approach, the first step involved estimating the deterministic components. More specifically, the long-term and the periodic components were thought as deterministic functions of time, defined using cubic smoothing splines (SS). For calendar effects, instead, dummy variables were used. All these deterministic components were estimated by ordinary least squares methods, through the back-fitting algorithm. The weekly component W t , j was found to be non-significant and, therefore, was not included in the final model. This first step was performed separately for each univariate daily time series of the price of a specific load period. Once the deterministic components were estimated, the residual stochastic component, p t , j (see Figure 5 as an example), was modeled and predicted in two ways: using SARIMA models and FAR models. Figure 5 gives an example of the residual stochastic time series for the load period 10.
The final prediction is then obtained, according to the formula (5), by summing all the specific components. To fit the FAR model, the series p t , j (j = 1, …, 24) are first converted to functional data using (4). As concerns SS-SARIMA, not all the series p t , j had the same autocorrelation structure. For most of them, the appropriate specification was a S A R I M A ( 3 , 0 , 0 ) ( 1 , 0 , 0 ) 7 or, more shortly, S A R ( 3 , 1 ) 7 model; thus, we used it for all load periods. Note that the weekly component, which was not significant in the original data, is instead present in the residual component. Since both smoothing splines and the SARIMA model are used in this case, we refer to it as the SS-SARIMA model.
When the FAR model is applied, the series p t , j are first converted to functional objects using (4). The algorithm described in Section 3.3 was used to obtain the optimal values of the autoregressive order p and of the number of components d leading to white noise errors. We refer to this model as SS-FAR in order to stress the use of smoothing splines in the first step and of the FAR model in the second step.
In our case, the optimal values resulted to be p = 5 and d = 10 . Thus, a FAR(5) model, based on 10 PCs, is used for out-of-sample forecasting.
In the case of joint estimation, we refer to the FARX model (14). The first step is to convert the original (log-)prices l o g ( P t , j ) into a functional object using (4). Again, the algorithm defined in Section 3.3 allows us to obtain p and d. For our data, the selected values were p = 3 and d = 8 . We then used the deterministic components in their scalar form as exogenous variables. We could have also considered their functional specification but, being deterministic functions of time, forecasting results remain the same in both cases. This setting implies to fix r = 4 and bypasses the need of fixing the lag m or, equivalently, to fix m = 0 . We denote this model as SS-FARX.
The ACFs and PACFs of the final residuals of the S S S A R ( 3 , 1 ) 7 , S S F A R ( 5 ) and F A R X ( 3 , 0 , 4 ) are shown in Figure 6. All models produce basically uncorrelated residuals but the F A R X ( 3 , 0 , 4 ) model is clearly the best.

4.3. Out-of-Sample Forecasting

This section illustrates the forecasting performance of the models previously identified to make one-day-ahead price predictions. The comparison will be based both on descriptive indicators as well as using the Diebold and Mariano (1995) test, in order to assess the significance of the results.
More specifically, starting from 31 December 2018, we make k = 365 one-day-ahead predictions considering expanding windows. The models’ specifications are those identified in the in-sample period and are kept fixed while the models’ parameters are re-estimated day-by-day. All the variables were significant except the weekly component, W t , which does not enter the models. In the separate modeling approach, the prediction is given by
P ^ t + 1 , j = exp ( f ^ 1 ( T t + 1 ) + f ^ 2 ( Y t + 1 ) + δ ( C t + 1 ) + p ^ t + 1 , j ) .
Predictions of the trend and of the yearly and weekly components, as well as of the bank holidays effect, are straightforward as soon as functions f i and the parameter δ have been estimated. The predictions p ^ t + 1 ( j ) were obtained using the SARIMA and FAR models. In the joint approach, predictions are directly made for the series of the price. In addition, we consider a fourth predictor obtained by combining the SS-FAR and the FARX models by means of a simple average of their forecasts [40,41]. For comparison purposes, two naïve models are also computed. The first model is called Naïve 1, which assumes that the next-day prices are equal to the current day, i.e., P ^ t + 1 , j = P t , j . The second model, Naïve 2, computes the next-day-ahead forecasts by assuming that tomorrow’s electricity prices are the same as that of the previous week same day, i.e., P ^ t + 1 , j = P t 7 , j , allowing for the incorporation of possible weekly periodicity in the forecasts [42].
To measure the forecasting error, we consider the mean absolute error (MAE), ( 1 / k ) ( | P t , j P ^ t , j | ) , the mean absolute percentage error (MAPE), ( 1 / k ) ( | ( P t , j P ^ t , j ) / P t , j | ) and the root mean square error (RMSE) [ ( 1 / k ) ( P t , j P ^ t , j ) 2 ] 1 / 2 , with k = 365 number of one-day-ahead predictions.
The forecasting results are summarized in Table 3, listing the predictive performance of the four models and two naïve benchmarks over the whole out-of-sample period, i.e., the year 2019. For all error measures, the best results are obtained by joint estimation through the FARX model. The second best result is that of the combination, which outperforms both the SS-SAR model and the SS-FAR model. From Table 3, it is also clear that models based on the functional approach perform better than the univariate SS-SAR model. More in detail, the MAE, MAPE, and RMSE values for the FARX( 3 , 0 , 4 ) model are 4.25, 9.28, and 5.38. The percentage error reduction is about 20% with respect to SS-SAR ( 3 , 1 ) and about 10% with respect to SS-FAR(5). The indicators for FARX( 3 , 0 , 4 ) and the combined predictor are quite similar. As the former model always gives better results, we attribute the good performance of the combined predictor to the contribution of the FARX model. Finally, the two benchmarks perform the worst compared to the four predictors, indicating the good performance of our models.
To assess the significance of the results listed in Table 3, the Diebold and Mariano (1995) test is applied to each couple of predictors. It has been applied to the squared errors to avoid the issues pointed out by [43]. The p-values of the tests are listed in Table 4. They refer to a hypothesis system whose null hypothesis assumes no difference in the accuracy of the forecasters in the row/column versus the alternative hypothesis that the forecaster in the row is more accurate than the forecaster in the column. The obtained p-values suggest that functional models are significantly more accurate than the univariate model. Within the functional approach, the FARX( 3 , 0 , 4 ) produces statistically more accurate forecasts than the FAR(5) model but it is statistically equivalent to the combined predictor. However, as both the combination and FARX are significantly better than SS-FAR, as before, again we conclude that the contribution of the FARX model is crucial.
Finally, the day-specific forecasting error indicators for the considered models are listed in Table 5. Looking at the table, we can see that Monday and Sunday typically have larger errors compared to other days of the week. On the contrary, Wednesday, Thursday, and Friday show lower forecasting errors, suggesting that prices are less erratic on these days. The FARX(3) model yields the lowest MAPE value of 7.85 on Thursday and the highest MAPE score of 12.32 on Saturday. Again, the FARX(3) model leads to uniformly better results over the days of the week. Analogous results for each month and each load period are listed in Table A1 and Table A2 in the Appendix A. The results suggest that forecasting error depends on the load period, with peaks and lows at different times of the day. For example, the forecasting errors are particularly high from hour 3 to hour 6 in the morning and from 14 to 15 in the afternoon. On the other hand, errors are relatively lower from hour 20 to 1 a.m. Once again, the forecasting performance of the FARX(3) model produces, almost always, lower forecasting errors than the competitor models. In terms of monthly indicator the highest forecasting errors correspond to the months of June and December, while lower errors occur in January and February.

4.4. Computational Complexity

Finally, we compare the computational cost for each model used in our study. For the analyses, the programming environment R (Energies 17 03461 i001), a statistical computing language, is used to implement the models [44]. In the comparison, all the computations have been performed using an Intel(R)-Core(TM) i7-4770 CPU running at 3.40 GHz.
Table 6 provides the average time required for a one-day-ahead forecast for the different models. Using as a baseline the SS-SAR ( 3 , 1 ) 7 model, the average time required for a one-day-ahead forecast is 0.21 s, whereas the SS-FAR(5) and SS-FARX(3,0,4) models take 0.72 and 0.77 s, respectively, for the same task. This means that SS-FAR(5) and SS-FARX(3,0,4) require 3.43 and 3.67 times more time needed compared to SS-SAR ( 3 , 1 ) 7 . The combination model time is comparatively higher as both the models, SS-FAR(5) and SS-FARX(3,0,4), have to be computed. It is important to note that, except for the combination model, the models required less than a second to produce a one-day-ahead forecast, which suggests the models are quite computationally efficient.
To model and forecast the deterministic components when using a separate modeling approach, the GAM library in R was used [45]. The forecast library in R was used for the SAR model [46]. To estimate and forecast FAR(p) and FARX(p) models, the authors wrote their own code, which also used the R library fda [47]. The documentation provided by the packages provides in-depth details on the particular algorithms utilized in the estimation.

5. Conclusions

In this work, we faced the issue of modeling and forecasting electricity prices within the functional approach. As this is often conducted by estimating and predicting the different components of the price dynamics, we wondered if a joint modeling of the components could improve prediction with respect to a separate modeling process. The basic idea is that a joint estimation could consider those inter-relations among components that a separate modeling usually ignores. To investigate this issue, we compared the predictive performance of four different predictors: the first two are based on separate modeling, the third is based on joint modeling, and the fourth one is a combination of the two approaches.
In particular, the first two models use smoothing splines to estimate the deterministic components and SARIMA (SS-SAR) and FAR (SS-FAR) models to describe the dynamics of the stochastic component. The third model, the FARX model, follows a one-step procedure to jointly estimate all the components by suitably including exogenous variables. For empirical analysis, electricity price data from the northern zone of the Italian electricity market, from January 2015 to December 2019, are used. The first four years are used for model estimation, and the entire year 2019 is used for one-day-ahead out-of-sample forecasts. Forecasting performances are evaluated in terms of MAE, MAPE, and RMSE and statistically assessed by means of the Diebold and Mariano test.
The results suggest that the functional modeling approach is efficient in predicting electricity prices as it produces lower forecasting errors than the non-functional model used in the study, i.e., the SS-SAR model. Within the functional models, the FARX model, which jointly estimates all the components, significantly outperforms its competitors except the combined predictor. The last one, however, seems mainly affected by the good performance of the FARX model and gives numerical results worse than those of the FARX model.
Finally, this study’s findings suggest that the forecasting errors are generally higher on (a) Sunday and Monday, (b) from hours 3 to 6 in the morning and 14 to 15 in the afternoon, and (c) June and December. On the other hand, prices are relatively lower on (a) Wednesday, Thursday, and Friday, (b) from hour 20 to 1 a.m., and (c) January and February.

Author Contributions

Conceptualization, F.L. and I.S.; methodology, F.L. and I.S.; software, I.S.; validation, F.L.; formal analysis, F.L. and I.S.; investigation, F.L. and I.S.; writing—original draft preparation, F.L. and I.S; writing—review and editing, F.L. and I.S.; visualization, I.S.; supervision, F.L. All authors have read and agreed to the published version of the manuscript.

Funding

No specific funding was obtained for this research work.

Data Availability Statement

Data can be requested from the corresponding author(s).

Conflicts of Interest

There is no actual or potential conflict of interest concerning this article.

Appendix A

Table A1. Day-ahead price forecasting error indicators by month using the SS-SAR ( 3 , 1 ) 7 , SS-FAR(5) and FARX(3,0,4) models.
Table A1. Day-ahead price forecasting error indicators by month using the SS-SAR ( 3 , 1 ) 7 , SS-FAR(5) and FARX(3,0,4) models.
Month SS-SARSS-FARFARXMonth SS-SARSS-FARFARX
JanMAE5.635.784.77JulMAE5.444.314.33
MAPE8.768.997.37MAPE10.858.598.65
RMSE8.148.025.90RMSE6.965.515.51
FebMAE4.763.973.91AugMAE5.053.963.96
MAPE9.207.677.07MAPE10.438.418.82
RMSE6.195.244.77RMSE7.335.495.19
MarMAE4.704.334.14SepMAE4.704.334.14
MAPE9.218.388.02MAPE9.218.388.02
RMSE6.155.665.31RMSE6.155.665.31
AprMAE5.785.864.53OctMAE5.464.884.26
MAPE12.7412.599.50MAPE10.979.348.30
RMSE8.668.535.65RMSE7.156.585.50
MayMAE4.313.994.05NovMAE4.694.424.19
MAPE9.008.188.41MAPE11.4010.479.35
RMSE5.635.305.24RMSE6.265.875.30
JuneMAE5.344.704.52DecMAE4.734.454.26
MAPE14.2912.2411.11MAPE22.3620.7918.63
RMSE7.056.025.54RMSE6.335.765.29
Table A2. Day-ahead price forecasting error indicators by load period using the SS-SAR ( 3 , 1 ) 7 , SS-FAR(5) and FARX(3,0,4) models.
Table A2. Day-ahead price forecasting error indicators by load period using the SS-SAR ( 3 , 1 ) 7 , SS-FAR(5) and FARX(3,0,4) models.
Hour SS-SARSS-FARFARXHour SS-SARSS-FARFARX
1MAE4.213.533.2813MAE4.844.674.47
MAPE10.358.867.59MAPE10.429.789.53
RMSE5.624.784.26RMSE6.486.025.64
2MAE4.283.413.2614MAE5.494.964.58
MAPE11.869.959.16MAPE13.3111.7410.85
RMSE5.724.724.23RMSE7.626.645.80
3MAE4.383.573.4315MAE6.485.744.61
MAPE14.7112.3211.10MAPE15.7313.5910.30
RMSE5.965.024.49RMSE8.907.905.72
4MAE4.493.843.6416MAE6.325.844.89
MAPE17.5315.3313.98MAPE13.6612.269.98
RMSE6.135.314.69RMSE8.557.886.07
5MAE4.433.853.6417MAE6.095.555.14
MAPE17.6715.8314.59MAPE11.5210.379.69
RMSE5.995.314.72RMSE8.247.456.47
6MAE4.173.683.3418MAE5.695.164.85
MAPE13.8612.8710.33MAPE10.209.188.73
RMSE5.795.244.21RMSE7.586.776.03
7MAE5.144.174.0019MAE5.415.094.90
MAPE12.379.848.73MAPE9.258.538.45
RMSE6.925.845.03RMSE7.146.476.02
8MAE5.684.694.3420MAE5.004.814.62
MAPE11.599.278.85MAPE8.247.857.66
RMSE7.466.245.39RMSE6.596.285.67
9MAE6.995.794.8521MAE4.644.684.58
MAPE13.2310.659.08MAPE7.897.927.79
RMSE9.247.935.95RMSE6.045.945.62
10MAE6.595.465.1722MAE4.214.404.12
MAPE12.4110.059.44MAPE7.537.857.42
RMSE8.617.276.28RMSE5.635.685.09
11MAE5.865.074.8523MAE3.443.373.33
MAPE11.049.369.31MAPE6.866.706.70
RMSE7.756.715.89RMSE4.734.644.45
12MAE5.895.284.7624MAE3.123.383.45
MAPE11.5610.109.39MAPE7.017.657.83
RMSE7.886.975.82RMSE4.054.434.48

References

  1. Lago, J.; Marcjasz, G.; De Schutter, B.; Weron, R. Forecasting day-ahead electricity prices: A review of state-of-the-art algorithms, best practices and an open-access benchmark. Appl. Energy 2021, 293, 116983. [Google Scholar] [CrossRef]
  2. Lisi, F.; Nan, F. Component estimation for electricity prices: Procedures and comparisons. Energy Econ. 2014, 44, 143–159. [Google Scholar] [CrossRef]
  3. Nowotarski, J.; Weron, R. Recent advances in electricity price forecasting: A review of probabilistic forecasting. Renew. Sustain. Energy Rev. 2018, 81, 1548–1568. [Google Scholar] [CrossRef]
  4. Shah, I.; Iftikhar, H.; Ali, S.; Wang, D. Short-term electricity demand forecasting using components estimation technique. Energies 2019, 12, 2532. [Google Scholar] [CrossRef]
  5. Liu, J.M.; Chen, R.; Liu, L.M.; Harris, J.L. A semi-parametric time series approach in modeling hourly electricity loads. J. Forecast. 2006, 25, 537–559. [Google Scholar] [CrossRef]
  6. Zhang, J.L.; Zhang, Y.J.; Li, D.Z.; Tan, Z.F.; Ji, J.F. Forecasting day-ahead electricity prices using a new integrated model. Int. J. Electr. Power Energy Syst. 2019, 105, 541–548. [Google Scholar] [CrossRef]
  7. Vilar, J.M.; Cao, R.; Aneiros, G. Forecasting next-day electricity demand and price using nonparametric functional methods. Int. J. Electr. Power Energy Syst. 2012, 39, 48–55. [Google Scholar] [CrossRef]
  8. García-Martos, C.; Rodríguez, J.; Sánchez, M.J. Forecasting electricity prices and their volatilities using Unobserved Components. Energy Econ. 2011, 33, 1227–1239. [Google Scholar] [CrossRef]
  9. Kostrzewski, M.; Kostrzewska, J. Probabilistic electricity price forecasting with Bayesian stochastic volatility models. Energy Econ. 2019, 80, 610–620. [Google Scholar] [CrossRef]
  10. Kristiansen, T. Forecasting Nord Pool day-ahead prices with an autoregressive model. Energy Policy 2012, 49, 328–332. [Google Scholar] [CrossRef]
  11. Koopman, S.J.; Ooms, M.; Carnero, M.A. Periodic seasonal Reg-ARFIMA–GARCH models for daily electricity spot prices. J. Am. Stat. Assoc. 2007, 102, 16–27. [Google Scholar] [CrossRef]
  12. Girish, G.P. Spot electricity price forecasting in Indian electricity market using autoregressive-GARCH models. Energy Strategy Rev. 2016, 11, 52–57. [Google Scholar] [CrossRef]
  13. Conejo, A.J.; Contreras, J.; Espínola, R.; Plazas, M.A. Forecasting electricity prices for a day-ahead pool-based electric energy market. Int. J. Forecast. 2005, 21, 435–462. [Google Scholar] [CrossRef]
  14. Taylor, J.W. Short-term electricity demand forecasting using double seasonal exponential smoothing. J. Oper. Res. Soc. 2003, 54, 799–805. [Google Scholar] [CrossRef]
  15. Heidarpanah, M.; Hooshyaripor, F.; Fazeli, M. Daily electricity price forecasting using artificial intelligence models in the Iranian electricity market. Energy 2023, 263, 126011. [Google Scholar] [CrossRef]
  16. Gomez, W.; Wang, F.K.; Amogne, Z.E. Electricity Load and Price Forecasting Using a Hybrid Method Based Bidirectional Long Short-Term Memory with Attention Mechanism Model. Int. J. Energy Res. 2023, 2023, 3815063. [Google Scholar] [CrossRef]
  17. Menéndez Medina, A.; Heredia Álvaro, J.A. Using Generative Pre-Trained Transformers (GPT) for Electricity Price Trend Forecasting in the Spanish Market. Energies 2024, 17, 2338. [Google Scholar] [CrossRef]
  18. Dudek, G. Short-term load forecasting using random forests. In Intelligent Systems’ 2014; Springer: Berlin/Heidelberg, Germany, 2015; pp. 821–828. [Google Scholar]
  19. Aggarwal, S.; Saini, L.; Kumar, A. Day-ahead price forecasting in Ontario electricity market using variable-segmented support vector machine-based model. Electr. Power Compon. Syst. 2009, 37, 495–516. [Google Scholar] [CrossRef]
  20. Amjady, N. Day-ahead price forecasting of electricity markets by a new fuzzy neural network. IEEE Trans. Power Syst. 2006, 21, 887–896. [Google Scholar] [CrossRef]
  21. Tan, M.; Hu, C.; Chen, J.; Wang, L.; Li, Z. Multi-node load forecasting based on multi-task learning with modal feature extraction. Eng. Appl. Artif. Intell. 2022, 112, 104856. [Google Scholar] [CrossRef]
  22. Shang, Y.; Li, S. FedPT-V2G: Security enhanced federated transformer learning for real-time V2G dispatch with non-IID data. Appl. Energy 2024, 358, 122626. [Google Scholar] [CrossRef]
  23. Bai, M.; Yao, P.; Dong, H.; Fang, Z.; Jin, W.; Yang, X.; Liu, J.; Yu, D. Spatial-temporal characteristics analysis of solar irradiance forecast errors in Europe and North America. Energy 2024, 297, 131187. [Google Scholar] [CrossRef]
  24. Chaouch, M. Clustering-based improvement of nonparametric functional time series forecasting: Application to intra-day household-level load curves. IEEE Trans. Smart Grid 2013, 5, 411–419. [Google Scholar] [CrossRef]
  25. Paparoditis, E.; Sapatinas, T. Short-term load forecasting: The similar shape functional time-series predictor. IEEE Trans. Power Syst. 2013, 28, 3818–3825. [Google Scholar] [CrossRef]
  26. Marcjasz, G.; Narajewski, M.; Weron, R.; Ziel, F. Distributional neural networks for electricity price forecasting. Energy Econ. 2023, 125, 106843. [Google Scholar] [CrossRef]
  27. Cruz, A.; Muñoz, A.; Zamora, J.L.; Espínola, R. The effect of wind generation and weekday on Spanish electricity spot price forecasting. Electr. Power Syst. Res. 2011, 81, 1924–1935. [Google Scholar] [CrossRef]
  28. Shah, I.; Bibi, H.; Ali, S.; Wang, L.; Yue, Z. Forecasting one-day-ahead electricity prices for italian electricity market using parametric and nonparametric approaches. IEEE Access 2020, 8, 123104–123113. [Google Scholar] [CrossRef]
  29. Conejo, A.J.; Plazas, M.A.; Espinola, R.; Molina, A.B. Day-ahead electricity price forecasting using the wavelet transform and ARIMA models. IEEE Trans. Power Syst. 2005, 20, 1035–1042. [Google Scholar] [CrossRef]
  30. Bibi, N.; Shah, I.; Alsubie, A.; Ali, S.; Lone, S.A. Electricity spot prices forecasting based on ensemble learning. IEEE Access 2021, 9, 150984–150992. [Google Scholar] [CrossRef]
  31. Lisi, F.; Pelagatti, M.M. Component estimation for electricity market data: Deterministic or stochastic? Energy Econ. 2018, 74, 13–37. [Google Scholar] [CrossRef]
  32. Stark, H.; Woods, J.W. Probability, Random Processes, and Estimation Theory for Engineers; Prentice-Hall, Inc.: Hoboken, NJ, USA, 1986. [Google Scholar]
  33. Ramsay, J.O.; Silverman, B.W. Applied Functional Data Analysis: Methods and Case Studies; Springer: Berlin/Heidelberg, Germany, 2002; Volume 77. [Google Scholar]
  34. Shang, H.L. A survey of functional principal component analysis. AStA Adv. Stat. Anal. 2014, 98, 121–142. [Google Scholar] [CrossRef]
  35. Hörmann, S.; Kokoszka, P. Weakly dependent functional data. Ann. Stat. 2010, 38, 1845–1884. [Google Scholar] [CrossRef]
  36. Bosq, D. Linear Processes in Function Spaces: Theory and Applications; Springer Science & Business Media: Berlin/Heidelberg, Germany, 2000; Volume 149. [Google Scholar]
  37. Mourid, T. Processus autorégressifs banachiques d’ordre supérieur. Comptes Rendus L’academie Sci. Ser. 1 Math. 1993, 317, 1167–1172. [Google Scholar]
  38. Lutkepohl, H. New Introduction to Multiple Time Series Analysis; Springer: Berlin/Heidelberg, Germany, 2006. [Google Scholar]
  39. Aue, A.; Norinho, D.D.; Hörmann, S. On the prediction of stationary functional time series. J. Am. Stat. Assoc. 2015, 110, 378–392. [Google Scholar] [CrossRef]
  40. Stock, J.H.; Watson, M.W. Forecasting with many predictors. Handb. Econ. Forecast. 2006, 1, 515–554. [Google Scholar]
  41. Bordignon, S.; Bunn, D.W.; Lisi, F.; Nan, F. Combining day-ahead forecasts for British electricity prices. Energy Econ. 2013, 35, 88–103. [Google Scholar] [CrossRef]
  42. Mandal, P.; Senjyu, T.; Urasaki, N.; Funabashi, T.; Srivastava, A.K. A novel approach to forecast electricity price for PJM using neural network and similar days method. IEEE Trans. Power Syst. 2007, 22, 2058–2065. [Google Scholar] [CrossRef]
  43. Franses, P.H. A note on the mean absolute scaled error. Int. J. Forecast. 2016, 32, 20–22. [Google Scholar] [CrossRef]
  44. R Core Team. R: A Language and Environment for Statistical Computing; R Foundation for Statistical Computing: Vienna, Austria, 2013. [Google Scholar]
  45. Hastie, T. Gam: Generalized Additive Models, R package version 1.22; Elsevier: Amsterdam, The Netherlands, 2022. [Google Scholar]
  46. Hyndman, R.J.; Khandakar, Y. Automatic time series forecasting: The forecast package for R. J. Stat. Softw. 2008, 27, 1–22. [Google Scholar] [CrossRef]
  47. Ramsay, J.O.; Graves, S.; Hooker, G. Fda: Functional Data Analysis, R package version 5.1.7; IEEE: New York, NY, USA, 2020. [Google Scholar]
Figure 1. Flowchart of the general modeling framework.
Figure 1. Flowchart of the general modeling framework.
Energies 17 03461 g001
Figure 2. The six geographical zones of the IPEX market and the virtual zone of Rossano.
Figure 2. The six geographical zones of the IPEX market and the virtual zone of Rossano.
Energies 17 03461 g002
Figure 3. Electricity prices series for the northern Italian electricity market (a) and its autocorrelation function (b). The purple line distinguishes between model estimation and out-of-sample forecasting periods.
Figure 3. Electricity prices series for the northern Italian electricity market (a) and its autocorrelation function (b). The purple line distinguishes between model estimation and out-of-sample forecasting periods.
Energies 17 03461 g003
Figure 4. Functional daily trajectories Z t ( τ ) for the original electricity prices.
Figure 4. Functional daily trajectories Z t ( τ ) for the original electricity prices.
Energies 17 03461 g004
Figure 5. Stochastic component p t , 10 (a) and its ACF for load hour 10 (b).
Figure 5. Stochastic component p t , 10 (a) and its ACF for load hour 10 (b).
Energies 17 03461 g005
Figure 6. ACF and PACF for the final errors using models (a,b) SS-SAR ( 3 , 1 ) 7 (c,d), SS-FAR(5), and (e,f) FARX( 3 , 0 , 4 ).
Figure 6. ACF and PACF for the final errors using models (a,b) SS-SAR ( 3 , 1 ) 7 (c,d), SS-FAR(5), and (e,f) FARX( 3 , 0 , 4 ).
Energies 17 03461 g006
Table 2. Descriptive statistics for electricity prices data.
Table 2. Descriptive statistics for electricity prices data.
Min. Q 1 MedianMean Q 3 SDMax.
1.0541.3650.1652.3461.0016.36206.12
Table 3. One-day-ahead error measures for electricity price forecasting errors using the SS-SAR ( 3 , 1 ) 7 model, the SS-FAR(5) model, the FARX(3) model, the combined predictor and two naïve models.
Table 3. One-day-ahead error measures for electricity price forecasting errors using the SS-SAR ( 3 , 1 ) 7 model, the SS-FAR(5) model, the FARX(3) model, the combined predictor and two naïve models.
ModelMAEMAPERMSE
SS-SAR ( 3 , 1 ) 7 5.1211.516.99
SS-FAR(5)4.5710.176.23
FARX(3,0,4)4.259.285.38
Combination4.279.495.43
Naïve 18.3918.7511.41
Naïve 26.8916.919.48
Table 4. p-values for the Diebold and Mariano test. The null hypothesis assumes equal prediction accuracy for the model in row and column, while the alternative hypothesis assumes the model in the row is more accurate than the model in the column.
Table 4. p-values for the Diebold and Mariano test. The null hypothesis assumes equal prediction accuracy for the model in row and column, while the alternative hypothesis assumes the model in the row is more accurate than the model in the column.
ModelsSS-SAR(3,1) 7 SS-FAR(5)FARX(3,0,4)CombinationNaïve 1Naïve 2
SS-SAR ( 3 , 1 ) 7 ->0.99>0.99>0.99<0.01<0.01
SS-FAR(5)<0.01->0.99>0.99<0.01<0.01
SS-FARX(3)<0.01<0.01-0.14<0.01<0.01
Combination<0.01<0.010.86-<0.01<0.01
Naïve 1>0.99>0.99>0.99>0.99->0.99
Naïve 2>0.99>0.99>0.99>0.99<0.01-
Table 5. Out-of-sample day-specific MAPE, MAE, RMSE for electricity price for SS-SAR ( 3 , 1 ) 7 model, SS-FAR(5) model, FARX( 3 , 0 , 4 ) model, combination model, and two naïve benchmarks.
Table 5. Out-of-sample day-specific MAPE, MAE, RMSE for electricity price for SS-SAR ( 3 , 1 ) 7 model, SS-FAR(5) model, FARX( 3 , 0 , 4 ) model, combination model, and two naïve benchmarks.
Day of the Week
Model MonTuesWednesThursFriSaturSun
SS-SAR ( 3 , 1 ) 7 MAE6.095.375.144.574.474.895.21
SS-FAR(5)5.074.824.774.324.404.114.54
FARX(3,0,4)4.724.384.204.104.263.924.13
Combination4.704.424.314.024.163.954.26
Naïve 16.527.059.448.365.8810.5910.94
Naïve 27.026.456.618.326.665.897.27
SS-SAR ( 3 , 1 ) 7 MAPE15.8710.7710.208.328.5011.9215.76
SS-FAR(5)13.4410.379.048.028.169.8213.28
FARX(3,0,4)12.329.678.157.858.078.9610.84
Combination12.579.758.347.647.859.2711.91
Naïve 112.6115.7824.6517.7911.0527.6221.72
Naïve 213.3214.1923.1423.1712.3816.4515.45
SS-SAR ( 3 , 1 ) 7 RMSE8.137.667.296.346.006.316.81
SS-FAR(5)6.727.076.675.795.775.356.04
FARX(3,0,4)5.875.515.425.235.325.055.15
Combination5.865.695.575.125.215.055.40
Naïve 17.978.3411.139.887.3212.5913.10
Naïve 28.327.457.859.888.017.148.71
Table 6. Average time in seconds for a one-day-ahead forecast.
Table 6. Average time in seconds for a one-day-ahead forecast.
Average TimeSS-SAR ( 3 , 1 ) 7 SS-FAR(5)FARX(3,0,4)Combination
Time (s)0.210.720.771.52
Relative time13.433.677.24
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Lisi, F.; Shah, I. Joint Component Estimation for Electricity Price Forecasting Using Functional Models. Energies 2024, 17, 3461. https://doi.org/10.3390/en17143461

AMA Style

Lisi F, Shah I. Joint Component Estimation for Electricity Price Forecasting Using Functional Models. Energies. 2024; 17(14):3461. https://doi.org/10.3390/en17143461

Chicago/Turabian Style

Lisi, Francesco, and Ismail Shah. 2024. "Joint Component Estimation for Electricity Price Forecasting Using Functional Models" Energies 17, no. 14: 3461. https://doi.org/10.3390/en17143461

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