• Non ci sono risultati.

6. APPLICATION AND VALIDATION OF VAR MODELS

6.4 Univariate regression results comparisons

6.4.2 ARIMA and ES models construction

All the analysis and forecasts have been performed in R. A first step has been defining the best ARIMA and ES models that minimize the AIC through the R built-in functions auto,arima() and ets(). Because the time series is relatively long, a trabuilt-inbuilt-ing and a test set have been used to compare the models, rather than time series cross-validation [6]. This brings to much faster results, without losing too much accuracy for not having considered all the data at our disposal. A training set for the model selection from January 1990 to December 2013, and a test set from January 2014 to December 2019 to compare the forecasting accuracy of the models have been defined. The year 2020 has been excluded in this part of the analysis on purpose, because the outliers from the pandemic crisis could bias this selection phase. In fact, as much as we are interested in modeling the crisis recovery, the work also aims at a long-run forecast, where the global trend is strongly affected by outliers. As the results will show, the presence of the 2009 recession (similar in some ways to the present crisis) in the training dataset seems to bring to reasonable results in terms of post-pandemic recovery, having similarities with the post-2009 trend.

The nowcasts from 2014 to 2019 performed by the various models have been compared to the real data. The final results consist of a weighted average forecast combination [7], where the weights are higher for the models that have shown lower MAPE in the nowcasts. It is, in fact, well known how forecast combinations often lead to increased forecast accuracy [8][9].

As last step, all the historical and forecasted data have been annualized through averaging the monthly values.

Here follows a practical example describing all the various steps of the analysis for one of the industrial subsectors (pulp, paper and printing), while all the results are shown below.

The annualized historical data well shows the overall trend of the series, as well as the subsector’s behavior to the 2009 crisis. This is an important information for critically assess the forecast results. For example, in Figure 2 it can be seen how for the pulp and paper sector the general increasing trend has been stopped by the 2009 recession, and the further recovery has been very small. From this, it can be expected a very small recovery from the today crisis.

Figure 29: Pulp, Paper and Printing annualized production index (2015 = 100)

The R function auto.arima() auto selects the ARIMA model with the lowest AIC. From the Table 13 it can be seen that the π€π‘πˆπŒπ€(𝟏, 𝟏, πŸ‘)(𝟎, 𝟏, 𝟏)𝟏𝟐 has the lowest AIC.

Table 13: Performances of different ARIMA models considering non-seasonal differencing of the time-series.

Model AIC Model AIC

π€π‘πˆπŒπ€(𝟎, 𝟏, 𝟐)(𝟎, 𝟏, 𝟏)𝟏𝟐 1571.22 π€π‘πˆπŒπ€(𝟐, 𝟏, 𝟎)(𝟎, 𝟏, 𝟏)𝟏𝟐 1569.66 π€π‘πˆπŒπ€(𝟎, 𝟏, 𝟐)(𝟐, 𝟏, 𝟎)𝟏𝟐 1577.73 π€π‘πˆπŒπ€(𝟐, 𝟏, 𝟎)(𝟐, 𝟏, 𝟎)𝟏𝟐 1566.34 π€π‘πˆπŒπ€(𝟎, 𝟏, πŸ‘)(𝟎, 𝟏, 𝟏)𝟏𝟐 1563.50 π€π‘πˆπŒπ€(𝟐, 𝟏, 𝟏)(𝟎, 𝟏, 𝟏)𝟏𝟐 1564.91 π€π‘πˆπŒπ€(𝟎, 𝟏, πŸ‘)(𝟐, 𝟏, 𝟎)𝟏𝟐 1569.06 π€π‘πˆπŒπ€(𝟐, 𝟏, 𝟏)(𝟐, 𝟏, 𝟎)𝟏𝟐 1566.48 π€π‘πˆπŒπ€(𝟎, 𝟏, πŸ’)(𝟎, 𝟏, 𝟏)𝟏𝟐 1563.29 π€π‘πˆπŒπ€(𝟐, 𝟏, 𝟐)(𝟎, 𝟏, 𝟏)𝟏𝟐 1566.74 π€π‘πˆπŒπ€(𝟏, 𝟏, 𝟐)(𝟎, 𝟏, 𝟏)𝟏𝟐 1567.39 π€π‘πˆπŒπ€(πŸ‘, 𝟏, 𝟎)(𝟎, 𝟏, 𝟏)𝟏𝟐 1567.24 π€π‘πˆπŒπ€(𝟏, 𝟏, 𝟐)(𝟐, 𝟏, 𝟎)𝟏𝟐 1572.12 π€π‘πˆπŒπ€(πŸ‘, 𝟏, 𝟎)(𝟐, 𝟏, 𝟎)𝟏𝟐 1566.93 π€π‘πˆπŒπ€(𝟏, 𝟏, πŸ‘)(𝟎, 𝟏, 𝟏)𝟏𝟐 1562.23 π€π‘πˆπŒπ€(πŸ‘, 𝟏, 𝟏)(𝟎, 𝟏, 𝟏)𝟏𝟐 1566.95

