Skip to content

An analysis of the real electricity demand in Spain using Fast Fourier Transform

Notifications You must be signed in to change notification settings

CGraciolli/Electricity-Demand

Repository files navigation

Electricity Demand

Objectives:

  • Get the data of the real electricity demand from the Spanish electricity grid during the period from 02/09/2018 to 06/10/2018, using their API.
  • Decompose the electricity demand using Fast Fourier Transform.
  • Deploy an API to allow remote access to this data.

The Data:

demand

As we can see in the graph above, the function is approximately periodical. This make it a good candidate to be modeled using a Fourier Transform.

welch"

As expected, the spectral density estimated has peaks near the frequencies that represent one week (1/(24*7) ≈ 0.006), one day (1/24 ≈ 0.04), and twelve hours (0.08).

The APIs:

I decided to make two APIs, one returning the fast fourier transform, the other the Welch estimated power spectral density. Both return the values from 02/09/2018 to 06/10/2018 in their home page, but also have option of changing dates.

The reason for including the second API is that, if the objective of computing the FFT for the signal is to detect seasonal patterns, they can be found by looking at the spectral density for peaks. The Welch estimated is just a smoothed periodogram, making it easier to detect patterns.

About

An analysis of the real electricity demand in Spain using Fast Fourier Transform

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages