SARIMA Model for Bias Prediction

Here we study and apply ARIMA and SARIMA models, for external model bias prediction.
During the analysis bias can appear as vies, portuguese word for bias.

We present here the equation for SARIMA models:

$y_t = \color{orange}{y_t - d \cdot y_{t-1}} = c + \color{blue}{\sum_{n=1}^{p} \alpha_n y_{t-n}} + \color{red}{\sum_{n=1}^{q} \theta_n \epsilon_{t-n}} + \color{green}{\sum_{n=1}^{P} \phi_n y_{t-sn} + \sum_{n=1}^{Q} \eta_n \epsilon_{t-sn}} + \epsilon_t$

ARIMA/SARIMA Model

We will apply both ARIMA and SARIMA models, to predict the bias. Therefore, our time-series will be other prediction models bias. Our study will be applied to only one power plant (U1) and in the end we will see its outcome on other power plants.

First Analysis

We start by analyzing data from 1 month, used as training set and prediction of 2 days. We apply window of 1 month for training set, accordingly to the document "Modelo_de_correco_de_vies_da_previso_de_vento_do_ONS", where it is said that, for ONS prediction models, 1 month window showed the best performance. A future work may analyze the impact of the training window over these SARIMA models.

In the first analysis we will apply November/2020 as training set.

Signal Stationarity Analysis

To guarantee that SARIMA models will work, we need to guarantee the stationarity of the data. This is obtained here, through the mean and standard deviation visualization and the statistical adfuller test.

The visualization shows that the daily mean fluctuates widely, but it does not appear to show a trend. This is confirmed by the adfuller test, which has a p-value of the order of 10e-16.

The signal, however, appears to present a daily pattern, which we will take in account later.

Correlogram and partial correlogram

Our next step is to analyze the ACF and PACF graphics, to identify the ARIMA and SARIMA model hiperparameters.

The data autocorrelation clearly shows the presence of sazonality. Before proceeding to this, we will analyze the signals first derivative.

1st derivative

ARIMA (p,d,q) = (0,1,1)

With these results, we apply our first, simpler, model, an ARIMA with derivative.
Below are presented the model parameters as well as some statistics analysis, used to investigate the model quality and reliability.

The in-sample 1 step ahead prediction is used to show that the model is capable of following the data. However, since our data contains sazonality, this simpler model is capable of only predicting the average daily value. We proceed to SARIMA model.

SARIMA Model

For our SARIMA model, we first investigate its data decomposition, in trend, sazonality and residue. The sazonality compromises of 48 points, corresponding to a daily sazonality.

Stationarity test

Correlogram and partial correlogram

SARIMA: (p,d,q)(P,D,Q,s) = (1,1,1)(1,1,1,48)

We performed a grid search over some hiperparameters values and here we present the best one achieved.

Same Model applied to Power Plants 3 and 13

We selected Power Plants 3 and 13 to test this model behavior on other power plants. These two presented worse bias, with higher deviation, among others.

Power Plant 3

Power Plant 13

Post work

These results show that a good model for one power plant may not be the best one for others. Each one need to be analyzed individually. Moreover, a full analysis must be conducted, regarding other hyperparameters like window size and different sazonalities.

Our model considered a fixed daily sazonality and addictive SARIMA models. A different approach would be consider a multiplicative SARIMA model. We can also extend to SARIMAX models, using external data like weather prediction as exogenous predictors.