Inflation is never merely a statistic. It is the visible surface of a complex, historically contingent phenomenon shaped by supply chains, monetary institutions, exchange-rate regimes, and the psychology of expectations. This paper asks whether machine learning (ML) algorithms— Random Forest, XGBoost, LASSO-regularised VAR, and Long Short-Term Memory networks—can replace or substantively outperform traditional Vector Autoregressive (VAR) frameworks for inflation analysis in Morocco, a small open economy whose price dynamics are most conditioned by import dependence, a managed exchange-rate peg, and thin financial markets. Drawing on quarterly Moroccan macroeconomic data (1990–2024) and a rolling out-of-sample evaluation framework, we document a regime-contingent pattern: ML models achieve statistically significant forecast improvements during structurally turbulent periods— most acutely during the 2022–2023 commodity price shock—while VAR retains decisive advantages in structural identification, causal inference, and the counterfactual policy exercises that central banks require. We conclude that ML complements but cannot replace VAR in the Moroccan monetary policy toolkit, and we sketch a hybrid forecasting architecture appropriate for Bank Al-Maghrib’s ongoing inflation-targeting transition.
Résumé de la recherche
Can Machine Learning Replace VAR? A Critical Evaluation in the Moroccan Inflation Context
Résumé:
Références
Télécharger l'article complet :
Licence
(c) Copyright Raby GUEBAZ، Mariam BELAMAR (المؤلف) 2026

Ce travail est disponible sous licence Creative Commons Attribution - Pas d’Utilisation Commerciale 4.0 International.
Copyright & Intellectual Property Statement:
Authors retain full copyright and intellectual property rights for their articles published in the "Moroccan Journal for Publishing Scientific Research (RMPRS)", granting the journal the right of first publication. All articles are published under the Creative Commons Attribution-NonCommercial 4.0 International License (CC BY-NC 4.0).
Third parties are permitted to read, copy, distribute, reuse, and adapt the published material for non-commercial purposes, provided that full credit is given to the author and the journal as the original source of publication. Any commercial use of the content is strictly prohibited without prior written permission from the journal's editorial management.