Keywords:-

Keywords: Public Debt, ARIMAX, XGBoost, Macroeconomic Indicators, Scenario Simulation, Kenya

Article Content:-

Abstract

In recent years, public debt in Kenya has been increasing rapidly, raising concerns about its sustainability and economic implications. As of July 2024, the public debt was roughly 10.6 trillion Ksh, reflecting a 2.9 percent increase from June 2023 when it stood at 10.3 trillion Ksh (Statista, 2024). This trend highlights the urgent need for accurate forecasting to ensure effective debt management and economic stability. This study aims to forecast Kenya’s public debt by comparing a statistical model (ARIMAX) and a machine learning model (XGBoost). Macroeconomic indicators i.e. GDP, inflation, exchange rate and interest rate, are incorporated to analyze their impact on debt trends and evaluate the predictive performance of both ARIMAX and XGBoost. Additionally, scenario simulation is employed to assess how varying economic conditions affect public debt trajectories. The decision to compare ARIMAX and XGBoost is based on their distinct strengths and modeling assumptions. ARIMAX is effective in capturing linear relationships and temporal dependencies, while XGBoost is capable of detecting complex non-linear interactions and hidden patterns in the data. By comparing these two methods, the study aims to evaluate their respective forecasting performance, understand the influence of macroeconomic indicators on public debt, and determine which approach provides more accurate and policy-relevant predictions under various economic scenarios. The study utilizes historical data from 2001 to 2023, obtained from the Central Bank of Kenya (CBK) and Kenya National Bureau of Statistics (KNBS). By integrating statistical modeling, machine learning, and scenario simulation, this research aims to provide a comprehensive forecasting framework to support policymakers in making informed decisions for sustainable debt management.

References:-

References

Makau J, Ocharo K, and Njuru S (2018). Fiscal Policy and Public Debt in Kenya. IOSR Journal of Economics and Finance, 9(5): 12 − 15

Barro R J (1979). On the Determination of the Public Debt. Journal of Political Economy, 87 (5, Part 1): 940-971 https://doi.org/10.1086/260807Brown, L. D., Hua, H., and Gao, C. 2003. A widget framework for augmented interaction in SCAPE.

World Bank, 2021; IMF, 2022 https://worldbank.org/en/topic/debt

https://kippra.or.ke/exchange-rate-dynamics-and-its-implications-on-debt-and-trade-flows/

https://kippra.or.ke/composition-of-domestic-debt-in-kenya-and-implication-on-refinancing-risk/

Dowoge Frankline Keraro, Zakay NiMans, Dominic M, and Martice Klanyonyi (2024) Forecasting Kenya’s Public Debt using Time Series Analysis. International Journal of Advanced and Applied Sciences https://www.escience-gate.com— IJAAS.html

R. Odegua (2020) Providing Bank Loan Default with XGBoost https:/www.researchgate.net/publication/339088951

Zhuravka, F., Pavlenko, Y., Kravchuk, I. (2019). Modeling Ukraine’s Government Debt Dynamics using ARIMA Models. Financial and Credit Activity: Problems of Theory and Practice, 4(31), 229–239.

Mutuku, C. M., Koech, E. (2021). Forecasting Kenya’s Public Debt using ARIMA and VAR Models. Journal of African Macroeconomic Research, 9(2), 58–75.

Mbiti, A., Njoroge, M. (2020). The Impact of Macroeconomic Variables on Public Debt Dynamics in Kenya. International Journal of Economics and Finance, 12(4), 112–121.

Doshi-Velez, F., Kim, B. (2017). Toward a Rigorous Science of Interpretable Machine Learning. arXiv preprint arXiv:1702.08608.

Daniel, T. (2018). Forecasting U.S. Treasury Interest Rates using Machine Learning techniques: XGBoost and LSTM models. Journal of Financial Modeling and Analytics, 4(2), 44–57.

Uhunmwangho, O. P. (2024). Comparing XGBoost and LSTM Models for Prediction of Microsoft Corp's Stock Price Direction. Mountain Top University Journal of Applied Science and Technology (MUJAST), 4(2), 64–88.

Wambugu, M. W. (2022). Forecasting Inflation in Kenya Using ARIMAX Models. Kenya Journal of Economic Modeling and Policy, 3(1), 33–45.

