Evaluating machine learning and econometric models for inflation forecasting: evidence from a Sub-Saharan African panel
Baffour Osei, Abigail Boatemaa, Isaac Nyame, Gabriel Osei Forkuo
Key points
From the paper's conclusion- This study constructs a reproducible, annual panel of macroeconomic indicators for eight Sub-Saharan African economies (1972–2024, N = 424) to compare eight forecasting approaches: a naive random-walk benchmark, two linear econometric models (pooled OLS and country fixed effects), three machine learning models (Elastic Net, Random Forest, and XGBoost), and a recurrent neural network (LSTM) evaluat
Abstract
Policymakers in Sub-Saharan Africa increasingly face decisions regarding the adoption of machine learning methods for inflation forecasting, yet these approaches are rarely benchmarked against simple persistence models. This study constructs a reproducible, annual panel of macroeconomic indicators for eight Sub-Saharan African economies (1972–2024, N = 424) to compare eight forecasting approaches: a naive random-walk benchmark, two linear econometric models (pooled OLS and country fixed effects), three machine learning models (Elastic Net, Random Forest, and XGBoost), and a recurrent neural network (LSTM) evaluated with and without early stopping. Using a chronological train/validation/test split and pairwise Diebold–Mariano tests, we evaluate out-of-sample predictive accuracy. The empirical results indicate that no estimated model statistically outperforms the naive persistence baseline. While Random Forest, XGBoost, Elastic Net, and the early-stopped LSTM show no statistically significant difference from the random walk, traditional linear models and the uncorrected LSTM are significantly dominated by it. Although implementing early stopping substantially improves LSTM performance, it does not yield a competitive advantage over simpler tree-based ensembles. These findings align with the well-documented random-walk puzzle in global inflation forecasting, suggesting that structural breaks, high volatility, and modest sample sizes pose substantial challenges for highly parameterized forecasting architectures. Consequently, these results suggest that regional central banks and finance ministries should maintain simple persistence models as active baselines when evaluating investments in complex forecasting infrastructure. These conclusions are robust to a battery of additional checks: HAC-Newey–West/Harvey–Leybourne–Newbold-corrected and Holm–Bonferroni-adjusted Diebold–Mariano tests, a strictly lagged-only predictor respecification, expanding-window recursive re-estimation, per-country and subperiod decomposition, LSTM input-sequence-length sensitivity analysis, a pooled AR(1) benchmark, a five-seed LSTM replication, and a country-clustered block-bootstrap Diebold–Mariano test.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Forecasting South Africa’s Consumer Price Index Using Seasonal ARIMA, LSTM, Support Vector Regression, and Gradient Boosting ModelsInternational Journal of Financial Studies · 2026
- Forecasting non-performing loan ratios: an explainable machine learning approach using multi-country banking dataFrontiers in Artificial Intelligence · 2026
- A Retrospective Forecast Audit of Recorded LSTM and ARIMA Inflation Projection Paths for Vietnam, October 2024 to September 2025Computation · 2026
- Semiparametric Panel Generalized Additive Models for Separate Forecasting of GDP Growth and Inflation in African EconomiesForecasting · 2026
- Research on Algorithm Improvement of ARIMA-LSTM Hybrid Model in Time Series Prediction of Inflation RateInternational Scientific Technical and Economic Research · 2026
- Financial Resilience Under a Major Gold-Price Regime Shift: A Benchmark-Based Assessment of Machine Learning, Deep Learning, and Econometric ModelsMathematics · 2026