Exploring markov chain and random forest to predict loan default in rural banks

Joseph Kwabina Arhinful Johnson, Ellis Agyeman, Samuel Kwame Okai

Abstract


This study investigates loan default risks in rural banks in Ghana's by developing a hybrid predictive model that combines Markov chains and Random Forest machine learning. The Markov chain analysis examines the transition of loans between risk categories (Current, OLEM, Sub-standard, Doubtful, and Loss) based on Bank of Ghana (BoG) standards, revealing the dynamic nature of credit risk over time. The Random Forest model then classifies loans as default or non-default, identifying key features, with Markov chain transition probabilities serving as a crucial input. Using a dataset of 25,981 loan records from a rural bank, the study finds that a significant portion of borrowers operate in non-traditional sectors, with 14% of loans classified as Losses. The Markov analysis indicates stability in the Current and Loss states, while other risk categories exhibit notable transitions. The Random Forest classifier, utilizing features like Days in Arrears and Interest Charge Type, achieves 91% accuracy and strong F1 scores (0.94 for non-defaults and 0.86 for defaults). The model's Receiver Operating Characteristic and Area Under the Curve (ROC- AUC) score of 0.90 demonstrates its excellent ability to distinguish between defaulting and non-defaulting loans. The model identifies loan duration and arrears as primary predictors of default. Scenario simulations confirm that default risk increases as the loan ages and arrears accumulate. Overall, the hybrid model offers superior predictive accuracy and granular risk insights, enhancing credit risk management for rural banks and supporting financial inclusion in underserved communities.


Keywords


Markov chain, Random Forest, Loan Default

Full Text:

PDF

References


Abraham, H. R. (2023). Appraisal Discrimination: Five Lessons for Litigators. SMU L. Rev., 76, 205.

Agyapong, D. (2023). Implications of Monitoring and Evaluation Systems for Small and Medium-Sized Enterprises in Selected Metropolis in Ghana Implications of Monitoring and Evaluation Systems for Small and Medium-Sized Enterprises in Selected Metropolis in Ghana (Doctoral dissertation, University of Cape Coast).

Brown, K., & Moles, P. (2014). Credit risk management. K. Brown & P. Moles, Credit Risk Management, 16.

Ekpu, V., & Paloni, A. (2016). Business lending and bank profitability in the UK. Studies in Economics and Finance, 33(2), 302-319.

Golin, J., & Delhaise, P. (2013). The bank credit analysis handbook: a guide for analysts, bankers and investors. John Wiley & Sons.

Oseni, E. (2023). Assessment of the five cs of credit in the lending requirements of the Nigerian commercial banks. International Journal of Economics and Financial Issues, 13(4), 58.

Skiba, P. M., & Tobacman, J. (2008). Payday loans, uncertainty and discounting: Explaining patterns of borrowing, repayment, and default. Vanderbilt Law and Economics Research Paper, (08-33).

Vermoesen, V., Deloof, M., & Laveren, E. (2013). Long-term debt maturity and financing constraints of SMEs during the global financial crisis. Small Business Economics, 41(2), 433-448.




DOI: http://dx.doi.org/10.23755/rm.v56i0.1744

Refbacks

  • There are currently no refbacks.


Copyright (c) 2026 Joseph Kwabina Arhinful Johnson, Ellis Agyeman, Samuel Kwame Okai

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.

Ratio Mathematica - Journal of Mathematics, Statistics, and Applications. ISSN 1592-7415; e-ISSN 2282-8214.