## I. Introduction

In this paper, we investigate the day-of-the-week price persistence and seasonality in Spanish energy prices using an updated fractional persistence framework. We employ two recent nonlinear approaches, i.e., nonlinear I(d) frameworks recently proposed. The first is the Cuestas and Gil-Alana (2016) [CG2016] nonlinear I(d) method which is based on the Chebyshev polynomials in time, while the second is the Gil-Alana and Yaya (2021) [GY2021] method that relies on Fourier-form nonlinearity, a mimic of Enders and Lee (2012), in the fractional persistence framework. These two nonlinear functions allow for the smooth modelling of structural breaks in the time series. Bai and Perron’s (2003) multiple break test considers a maximum of five instantaneous breaks to be detected and in reality, breaks could be more than five in a given long time series, so, this test is restrictive, and in reality, some breaks are smoothly changing with time. Enders and Lee (2012) have found that a model with trigonometric function could have more power than the Bai-Perron break test in terms of modelling as many multiple breaks in a smooth fashion.

Fractional persistence allows for a given time series (i.e., energy price in this case) to be checked for the possibility of mean reversion or non-mean reversion. Another subset of the mean reversion case is long memory where a certain real value, *d* lying in the range including both stationary and nonstationary ranges. Thus, once the external shock triggers the time series process, there is the tendency for the series to revert to its mean level after a short time. The case of non-mean reversion is where it is unlikely for the series to revert to its mean level, even with strong government and regulator policies, and if at all, it will take a very long time. These are the appealing properties of the fractional persistence framework, which makes it distinguishable among classical unit root tests in the literature. Meanwhile, the Dickey-Fuller-like unit root test has been found to lack power in the presence of fractional unit root alternatives (Lee & Schmidt, 1996).

Energy pricing and its distribution, as it affects households and businesses, is one of the major global discussions. The present work is motivated by the alarmingly rising electricity prices in Spain since July 2021 due to the global gas crisis. Findings here will therefore guide regulators and the government on the price dynamics of electricity in Spain.

## II. Nonlinear Fractional I(d) frameworks

Following Granger and Joyeux (1980) and Hosking (1981), we define fractional integration in time series as,

(1−L)dxt=˜εt

where

is the lag operator, i.e., is the fractional integration parameter operating on the differencing operator on the time series to produce a stable/stationary series that has the properties of white noise. In some cases of highly autocorrelated series, we can consider the possibility of Autoregressive [AR(1)] error disturbance, i.e.˜ε=θ1˜εt−1+vt

where *d* (1) has gone beyond unit root testing of time series to testing persistence of series in terms of mean or non-mean reversions. By extending the above to using the deterministic term of a linear trend with constant, and intercept, one obtains the Robinson (1994) fractional persistence modelling framework,

yt=α+βt+xt,(1−L)dxt=˜εt,t=1,2,…,

which is estimated using the Ordinary Least Square (OLS) estimation method, i.e,

˜εt=y∗t−ˆα01∗t+ˆβt∗t,

and

with the complex Lagrange Multiplier test statistic,ˆR=Tˆσ4^a1ˆA−1ˆa,

where

is the sample size, andˆa=−2πT∗∑jψ(λj)gu(λj;ˆτ)−1I(λj);ˆσ2=σ2(ˆτ)=2πT−1 T∑j=1 gu(λj;ˆτ)−1I(λj),ˆA=2T{∗∑jψ(λj)ψ(λj)′−∗∑jψ(λj)ˆξ(λj)′[∗∑jˆξ(λj)ˆξ(λj)′]−1×∗∑jˆξ(λj)ψ(λj)′};ψ(λj)=log|2sinλj2|;ˆξ(λj)=∂∂τloggε(λj;ˆτ),λj=2πj/T,

and

implies that the sums are taken over all frequencies that are bounded in the spectrum, with periodogram for andThe linear I(d) framework of Robinson (1994) is extended to the nonlinear I(d) framework in Cuestas and Gil-Alana (2016) by using the function which depends on unknown parameters in the I(d) framework,

(1−L)dyt=α+f(t)+˜εt≅θ0+m∑i=1θiPi,T(t)+˜εt,t=1,2,…,i=1,…,m

where *m*^{th} order expansion of the Chebyshev polynomial

Pi,t(t)=√2cos[iπ(t−0.5)/T],t=1,2,…,i=1,…,m

and (1994) with a linear trend. For the model becomes nonlinear such that the higher the order of the higher the nonlinearity. We can re-express the model in (7) for a truncation order of For simplicity of OLS estimation, (y7) in Equation (6) is expressed as,

Then, in the absence of nonlinearity, the I(d) model in (6) is expressed with only a constant, if the model becomes a linear I(d) model of Robinson˜εt=y∗t−α1∗t−cos1∗−cos2∗−cos3∗

where

y∗t=(1−L)dayt,1∗t=(1−L)dd1t,cos1∗=(1−L)dn√2cos[π(t−0.5)/T],cos2∗=(1−L)dn√2cos[2π(t−0.5)/T]andcos3∗=(1−L)d0√2cos[3π(t−0.5)/T].

As a follow-up to Cuestas and Gil-Alana’s (2016) method, Gil-Alana and Yaya (2021) considered using flexible Fourier fractional (FFF) form

f(t)=n∑kλksin(2πjkt/T)+n∑kγkcos(2πjkt/T)

in the I(d) structure in Equation (6) to mimic the nonlinearity induced by function

where is the optimal FFF value, a particular frequency which could be fractional or unit; and determine the amplitude and displacement of the sine/cosine in the Fourier function. Thus, the nonlinear I(d) is,(1−L)dyt=α+{n∑kλksin(2πjkt/T)+n∑kγkcos(2πjkt/T)}+˜εt

