Stylized Facts

Empirical insights into former Yugoslav economies

GDP Real Sector

Part 2. Can Bosnia and Herzegovina’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 the GDP series is persistent, seasonal and non-stationary in levels, the natural next question is whether a statistical model can use that structure to forecast the near future. The ARIMA model used here is estimated on the log-transformed series and tested against 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 or fiscal policy. It asks whether the past behaviour of the series itself contains enough information for short-term projection.

Figure 4. GDP for Bosnia and Herzegovina — ARIMA model residuals analysis

Table 2 reports an ARIMA model with an autoregressive coefficient of about 0.737, a seasonal moving-average coefficient of about -0.313 and a positive constant of about 0.0076. All three are statistically significant. The autoregressive coefficient confirms persistence: GDP movements do not disappear immediately, but carry over into subsequent quarters. The coefficient is lower than in some very smooth macroeconomic level series, which suggests that short-run corrections and shocks matter, but it is still large enough to confirm meaningful inertia.

Table 2. ARIMA model estimation and parameters accuracy

Modelarimaetsnaivesnaive
sigma20.0000.0000.0070.001
log_lik223.750146.818NANA
AIC-439.500-275.635NANA
AICc-439.040-273.542NANA
BIC-429.413-252.556NANA
MSENA0.000NANA
AMSENA0.001NANA
MAE.xNA0.003NANA
lb_stat2.52515.927265.81663.430
lb_pvalue0.7730.0070.0000.000
.typeTestTestTestTest
ME0.0020.0010.0170.042
RMSE0.0060.0090.0390.044
MAE.y0.0050.0080.0350.042
MPE0.0400.0300.3450.883
MAPE0.1080.1590.7410.883
MASENANANANA
RMSSENANANANA
ACF10.2490.1970.1770.572
estimate__ar10.737NANANA
std.error__ar10.075NANANA
statistic__ar19.806NANANA
p.value__ar10.000NANANA
estimate__sma1-0.313NANANA
std.error__sma10.114NANANA
statistic__sma1-2.743NANANA
p.value__sma10.007NANANA
estimate__constant0.008NANANA
std.error__constant0.001NANANA
statistic__constant5.045NANANA
p.value__constant0.000NANANA

The negative seasonal moving-average coefficient indicates that seasonal innovations are corrected over time. This fits the evidence from Part 1, where seasonal strength was extremely high. The positive constant is consistent with an underlying growth tendency in the log-transformed series. In economic terms, the model is capturing three elements: gradual growth, persistence from the recent past and seasonal adjustment in the response to shocks.

The residual diagnostics are strong. The Ljung-Box p-value for the ARIMA model is about 0.773, which means that there is no evidence of serious remaining residual autocorrelation. Figure 4 supports this. Most residuals fluctuate around zero, although several shocks remain visible, especially around the global financial crisis and the COVID-19 period. The pandemic-related residual is particularly large and negative, which is exactly what one would expect from an event that cannot be predicted from the normal statistical structure of the series.

The ARIMA model also performs well against benchmark models. Its holdout MAPE is about 0.108%, lower than the ETS model and much lower than the naive and seasonal naive alternatives. Its RMSE and MAE are also smaller than the benchmark models. This is important because a useful forecasting model should not merely reproduce the past; it should outperform simple alternatives. In this case, ARIMA provides a clearly better short-term forecast than using the previous value or the same quarter from the previous year.

Figure 5 and Table 3 show the eight-quarter forecast from 2024Q1 to 2025Q4. The forecast retains the seasonal pattern of the GDP index, with lower first-quarter values and higher values later in the year. All actual observations fall within both the 80% and 95% forecast intervals. This is a strong result for a short-term forecasting exercise. It means that the model’s uncertainty bands are wide enough to contain the realised path, but still narrow enough to be informative.

Figure 5. GDP for Bosnia and Herzegovina — ARIMA model forecast, log transformation

The point forecasts are also close to actual values. In 2024Q4, the actual value is 120.382, while the forecast mean is 120.479. In 2025Q2, the actual value is 120.031, while the forecast mean is 119.812. In 2025Q3, the actual value is 124.705, while the forecast mean is 124.398. The largest visible difference is in 2025Q4, where the actual value is 122.865 and the forecast mean is 123.997, but even there the actual value remains well within the forecast intervals.

Table 3. Forecast eight quarters ahead — ARIMA model

DateActualMeanLower 80%Upper 80%Lower 95%Upper 95%
2024 Q1111.7110.9107.9114.0106.3115.7
2024 Q2117.4116.4112.5120.5110.5122.7
2024 Q3121.9120.9116.4125.5114.2128.0
2024 Q4120.4120.5115.9125.3113.5127.9
2025 Q1113.8114.2108.9119.7106.2122.8
2025 Q2120.0119.8113.8126.1110.7129.6
2025 Q3124.7124.4117.9131.2114.6135.0
2025 Q4122.9124.0117.4131.0114.1134.8

The practical conclusion is that the ARIMA model is useful as a short-term monitoring tool for Bosnia and Herzegovina’s GDP. It provides a disciplined baseline against which new GDP releases can be compared. If future observations fall far outside the forecast bands, that would suggest new information or a new shock. However, the model should not be treated as a full economic forecast. It cannot anticipate political shocks, external-demand changes, energy-price movements or policy shifts before they appear in the data.

Methodological appendix to Part 2

ARIMA stands for autoregressive integrated moving average. The autoregressive part means that current values depend partly on past values. The integrated part means that differencing is used to make a non-stationary series more suitable for modelling. The moving-average part means that current values also reflect past shocks or forecast errors. Seasonal ARIMA models extend this logic to recurring quarterly or monthly 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 then evaluated on observations that were 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 values. Residual tests, especially 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.