Part 2. Can Slovenia’s GDP Be Forecast from Its Own Past?

Reading Time: 4 minutes

ARIMA estimation and short-term forecasting

Part 2 moves from description to forecasting. Since Part 1 showed that Slovenia’s GDP is persistent, seasonal and non-stationary in levels, the natural question is whether a statistical model can use that structure to forecast the near future. The ARIMA model used here is estimated on the transformed series and evaluated over an eight-quarter holdout period. This is a statistical forecasting exercise, not a structural macroeconomic model. It does not explain GDP through consumption, investment, exports, industrial production, fiscal policy or external demand. It asks whether the past behaviour of the series itself contains enough information for short-term projection.

Figure 4. GDP for Slovenia — ARIMA model residuals analysis

Table 2 reports an ARIMA model with two autoregressive coefficients, one seasonal moving-average coefficient and a positive constant. The first autoregressive coefficient is about 0.714 and is highly statistically significant. The second autoregressive coefficient is about 0.201 and is also statistically significant. Together, these coefficients confirm that Slovenia’s GDP has strong inertia: current movements are meaningfully linked to recent past movements. The seasonal moving-average coefficient is about -0.691 and is highly significant, confirming that seasonal corrections are important in the model. The constant is positive and statistically significant, which is consistent with an underlying growth tendency in the transformed series.

Table 2. ARIMA model estimation and parameters accuracy

Modelarimaetsnaivesnaive
sigma20.0010.0000.0020.001
log_lik258.277166.732NANA
AIC-506.554-315.464NANA
AICc-505.971-313.717NANA
BIC-493.097-290.918NANA
MSENA0.000NANA
AMSENA0.001NANA
MAE.xNA0.003NANA
lb_stat5.7396.524246.619103.561
lb_pvalue0.3320.2590.0000.000
.typeTestTestTestTest
ME-0.017-0.0220.0580.019
RMSE0.0200.0250.0680.023
MAE.y0.0170.0220.0600.021
MPE-0.364-0.4591.2180.399
MAPE0.3640.4591.2500.431
ACF1-0.236-0.344-0.3820.349
estimate__ar10.714NANANA
std.error__ar10.094NANANA
statistic__ar17.624NANANA
p.value__ar10.000NANANA
estimate__ar20.201NANANA
std.error__ar20.095NANANA
statistic__ar22.121NANANA
p.value__ar20.036NANANA
estimate__sma1-0.691NANANA
std.error__sma10.100NANANA
statistic__sma1-6.900NANANA
p.value__sma10.000NANANA
estimate__constant0.002NANANA
std.error__constant0.001NANANA
statistic__constant3.493NANANA
p.value__constant0.001NANANA

Economically, this model captures three elements: trend-like drift, persistence from the recent past and seasonal correction. The positive autoregressive terms tell us that shocks do not disappear immediately. The negative seasonal moving-average term suggests that seasonal innovations are corrected across comparable quarters. This structure is plausible for a mature European economy whose GDP path is smooth in normal periods but still affected by large shocks.

The residual diagnostics are acceptable. The Ljung-Box p-value for the ARIMA model is about 0.332, so the residual autocorrelation test does not reject the model at conventional significance levels. Figure 4 supports this interpretation. Most residuals fluctuate around zero, though larger disturbances remain visible around the global financial crisis and COVID-19. These events should not be interpreted as ordinary forecasting errors. They are exceptional macroeconomic shocks that a univariate time-series model cannot anticipate from the internal structure of the series alone.

The model comparison in Table 2 favours ARIMA. Its holdout MAPE is about 0.364%, lower than ETS, the naive model and the seasonal naive model. Its RMSE and MAE are also lower than the benchmark alternatives. This matters because a forecasting model should not simply fit the training sample. It should also outperform simple rules such as using the previous value or the same quarter from the previous year. In this case, the ARIMA model provides the strongest short-term statistical benchmark.

Figure 5 and Table 3 show the eight-quarter forecast from 2024Q2 to 2026Q1. The forecast preserves the seasonal profile of the GDP index while projecting continued high levels. All actual holdout observations fall inside both the 80% and 95% prediction intervals. This is a strong practical result. It means that the model’s uncertainty bands are wide enough to contain the realised path, while still remaining analytically informative.

Figure 5. GDP for Slovenia — ARIMA model forecast, log transformation

The point forecasts are close to the actual values in several quarters, although the model tends to overpredict slightly during the holdout period. In 2024Q2, the actual value is 116.386 and the forecast mean is 116.444. In 2024Q4, the actual value is 120.877 and the forecast mean is 121.486. In 2025Q4, the actual value is 123.260 and the forecast mean is 124.742. The largest relative gap appears in first-quarter observations such as 2025Q1 and 2026Q1, where actual GDP is below the forecast mean but still within the forecast intervals. This suggests that the model captures the broad level and seasonal structure well, but it may slightly overstate the central path in the latest observations.

Table 3. Forecast eight quarters ahead — ARIMA model

DateActualMeanLower 80%Upper 80%Lower 95%Upper 95%
2024 Q2116.4116.4113.1119.9111.4121.8
2024 Q3116.3118.1113.9122.4111.8124.7
2024 Q4120.9121.5116.6126.6114.0129.4
2025 Q1109.5113.3108.2118.6105.6121.5
2025 Q2117.4119.5113.4126.0110.3129.6
2025 Q3118.5121.2114.4128.4111.0132.4
2025 Q4123.3124.7117.3132.7113.5137.1
2026 Q1112.8116.3109.0124.1105.3128.4

The practical conclusion is that ARIMA is a credible short-term forecasting tool for Slovenia’s GDP. It performs well diagnostically, outperforms the benchmark models and keeps actual values inside the forecast intervals. Nevertheless, it remains a baseline statistical forecast. If a new external shock, policy change or demand shift occurs, the model will recognise it only after it enters the data. For economic interpretation, the ARIMA forecast should be combined with information about European demand, domestic investment, prices, labour-market conditions and policy developments.

Methodological appendix to Part 2

ARIMA stands for autoregressive integrated moving average. The autoregressive part uses past values, the integrated part uses differencing to handle non-stationarity, and the moving-average part uses past shocks or forecast errors. Seasonal ARIMA models extend this logic to recurring quarterly patterns.

In this exercise, the series is split into a training sample and an eight-quarter holdout sample. The model is estimated on the training data and evaluated on observations not used in estimation. Forecast accuracy is assessed using RMSE, MAE and MAPE. RMSE penalises large errors more heavily, MAE measures average absolute error and MAPE expresses error as a percentage of the observed value. Residual diagnostics, especially the Ljung-Box test, check whether the model has left systematic autocorrelation unexplained. For Slovenia, ARIMA performs well both diagnostically and in the holdout comparison.

Leave a Reply