Despite this first analysis, forecasting with this model brings to completely inaccurate results. Figure 30 well shows such inaccuracy, considering the diverging confidence bounds and the strong decrease in the projections, contrarily from what it is expected given the historical trend.

Figure 30: Forecast results for ARIMA(1,1,3) (0,1,1)12

Even choosing other models in the table do not improve the accuracy. For this reason, the model selection has been performed again by forcing the function auto.arima() to work without non-seasonal differencing. The final models have been chosen for comparison (2 ARIMA and 1 ES):

β€’ π€π‘πˆπŒπ€(πŸ‘, 𝟎, 𝟎)(𝟎, 𝟏, 𝟐)𝟏𝟐: AIC = 1535.86

β€’ π€π‘πˆπŒπ€(πŸ‘, 𝟎, 𝟎)(𝟐, 𝟏, 𝟎)𝟏𝟐 𝐰𝐒𝐭𝐑 𝐝𝐫𝐒𝐟𝐭: AIC = 1564.82

β€’ 𝐄𝐓𝐒(𝐀, 𝐀𝐝, 𝐀): AIC = 2461.5

Table 14 summarizes the MAPE determined from the nowcasts of each model and the real data.

Table 14: Final selection of the univariate regression models for performing the forecast combination

Model MAPE [%]

π€π‘πˆπŒπ€(πŸ‘, 𝟎, 𝟎)(𝟎, 𝟏, 𝟐)𝟏𝟐 4.282

π€π‘πˆπŒπ€(πŸ‘, 𝟎, 𝟎)(𝟐, 𝟏, 𝟎)𝟏𝟐 𝐰𝐒𝐭𝐑 𝐝𝐫𝐒𝐟𝐭 4.976

𝐄𝐓𝐒(𝐀, 𝐀𝐝, 𝐀) 4.292

At this point, the three models can be combined to obtain the final results. As stated above, the forecast combination consists of a weighted average of the forecasts

with respect to their MAPE value in the training. In this case, the ARIMA model without drift has the highest weight, while the ARIMA model with drift has the lowest.

The results of the projections for the Pulp and paper and Non-Metallic minerals subsectors are presented in Figure 31 – Figure 32. It is showed how the Pre-Pandemic and Post-pandemic projections present very similar long-term linear trends, as if they were shifted horizontally. The two Pre-pandemic projections highly differ from the PNIEC projections, which present a higher general increase up to 2040. Compared with the VAR projections in Figure 26 and Figure 27, a higher inaccuracy is also present in terms of amplitude of the confidence bounds, ranging in 2040 in an interval much higher than the one of the entire historical dataset.

Figure 31: ARIMA and ES forecast combination of the Pulp and paper sector. The red and blue areas represent the 95 % confidence bounds of respectively the Pre-pandemic and Post-pandemic projections.

Figure 32: ARIMA and ES forecast combination of the Non-metallic minerals sector. The red and blue areas represent the 95 % confidence bounds of respectively the Pre-pandemic and Post-pandemic projections.

Furthermore, the decreasing trend in the projections of Non-metallic minerals is a perfect example of the limitations that univariate regression models like ARIMA and ES present in this type of analyses. In fact, if on one hand the projections for such sector seem to perform well in following the general historical trend, the final results go in a completely opposite direction with respect to PNIEC. This is mostly due to the fact that such models do not work with any information on the linkages that can be present among the various industrial sectors, differently from multivariate regression models like VAR. In fact, in the VAR results showed in Figure 26, the increase of the Non-metallic minerals industrial production projections derives from having considered such relationships among the different sectors.

For this reasons, the advantages of having chosen a multivariate regression model to perform such analysis are clear. In fact, VAR models have proven to be able to partially recreate one of the main strengths of general equilibrium models, that is the internal coherence among the various sectors that have to be analyzed4. The only drawback can be related to the overall accuracy in terms of the confidence bounds of the projections, which remain relatively high. However, the amplitude of such intervals can be exploited when performing the energy consumption projections by means of a sensitivity analysis. Such analysis have the advantage of defining different future pathways without the need of defining any constraint, differently from what it is generally done in a scenario analysis approach.

4 Such internal coherence can be defined as partial being that it is based only on mathematical relationships (i.e., the correlations among the time-series), and not on macroeconomic assumptions.

Chapter 7

Documenti correlati