Skip to main content
Log in

A proposal for measuring and comparing seasonal variations in hourly economic time series

  • Published:
Empirical Economics Aims and scope Submit manuscript

Abstract

Hourly data usually exhibit complex seasonal variations characterized by yearly, monthly, weekly or daily seasonal patterns. Each seasonal variation is modelled by using an evolving spline function in such a way that a seasonal effect at a proportion of the seasonal period is defined as a non-fixed parametric formulation of this proportion. Subsequently, the areas under the splines are proposed as a useful tool to measure the changes in the magnitude of seasonal variations over time, and to compare the relevance of seasonal variations with different seasonal periods. Furthermore, two indexes are suggested to compare seasonal variations with the same seasonal period in different time series: a dissimilarity index accounts for the area between the splines corresponding to the seasonal variation for each series, whereas a complementarity index accounts for this area when seasonal effects have opposite signs. The proposal is illustrated by applying it to hourly series of energy demand in Canary Islands.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9

Similar content being viewed by others

Availability of data and materials

Original data are available from authors upon request.

Code availability

Command files are available from authors upon request.

Notes

  1. Other approaches such as artificial neural networks have also been applied to short-term forecasting of energy demand (see Darbellay and Slama 2000; Taylor 2010; Yuan et al. 2018).

  2. It means that \(m\) is the number of days, weeks, months or years over the sample period when the seasonal cycle is, respectively, the daily, weekly, monthly or yearly pattern.

  3. The RESM model is proposed by Martin-Rodriguez and Caceres-Hernandez (2012), but this constraint is included in Caceres-Hernandez and Martin-Rodriguez (2017).

  4. Note that there are \(4k\) unknown parameters in the original spline function, but the formulation of \(3k+1\) constraints allow us to express the original function in terms of \(k-1\) free parameters.

  5. An illustration of this procedure is shown in Fig. 10 in the electronic supplementary material.

  6. An illustration of this procedure is shown in Fig. 11 in the electronic supplementary material.

  7. The idea is similar to the proposal in Martin-Rodriguez and Caceres-Hernandez (2013) to measure the evolution of yearly seasonal patterns in weekly series. However, to compare the magnitude of seasonal variations with different seasonal periods, the length of these seasonal periods must be taken into account. Note that the areas calculated are proportional to the length of the segment identifying the seasonal period and the value in this segment moves always between 0 and 1. However, the lengths of the weekly and yearly seasonal periods are, respectively, 7 and 365 or 366 times the length of the daily seasonal period. Therefore, the areas calculated according to Eq. (16) to measure the relevance of weekly and yearly seasonal variations in a day should be multiplied by 7 and 365 or 366 to be compared with the relevance of the daily seasonal variation in this day.

  8. Pina et al. (2011) analyse the effects of the interconnection between the nine islands of Azores, whereas Keppler and Meunier (2018) study the effects of the interconnection between France and Germany.

  9. The consumption level in MW h is measured from the hourly programmed electricity production by the power generation plants (operational hourly schedule), drawn up by Red Eléctrica de España (REE) depending on the evolution of demand. These data, provided by the System Operators’ Information System (SIOS), are available from htttps://www.esios.ree.es/es/analisis.

  10. It is assumed that the amplitude of seasonal variations in the original series increases as the underlying level rises according to a multiplicative model. However, the log transformation provides an additive combination. Although the model proposed is flexible enough to capture changing seasonal patterns corresponding to an additive model for the original series, it seems to be more appropriate to assume that the magnitude of seasonal variation depends on the underlying level. Furthermore, a less parsimonious model would probably be required to model the effects of public holidays for series in levels. On the other hand, we have observed the log transformation clearly stabilizes the variance of the series, and, according to Lutkepohl and Xu (2012), improvements in forecasting accuracy are expected.

  11. Unobserved components model decomposes a time series into components such as trend or seasonal, and also allows for exogenous variables to represent the most salient features of the series under study. The most elementary structural time series model deals with a series whose underlying level changes over time according to a local level model. This flexible stochastic specification of a time-varying trend component implies that the level at time \(t\) is equal to the level at time \(t-1\) plus a white noise disturbance (see Harvey 1989: 18–19).

  12. Some of these anomalous observations are related to unexpected interruptions in power supply from electrical grid.

  13. Daylight-saving time is the period between spring and autumn when clocks are moved forward to have an extra hour of daylight in the evening. All EU member states move clocks forward one hour on the last Sunday in March and back one hour on the last Sunday in October.

  14. In the common power system for Fuerteventura and Lanzarote, some public holidays are not the same on both islands (Virgin La Peña is only celebrated in Fuerteventura and Virgin Los Dolores is only observed in Lanzarote). For hourly observations during these public holidays, the corresponding dummy variable is assumed to be equal to the relative weight of Fuerteventura or Lanzarote population compared with the total population covered by this power system.

  15. Chida et al. (2015) propose a similar procedure to filter seasonal variations in hourly data, but another method is applied in that paper to define the window of moving averages. Zhang and Wang (2018) introduce a nonparametric technique to identify and extract trend, periodic components or noise in time series analysis.

  16. Six-segment cubic splines with equally spaced break points were chosen.

  17. Estimating these models is computationally hard due to the high number of observations and the co-existence of several seasonal cycles. However, the RESM model is very useful to reduce the number of parameters needed to capture this type of seasonal component. This formulation of the seasonal model is included as a set of explanatory variables into a structural time series model to estimate conjointly the seasonal components and the remaining components in the original series. Estimates by maximum likelihood are obtained by using the Stamp 8.30 module of Ox-Metrics 6.20 package.

  18. The forecasts for the level component were obtained from a six-segment non-periodic cubic spline adjusted to the estimates for the sample period.

  19. The forecasts for the seasonal cycles were obtained according to Eq. (14) as explained in the methodological section.

  20. The forecasts for the level component were also obtained from a six-segment non-periodic cubic spline adjusted to the estimates for the sample period.

  21. Forecasts of electricity demand are obtained from these forecasts for each seasonal component and also for the level component (by using a non-periodic spline adjusted to the estimates of the stochastic level from 2009 to 2017). To illustrate these forecasts, averages of observed and forecast values for any hour in a day are shown in Fig. 13 in the electronic supplementary material.

  22. The identification of roots of the spline function for each seasonal cycle (daily, weekly or yearly) into the sample (2009–2017) and out of the sample (2018–2019) is a computationally demanding task. For each one of the six time series, there are 11 yearly cycles, 575 weekly cycles and 4.017 daily cycles. Fortunately, the RESM model imposes smooth changes between consecutive seasonal cycles and the roots of the spline function corresponding to a seasonal cycle are usually similar to the corresponding ones to the following seasonal cycle.

  23. To obtain estimates of the area corresponding to the days in 2018 and 2019, the spline parameters of the last segment were applied to the proportions higher than 1 corresponding to each hourly observation.