Empirically, (9) can be re-expressed as,

˜εt=y∗t−α1∗t−n∑kλksin∗k,t−n∑kγkcos∗k,t,

where

sin∗k,t=(1−L)d0sin(2πjkt/T),cos∗k,t=(1−L)d0cos(2πjkt/T)

with

and defined in (7) above.## III. Data and Results

Daily historical spot prices of electricity for Spain, spanning 01/01/2006 to 04/11/2021, covering a total of 5788 data points, are obtained from the website of Iberian Energy Market Operator/Operador del Mercado Ibérico de la Energía-Polo Portugués (OMIP) at https://www.omip.pt/en/electricity. Plots of daily and monthly electricity prices are given in Figure 1. For daily prices, there are fluctuations over time and occasional price swings that are pronounced to both up and down prices. Between 2006 and June 2021, prices hover between 50 and 150 euro/MWh while prices started increasing astronomically in the middle of 2021.^{[1]} The average monthly pricing is superimposed on the daily price, and the essence of this is to check for possible monthly seasonal movement. By looking at the plot, the monthly seasonality is not observed.

Table 1 presents the results of persistence using nonlinear smooth trend functions by employing the Chebyshev polynomial in time and Fourier function. In the case of the Chebyshev polynomial, the nonlinear trigonometric parameters, *cos1*, *cos2* and *cos3* are not significant, while in the case of Fourier function, the trigonometric parameter *sin _{k}* is only significant with the optimal Fourier frequency

*k =*0.46. For both the Chebyshev polynomial and Fourier function, fractional persistence values are 0.6739 and 0.6702 respectively under white noise disturbance and each estimate with an upper CI bound of about 0.69. To check for the possible interference of unchecked serial correlations in the model residuals which could bias our results, we allow for an AR(1) error disturbance instead of the white noise error disturbance, with the specification given in Equation (2). The results for both nonlinear I(d) are then re-presented in the lower panel of Table 1. In this case,

*cos2*parameter in the Chebyshev function is found to be significant, while

*sin*parameter in the Fourier function is also significant. For both nonlinear functions, the AR(1) parameter estimates are low, around 0.20, but this is significant at 5% level. The persistence values estimated for both nonlinear I(d) models are found to be lower compared to the corresponding values under the white noise error disturbances. These values are found to be 0.5601 and 0.5548 respectively, which is around 0.5 implying mean reversion with long-range dependence characteristics in the electricity prices.

_{k}The analysis is extended by obtaining the day-of-the-week series persistence using the two nonlinear I(d) frameworks and the results, as presented in Table 2, are only reported for the case of AR(1) error disturbance. In the upper panel of the results table for the case of Chebyshev polynomial I(d), it is found that none of the nonlinear parameters for the days-of-the-week series (i.e., Monday–Friday) is significant while for Wednesday, Saturday and Sunday series, nonlinear parameters are significant. The AR(1) parameters are significant for Wednesday, Saturday and Sunday series. The persistence estimates for the seven series are 0.65 (Monday), 0.73 (Tuesday), 0.78 (Wednesday), 0.77 (Friday), -0.30 (Saturday) and -0.39 (Sunday). By looking at the results in the lower panel of the table for the Fourier function, with optimal Fourier frequency *k* recorded in the last column of the table, the significance of Fourier form parameters (sine and cosine) are observed. Thus, the results in Table 2 confirm the nonlinear nature of day-of-the-week in Spanish electricity prices. The persistence results, though, all in mean reverting ranges, are in the interval 0.62–0.77. The persistence on Monday, Saturday and Sunday are 0.64, 0.69 and 0.64 respectively while others (Tuesday–Friday) are in the range of 0.71–0.77.

To probe further for possible monthly seasonality, the monthly dataset is estimated by employing a seasonal AR model in the nonlinear I(d) frameworks. Thus, we re-specify (2) as

˜ε=θ12˜εt−12+vt

where Table 3, where the non-significance of the seasonal AR parameter with nonlinearity detected as is found to be significant at the 5% level.

is the seasonal AR parameter in the case of monthly time series, and is the lag 12 of the resulting fractionally differenced series. Thus, determines the monthly seasonal autoregression between the previous 12th observation (i.e., and the current observation, The model in Equation (11) is then analyzed with Equations (8) and (10) to obtain results for the Chebyshev polynomial and Fourier function respectively. The results of the Chebyshev polynomial reported in the upper panel of the results table indicated non-significance of seasonal AR parameter with a very low coefficient (0.0816). Meanwhile, the fractional persistence estimate is computed as 0.9323 which is quite higher than that obtained for the case of daily pricing. Similar results are obtained in the case of the Fourier function presented in the last panel of## IV. Concluding remarks

Energy pricing and its distribution are some of the major global discussions because they affect households and businesses. This study is motivated by the alarmingly rising electricity prices in Spain since July 2021 due to the global gas crisis. Thus, the findings in this study guide regulators and the government to know the price dynamics of electricity in Spain. We employed updated fractional persistence frameworks in nonlinear settings in investigating how day-of-the-week affects persistence and seasonality in the pricing from 01/01/2006 to 04/11/2021. Results obtained indicate mean reversion in prices across all days of the week and there is a fair increase in persistence during the working days (Tuesday, Wednesday, Thursday and Friday) compared to weekend days. No evidence of seasonality is found in the monthly price series. It is hoped that the results obtained here will guide in making energy usage policies in Spain.

### Acknowledgements

Comments of the Editor and reviewers are gratefully acknowledged.