Logo Lanfrica
  • Home
  • Atlas
  • Insights
  • Docs
  • Sign in

© 2026 Lanfrica. All rights reserved. All copyrights of the resources shown on the Lanfrica website belong to the original copyright holders, unless explicitly stated otherwise.

Enhancing Vector Autoregression with Machine Learning Techniques for Causal Analysis of Macroeconomic Indicators in African Economies

Domain:

socioeconomic

Record type:

paper
Creator:
OkaObiOdu
Editor:
Dep
Publisher:
CCSD
Host:avatar
International audience Africa exhibits a wide variation in macroeconomic performance reflecting differences in economic diversification, natural resource dependence, governance systems, political stability, and exposure to global economic cycles. This study investigates the dynamic interactions among key macroeconomic variables, annual inflation rate, exchange rate, foreign direct investment (FDI), and government final expenditure, across eight African economies: Nigeria, South Africa, Egypt, Angola, Morocco, Ethiopia, Tanzania, and Mozambique. Using annual data spanning 1990 to 2024 obtained from the World Development Indicators (WDI), the study employs Vector Autoregression (VAR) models and extends them by integrating machine learning architectures, specifically Random Forest (RF), Multilayer Perceptron (MLP), and XGBoost, to develop VAR–machine learning hybrid forecasting models. The comparative performance of the baseline VAR and hybrid models is evaluated using Mean Absolute Error (MAE) and Root Mean Square Error (RMSE). The findings show substantial forecasting accuracy improvements when machine learning components are incorporated into the VAR framework. For inflation, the VAR+MLP model achieves the most significant reduction in forecasting errors in Nigeria, South Africa, and Morocco, with South Africa’s MAE decreasing from 1.471 (VAR) to 0.888 under the hybrid model. Similarly, FDI predictions improve markedly across nearly all countries, with Tanzania exhibiting a major decline in MAE from 0.534 (VAR) to 0.184 (VAR+XGBoost). For government expenditure, hybrid models outperform VAR in Angola, South Africa, Morocco, and Cameroon, while exchange rate dynamics show mixed outcomes, with traditional VAR excelling in more stable economies such as Nigeria and Morocco. The results demonstrate that hybrid VAR–machine learning models more effectively capture nonlinear macroeconomic relationships and yield superior predictive performance for inflation and FDI, underscoring their relevance for economic planning and policy formulation in African economies.

Visit

hal.science

Tags

[MATH]Mathematics [math]

Similar

Impact of tourism development on inclusive growth: A panel vector autoregression analysis for African economiesMacroeconomic and Financial Shocks in African Franc Zone: Exploring the nexus with Vector AutoregressionAn Empirical Analysis of Macroeconomic Variability on the Ghanaian Stock Market: A Vector Autoregression ApproachMachine Learning and Macroeconomic Indicators for Predicting Consumer Goods Stock Prices in NigeriaEvaluating Recycling Initiatives for Landfill Diversion in Developing Economies Using Integrated Machine Learning TechniquesMacroeconomic Effects of Fiscal Policy Shocks in Nigeria: A New Proof from Mixed-Frequency Vector Autoregression Approach

Impact of tourism development on inclusive growth: A panel vector autoregression analysis for African economies

The persistent debate among policy makers and academics around combating the high rates of poverty a

Macroeconomic and Financial Shocks in African Franc Zone: Exploring the nexus with Vector Autoregression

This paper analyzes the impulse response functions due to macroeconomic and financial shocks in the

An Empirical Analysis of Macroeconomic Variability on the Ghanaian Stock Market: A Vector Autoregression Approach

This study investigates the dynamic interrelationships among stock prices and selected macroeconomic

Machine Learning and Macroeconomic Indicators for Predicting Consumer Goods Stock Prices in Nigeria

Nigeria’s fast-moving consumer goods (FMCG) sector is Africa’s most dynamic market; however, stock p

Evaluating Recycling Initiatives for Landfill Diversion in Developing Economies Using Integrated Machine Learning Techniques

This study investigates the effectiveness of the Lagos Recycle Initiative (LRI) on landfill diversio

Macroeconomic Effects of Fiscal Policy Shocks in Nigeria: A New Proof from Mixed-Frequency Vector Autoregression Approach

The empirical investigation of the macroeconomic consequences of fiscal or monetary policy changes h