References

Download references

Acknowledgements

We would like to thank Alfredo Ramirez Diaz and Francisco Ramos Real for their help to collect data. We also thank anonymous reviewers for their useful suggestions to improve and clarify this manuscript.

Funding

This research has not been supported by any funds or grants.

Author information

Authors and Affiliations

Authors

Contributions

All authors contributed to the study conception and design. Data collection was performed by Jonay Hernandez-Martin. Statistical analysis was performed by Jose Juan Caceres-Hernandez and Gloria Martin-Rodriguez. The first draft of the manuscript was written by Jose Juan Caceres-Hernandez and Gloria Martin-Rodriguez and all authors commented on previous versions of the manuscript. All authors read and approved the final manuscript.

Corresponding author

Correspondence to Jose Juan Caceres-Hernandez.

Ethics declarations

Conflict of interest

The authors declare that they have no conflict of interest.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Supplementary Information

Below is the link to the electronic supplementary material.

Supplementary file1 (DOCX 1628 kb)

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Caceres-Hernandez, J.J., Martin-Rodriguez, G. & Hernandez-Martin, J. A proposal for measuring and comparing seasonal variations in hourly economic time series. Empir Econ 62, 1995–2021 (2022). https://doi.org/10.1007/s00181-021-02079-3

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00181-021-02079-3

Keywords

Navigation