Njenga, J. K. (2024). Domestic Credit Growth Analysis Using ARIMA Technique: A Case Study of Kenya. Journal of Economics, Management and Trade, 30(5), 12–21.

Badrawani, A. (2025). Forecasting Inflation Using XGBoost and SARIMA: A Case Study From Indonesia. Journal of Applied Economics and Finance, 12(1), 33–45.

Kashif, M., Slepaczuk, R. (2024). LSTM-ARIMA Hybrid Models for Algorithmic Trading ´ Strategy Enhancement: Empirical Evidence from Financial Markets. Expert Systems with Applications, 236, 121248. Shi, Y., Liu, Y., Zhou, Y. (2022). CNN-LSTM-XGBoost Model for Time Series Forecasting in Financial Markets: An Attention-Based Approach. Applied Soft Computing, 116, 108334.

Cheruiyot, B. K., Onyango, R. O., Mogesi, M. B., Kisina, M. M. (2024). Forecasting Inflation in Kenya using ARIMA(2,2,2). African Scientific Annual Review, 1(1), 1–15.

Bent´ejac, C., Cs¨org˝o, A., Mart´ınez-Mu˜noz, G. (2019). A Comparative Analysis of XGBoost. arXiv.

Jiang, C., Ma, X., Chen, Y. (2020). Exchange Rate Volatility and Government Debt Sustainability in Developing Countries. Emerging Markets Finance and Trade, 56(12), 2852–2868.

Advanced Feature Engineering for Time Series Data https://medium.com/40rahulholla1/advancedfeature-engineering-for-time-series-data-5f00e3a8ad29

Verma P, Reddy SV, Ragha L, and Datta D (2021). Comparison of Time-series Forecasting Models. In the International Conference on Intelligent Technologies, IEEE, Hubli, India: 1- 7.

Makridakis, S., Spiliotis, E., Assimakopoulos, V. (2018). Statistical and Machine Learning Forecasting Methods: Concerns and Ways Forward. PLOS ONE, 13(3), e0194889. https://doi.org/10.1371/journal.pone.0194889

Hyndman, R. J., Athanasopoulos, G. (2018). Forecasting: Principles and Practice (2nd ed.). OTexts

Zhang, G. P., Eddy Patuwo, B., Hu, M. Y. (2019). Forecasting with Artificial Neural Networks: The State of the Art. International Journal of Forecasting, 14(1), 35–62.

Gujarati, D. N., Porter, D. C. (2009). Basic Econometrics (5th ed.). McGraw-Hill Education.

Reinhart, C. M., Rogoff, K. S. (2010). Growth in A Time of Debt. American Economic Review, 100(2), 573–578.

Jongwanich, J. (2009). The Impact of Exchange Rate Volatility on the Real Sector A Comparative Analysis between Developed and Developing Countries. Journal of International Development, 21(2), 165–186.

Zhou, L., Pan, W., Wang, S., Li, Y. (2021). Forecasting Government Gebt with Machine Learning Techniques: Evidence From Emerging Economies. Economic Modelling, 99, 105493.

Jiang, C., Ma, X., Chen, Y. (2020). Exchange Rate Volatility and Government Debt Sustainability in Developing Countries. Emerging Markets Finance and Trade, 56(12), 2852–2868. https://doi.org/10.1080/1540496X.2019.1700348

International Monetary Fund (IMF). (2023). *Fiscal Monitor: On the Path to Policy Normalization*. https://www.imf.org/en/Publications/FM

Box, G. E. P., Jenkins, G. M., Reinsel, G. C. (2015). Time Series Analysis: Forecasting and Control (5th ed.). Wiley.

Varian, H. R. (2014). Big data: New Tricks for Econometrics. *Journal of Economic Perspectives, 28*(2), 3–28. https://doi.org/10.1257/jep.28.2.3

Brockwell, P. J., Davis, R. A. (2016). * Introduction to Time Series and Forecasting* (3rd ed.). Springer.

Downloads

Citation Tools

How to Cite
Ndegwa, C., Karanja, A. K., & Kihara, P. (2025). Public Debt Forecasting in Kenya: Integrating Macroeconomic Variables with Arimax and Extreme Gradient Boosting. International Journal Of Mathematics And Computer Research, 13(8), 5548-5557. https://doi.org/10.47191/ijmcr/v13i8.07