Stylized Facts

Empirical insights into former Yugoslav economies

GDP Real Sector

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

Reading Time: 4 minutes

ARIMA Estimation and Short-Term Forecasting

2.1 From time-series structure to forecasting

Part 1 showed that Serbia’s GDP has strong trend, persistence and seasonality. Part 2 asks whether this structure can be captured well enough to produce useful short-term forecasts. The forecasting model used here is an ARIMA model estimated on the log-transformed GDP series. ARIMA models do not explain GDP using separate macroeconomic drivers such as consumption, investment, exports or fiscal policy. Instead, they forecast the future from the statistical structure of the series itself: its persistence, its past shocks and its seasonal behaviour.

Figure 4. GDP for Serbia — ARIMA model residuals analysis

Table 2 reports an ARIMA specification with a strong autoregressive component, a moving-average term, a seasonal moving-average term and a constant. The autoregressive coefficient is about 0.916 and is estimated very precisely. This confirms the persistence already visible in the autocorrelation function. Economically, it means that shocks to the GDP path do not disappear immediately. A high or low movement in one quarter tends to influence subsequent quarters, although the effect gradually fades.

Table 2. ARIMA model estimation and parameters accuracy

Modelarimaetsnaivesnaive
sigma20.0010.0010.0070.003
log_lik210.130108.428NANA
AIC-410.260-198.856NANA
AICc-409.699-197.174NANA
BIC-396.623-173.997NANA
MSENA0.001NANA
AMSENA0.002NANA
MAE.xNA0.024NANA
lb_stat9.68912.143209.04849.737
lb_pvalue0.0850.0330.0000.000
.typeTestTestTestTest
ME-0.001-0.0030.0820.044
RMSE0.0080.0110.0900.046
MAE.y0.0070.0100.0820.044
MPE-0.012-0.0651.7080.923
MAPE0.1440.2031.7080.923
MASENANANANA
RMSSENANANANA
ACF1-0.2130.088-0.2880.173
estimate__ar10.916NANANA
std.error__ar10.053NANANA
statistic__ar117.303NANANA
p.value__ar10.000NANANA
estimate__ma1-0.284NANANA
std.error__ma10.130NANANA
statistic__ma1-2.190NANANA
p.value__ma10.031NANANA
estimate__sma1-0.817NANANA
std.error__sma10.074NANANA
statistic__sma1-11.050NANANA
p.value__sma10.000NANANA
estimate__constant0.003NANANA
std.error__constant0.000NANANA
statistic__constant5.093NANANA
p.value__constant0.000NANANA

The moving-average coefficient is negative and statistically significant. This suggests that short-run innovations are partly corrected in subsequent quarters. The seasonal moving-average coefficient is also strongly negative and highly significant, which is consistent with the strong quarterly seasonal structure identified in Part 1. The constant term is positive and statistically significant, reflecting the underlying growth tendency in the transformed series.

The residual diagnostics are broadly acceptable. The Ljung-Box p-value for the ARIMA model is around 0.084. At the conventional 5% level, this means that the null hypothesis of no remaining residual autocorrelation is not rejected. The result is not so large that the model can be treated as flawless, but it is good enough for a practical short-term forecasting model. Figure 4 tells the same story visually. Most residuals fluctuate around zero, but there is a very large negative residual around 1999 and another visible disturbance around 2020. These are not ordinary forecasting errors; they correspond to exceptional historical shocks that a univariate model cannot be expected to anticipate fully.

Table 2 also compares the ARIMA model with simpler benchmarks. On the holdout sample, the ARIMA model has a much lower MAPE than the naive and seasonal naive alternatives and also performs better than the ETS model. This matters because a useful forecasting model must do more than fit the historical data. It should also outperform simple rules such as “use the last observed value” or “use the value from the same quarter last year.” In this case, ARIMA provides a more disciplined short-term projection.

2.2 Forecast performance

Figure 5 and Table 3 show the eight-quarter forecast from 2024Q2 to 2026Q1. The forecast preserves the seasonal pattern of the GDP index, with lower values in the first quarter and higher values later in the year. More importantly, all actual holdout observations fall within both the 80% and 95% prediction intervals. This is an important practical result. It means that the model’s uncertainty bands are wide enough to contain the realised values, but not so wide as to be analytically meaningless.

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

Several point forecasts are very close to the observed values. In 2024Q3, for example, the actual value is 121.377 and the forecast mean is 121.470. In 2024Q4, the actual value is 126.114 and the forecast mean is 125.726. In other quarters, the forecast is less exact but still close in relation to the level of the GDP index. The model slightly underestimates some observations and slightly overestimates others, but there is no obvious pattern of persistent overprediction or underprediction across the holdout period.

Table 3. Forecast eight quarters ahead — ARIMA model

DateActualMeanLower 80%Upper 80%Lower 95%Upper 95%
2024 Q2118.9117.1111.6122.9108.8126.1
2024 Q3121.4121.5114.7128.6111.3132.6
2024 Q4126.1125.7118.0134.0114.1138.6
2025 Q1113.9114.9107.3123.1103.5127.6
2025 Q2121.4120.5111.7130.0107.4135.4
2025 Q3123.8125.0115.4135.5110.6141.4
2025 Q4128.9129.4119.0140.8113.8147.2
2026 Q1117.6118.3108.4129.1103.5135.2

The forecast should be interpreted as a baseline statistical projection rather than a full macroeconomic scenario. It is useful precisely because it provides a disciplined benchmark: if the actual GDP series moves far outside the forecast interval, that would be a warning sign that new information has entered the system. However, the model does not know in advance about future policy shocks, energy-price shocks, geopolitical changes or sudden changes in external demand. It will recognise such developments only after they appear in the data.

The conclusion from Part 2 is therefore positive but cautious. The ARIMA model captures Serbia’s short-term GDP dynamics well over the holdout period. It is useful for monitoring and near-term projection, but it should be combined with economic judgement and contextual information when used for policy analysis or public commentary.

Methodological appendix to Part 2

ARIMA stands for autoregressive integrated moving average. “Autoregressive” means that current values depend partly on past values. “Integrated” means that differencing is used to make a non-stationary series more suitable for modelling. “Moving average” means that current values also depend on past forecast errors or innovations. Seasonal ARIMA models extend this logic to regular seasonal patterns, which is especially relevant for quarterly GDP. In this analysis, the sample is divided into a training period and an eight-quarter holdout period. The model is estimated on the training part and then used to forecast the holdout observations. This separation is important because a model can fit the past well and still forecast poorly. Forecast accuracy is assessed using measures such as RMSE, MAE and MAPE. RMSE gives more weight to larger errors, MAE measures average absolute error and MAPE expresses error as a percentage of the observed values. Residual diagnostics, including the Ljung-Box test, check whether the model has left systematic autocorrelation unexplained.

LEAVE A RESPONSE

Director of Wellington based My Statistical Consultant Ltd company. Retired Associate Professor in Statistics. Has a PhD in Statistics and over 45 years experience as a university professor, international researcher and government consultant.