October 09, 2026
Different methods for credit risk analysis
Different Methods for Credit Risk Analysis
Luiz Guilherme Duarte Abad; Felipe Pinto
DOI: 10.22167/2675-6528-202603206
Article derived from a Course Conclusion Work (TCC), with content based on the student’s original work and adapted to the editorial format of the E&S Magazine with the support of the ResumeAI tool, an artificial intelligence solution developed by Instituto Pecege for textual synthesis and organization.
Summary
The growing complexity of the modern financial market has intensified the availability of data for credit granting decision-making, although the predominant predictive techniques for good and bad payers had not evolved significantly. The study’s objective was to explore and evaluate the performance of different credit risk analysis techniques, in order to verify if more recent methods could be more effective than traditional ones. For this purpose, logistic regression, Random Forest, Extreme Gradient Boosting, neural network, and a heterogeneous ensemble were analyzed. Performance was evaluated using the Area Under the Curve (AUC), Brier Score, and Partial Gini Index metrics. The modeling used a database of American loans, covering the period from 2015 to 2018. The results indicated that logistic regression showed inferior performance in all metrics, compared to the other models. The ensemble achieved the best metrics, however, with a marginal gain over Extreme Gradient Boosting. It was concluded that new approaches, such as the ensemble and Extreme Gradient Boosting, offer greater predictive capacity for credit risk analysis than logistic regression.
Keywords: benchmarking; ensemble; random forest; neural network; logistic regression.
1. Introduction
Credit granting is a fundamental pillar of the contemporary economy, acting as an engine for innovation and entrepreneurship, in addition to being crucial for economic stability, as highlighted by Galeano (2000) and Armenau (2015). In Brazil, credit plays a significant role in economic development and has shown continuous expansion. Even in the face of one of the highest global real interest rates, according to Moneyou (2026), nominal credit grants in July 2025 totaled R$ 644 billion. In the twelve months accumulated until that date, new loans rose by 12.3%, and the expanded credit balance reached R$ 19.5 trillion, exceeding 150% of Brazil’s Gross Domestic Product, according to data from the Central Bank of Brazil (2025).
With the growing complexity of the financial market and the expansion of the global economy, the demand for new credit lines increases exponentially. The volume of requests makes it unfeasible for financial institutions to individually assess each application and its risks. In Brazil, for example, between May 12 and 25, 2025, more than eight million requests for payroll loans were registered for workers, equivalent to about eight requests per second, according to data from Agência Brasil (2025). This reality imposes the need to develop effective and agile methods to classify potential clients, leveraging the vast amount of available data.
The field of credit scoring has its roots in pioneering works such as Durand (1941), who analyzed how various factors can influence financing risk and introduced a quantitative approach. Subsequently, Altman (1968) proposed the Z-score as a way to predict the probability of business failure. The comparison between the linear discrimination model and logistic regression, carried out by Wiginton (1980), established logistic regression as the most popular and widely used method in credit granting to this day, as observed by Lessmann (2015) and Dastile (2020).
Computational advances in recent decades, along with the increased availability of customer information, have made new credit risk analysis methods feasible. Cortes (1995) introduced Support-Vector-Networks (SVMs), while West (2000) demonstrated the efficiency of neural networks in credit scoring. Breiman (2001) presented Random Forests. These methods, including SVMs, neural networks, and Random Forests, along with logistic regression, form the basis upon which most new algorithms are developed and compared.
Despite significant progress in the academic field of credit scoring, the predominant techniques in the business environment for credit assessment and granting remain largely the same as in the last century. Logistic Regression is still the most used method, while more modern and often more effective approaches are neglected. This inertia is due to factors such as greater complexity, lower interpretability, and resistance to change. Given this practical gap, this study is justified by the need to investigate and compare the performance of different credit risk prediction methods.
Thus, this work seeks to build and compare different credit risk prediction methods, in order to verify if there are models with a superior capacity to separate good and bad payers compared to logistic regression.
2. Material and Methods
The research was characterized as a study of an exploratory nature and quantitative approach, aiming to build and compare the performance of different credit risk prediction methods. The central objective was to verify the existence of models with superior capacity to separate good and bad payers compared to logistic regression, as outlined in the introduction.
The unit of analysis consisted of individual loans. The data were obtained from the Kaggle data science and machine learning competitions platform, referring to the peer-to-peer lending company Lending Club, based in the United States. The original database contained more than one million entries, covering the period from 2007 to 2020.
Initially, an exploratory data analysis (EDA) was performed to familiarize with the structure and identify potential variables, following Morgenthaler’s (2009) approach. The target variable, named “bad” in the context of credit scoring (Oxford, 2010), was defined as binary, where 1 represented a customer with any payment delay exceeding 120 days, being considered in default.
To optimize computational processing, filters were applied to the database. Variables with more than 30% of empty entries were removed, as well as those that presented a single value in all rows. Subsequently, all entries containing any null variable were excluded, resulting in a final database with 1,363,544 entries and 61 columns of independent variables. These variables represented different aspects of the client’s financial behavior.
The database was divided into three samples: training, testing, and out-of-time (OOT). The temporal cutoff selected for training and testing covered the years 2015 to 2017, while the OOT sample corresponded to the year 2018, used for validation. The OOT sample represented 25% of the total database, and the remaining 75% were divided equally between training and testing. The training sample contained 63,161 entries, the testing sample 21,054, and the validation sample 14,749.
Five credit risk prediction models were built and compared: Logistic Regression, Random Forest, Multilayer Perceptron Neural Network (MLP), Extreme Gradient Boosting (XGBoost), and a Heterogeneous Ensemble. Each model was developed with specific variable selection and hyperparameter tuning procedures.
For Logistic Regression, the Fowards Selection (FS) method was used for variable selection. This method starts with a single variable and iteratively adds new variables, keeping them if the model’s performance, evaluated by the Area Under the Curve (AUC), improved above a predefined point. 16 out of the initial 60 variables were selected. The hyperparameters were defined via GridSearch, including Warm Start, Class Weight (Balanced), and the Inverse of regularization strength parameter (C of 0.01), according to Dastile (2020).
The selection of variables for the Random Forest employed the Permutation Importance technique, which assesses the importance of each variable by the model’s performance loss when its values are randomly modified (Speiser et al., 2019). Variables with relative importance below a cutoff point were removed, resulting in 26 variables. The hyperparameters were tested at different levels to avoid overfitting, defining the minimum node split size (10), sample size (50%), and minimum leaf node size (10), with 200 estimators, according to Breiman (2001).
The variable selection process for Extreme Gradient Boosting (XGBoost) was the same as applied in Random Forest, resulting in 24 variables. The hyperparameters were selected via GridSearch, including Maximum Depth (3), Min Child Weight (4), and Gamma (7), as per Friedman (2001) and Zedda (2024).
For the Multilayer Perceptron Neural Network (MLP), variables were first normalized. Variable selection used an XGBoost model and Permutation Importance, resulting in 24 variables. The selected activation function was ReLU, and the solver was ADAM. The remaining parameters were selected by iteration, defining 91 nodes for the hidden layer size and an Alpha value of 0.0005 for regularization, based on Rosenblatt (1958).
Finally, a heterogeneous ensemble was built. Unlike the other methods, variable selection was not applied, as the five input variables were the probabilities generated by the other models. A neural network was used as a model to aggregate the results of the base models, after normalizing their outputs. The hyperparameters selected for the final model were an Alpha value of 0.001 and a hidden layer size of two nodes. This method was based on the Static Parallel (SP) approach presented by Finlay (2010).
The models’ performance was evaluated by three metrics, as recommended by Lessmann (2015): Area Under the Curve (AUC), Brier Score (BS) (Brier, 1950), and Partial Gini Index (PG) (Pundir, 2012). The AUC measures the degree of separability of the classes of the target variable, being calculated from the receiver operating characteristic (ROC) curve. The Brier Score evaluates the accuracy of probability predictions. The Partial Gini Index evaluates the partial discrimination of the target variable in a subset of the database, focusing on critical decision points.
3. Results and Discussion
The analysis of the research results allowed for a comparative evaluation of the performance of different credit risk prediction techniques, as proposed by the study’s objective. Models based on logistic regression, random forest, Extreme Gradient Boosting, neural network, and a heterogeneous ensemble were built and evaluated. The database used, from American loans between 2015 and 2018, underwent a rigorous process of data treatment and variable selection to optimize model performance and reduce computational costs. The metrics Area Under the Curve (AUC), Brier Score (BS), and Partial Gini Index (PG) were employed to quantify the predictive capacity of each approach, providing a comprehensive view of the effectiveness in separating good and bad payers.
Initially, the database, which originally contained 1,860,311 entries and 146 columns, was reduced to 1,363,544 entries and 61 independent variables after removing variables with more than 30% null values and entries with any null value. The target variable, defined as nonpayment in payments exceeding 120 days, was established as binary. For validation, the database was divided into training (2015-2017), test (2015-2017), and out-of-time (OOT) (2018) samples, with the OOT representing 25% of the total and the remaining 75% divided equally between training and test. The default rate was 19.78% for training and test, and 22.06% for the OOT sample.
Logistic Regression
For the logistic regression model, variable selection was performed using the Forwards Selection (FS) technique. This method, which starts with a single variable and iteratively adds new variables, was employed to identify those that improved the model’s performance, measured by AUC, by a predefined percentage. At the end of the process, 16 out of the initial 60 variables were selected, without significant loss of performance. The hyperparameters optimized through GridSearch included Warm Start as False, Class Weight as Balanced, and the Inverse of regularization strength (C) parameter set at 0.01, aiming to enhance the model’s predictive capability and interpretability, as indicated by the literature for logistic regression (Dastile, 2020).
Random forest
In the case of random forest, variable selection was conducted by the Permutation Importance technique. This method assesses the importance of each variable by quantifying the loss of model performance when the variable’s values are randomly altered. Variables that, when altered, cause a large performance loss are considered of high importance. After applying this technique, the number of variables was reduced from 60 to 26, maintaining model performance. Hyperparameter selection was crucial to mitigate overfitting, and the defined values were: minimum node split size at 10, sample size at 50%, and minimum leaf node size at 10, with the use of 200 estimators, in line with the recommendations of Breiman (2001) and Speiser (2019) for optimization and interpretability.
Extreme Gradient Boosting
The Extreme Gradient Boosting (XGBoost) model employed the same variable selection process as the random forest, resulting in a final set of 24 variables. Hyperparameter optimization was performed using GridSearch, setting the maximum tree depth to 3, the Gamma value to 7, and the Min Child Weight to 4. These parameters are crucial for controlling model complexity and preventing overfitting, ensuring the algorithm efficiently minimizes the loss function. The choice of these hyperparameters aims to balance predictive capability with model robustness, a fundamental aspect for its application in credit risk scenarios, as highlighted by Zedda (2024).
Neural Network
For the Multilayer Perceptron (MLP) neural network, the process began with the normalization of variables, a fundamental step for the proper functioning of neural networks. The selection of relevant variables was performed using an XGBoost model in conjunction with the Permutation Importance technique, resulting in 24 variables. The configuration of hyperparameters, which profoundly impact performance, was partially based on the suitability for the case studied and partially selected through performance comparison in multiple iterations. The chosen activation function was ReLU, due to its high computational performance, and the solver was ADAM, suitable for large-volume datasets. The remaining parameters, such as the hidden layer size with 91 nodes and the Alpha value at 0.0005, were adjusted by iteration to avoid overfitting.
Heterogeneous Ensemble
The heterogeneous ensemble was built without a variable selection step, as its inputs consist of the probabilities generated by the other four individual models. This method uses a neural network as the final model to aggregate the results. After normalizing the input probabilities, the neural network’s hyperparameters were selected, with an Alpha value of 0.001 and a hidden layer size of 2 nodes. The ensemble approach, by combining different models, seeks to capture a wider range of patterns in the data, potentially improving overall predictive capability, although it may increase complexity and decrease interpretability, as discussed by Wang (2011) and Finlay (2010).
Relevant variables
After base treatment, a set of 61 independent variables was established. During model construction, 42 of these variables were selected in at least one model, and two were present in all developed models. These variables provide crucial financial information about the client, covering aspects such as past defaults, recent account activity, and credit inquiries. Examples include “delinq_2yrs”, which indicates the number of 30-day past due defaults in the last two years, and “mths_since_recent_inq”, which represents the months since the most recent credit inquiry. Other important variables are “annual_inc” (annual income), “bc_util” (revolving credit utilization rate), and “total_acc” (total number of credit accounts in the client’s history).
The selected variables generally indicate that customers with higher income, lower default history, and fewer active loans tend to exhibit a lower probability of default. For example, “acc_now_delinq” (number of delinquent accounts), “num_accts_ever_120_pd” (number of accounts past due by 120 days or more), and “pct_tl_nvr_dlq” (percentage of accounts that have never defaulted) are direct indicators of payment behavior. Variables such as “mo_sin_old_il_acc” (months since the oldest installment account was opened) and “mo_sin_rcnt_tl” (months since the most recent account was opened) provide context on the longevity and activity of the customer’s credit relationship. The presence of these variables in multiple models reinforces their predictive relevance for credit risk analysis.
Final results
The evaluation of the models was performed using the AUC, Brier Score, and Partial Gini Index metrics, with the results compared between the training, testing, and out-of-time (OOT) samples, as well as on the complete dataset. Logistic Regression consistently demonstrated the weakest performance across all metrics and samples. For instance, the AUC of Logistic Regression on the complete dataset was 0.592, significantly lower than the other models, which presented values above 0.640. This finding corroborates the literature that points to the superiority of more advanced methods over Logistic Regression for complex classification problems (Lessmann, 2015).
Regarding the AUC metric, the Ensemble model achieved the best result on the complete dataset, with a value of 0.662. Extreme Gradient Boosting and the neural network presented similar values, with XGBoost registering 0.655 and the neural network 0.654 on the complete dataset. The random forest, although slightly inferior in overall AUC (0.644), stood out for its greater stability among samples, presenting the best result in OOT along with the Ensemble and the smallest AUC variation range. This stability is a valuable attribute in credit granting environments, where model consistency across different periods is crucial.
The analysis of the Brier Score (BS), which measures the accuracy of predictions, revealed that Extreme Gradient Boosting and the Ensemble were tied in most samples, with the exception of the OOT sample, where the Ensemble obtained a marginally better result (0.165 versus 0.166 for XGBoost). The MLP model also presented very close results, with a maximum difference of 0.001 compared to the two best methods. The random forest, despite slightly worse results in BS, maintained greater stability, with a maximum difference of 0.001 between samples, in contrast to the 0.016 difference observed in the best-performing models, indicating its robustness.
The Partial Gini Index (PG), which assesses the model’s discrimination capability in subsets of the base, especially in the lower tail of the ROC curve, also pointed to the Ensemble as the best performer in all samples, with values of 0.043 in training, 0.042 in testing, and 0.041 in OOT. Extreme Gradient Boosting, the neural network, and the random forest presented quite similar results in this metric. A drop to 0.037 was noted for MLP in the OOT sample, while XGBoost in training was comparable to the Ensemble with 0.043. The use of PG, according to Pundir (2012), offers additional information about performance at critical decision points.
In an overview, a clear distinction was observed between the performance of logistic regression and the other models, with logistic regression presenting the worst results in all evaluated metrics. The other models, in turn, exhibited much more similar performances, with maximum differences of 3.5% in AUC, 20% in Brier Score, and 9.4% in Partial Gini. The random forest stood out for its stability across different samples, a factor of great importance in credit granting scenarios. Extreme Gradient Boosting also demonstrated good results, being surpassed only by the Ensemble, and with a reduced computational cost compared to the MLP model. These findings are in line with studies such as Brown (2012), which point to the effectiveness of random forests and boosting.
Although the Ensemble model presented the best metrics in all categories, as observed by Finlay (2010), it is important to note that the performance difference in many cases was marginal. The performance gain of the Ensemble compared to Extreme Gradient Boosting was small, especially considering the increased complexity and computational cost associated with combining multiple models. The Ensemble, by indirectly using the 42 variables present in the base models, also implies a greater computational effort, as it requires the prior calculation of all individual model results before aggregation. Therefore, the choice of a model should consider not only raw performance but also interpretability, complexity, and computational cost, aspects in which XGBoost proved to be a robust and more efficient alternative.
4. Conclusion
The study sought to explore and evaluate the performance of different credit risk analysis techniques, with the aim of verifying the effectiveness of more recent methods compared to traditional approaches. It was found that logistic regression showed consistently inferior performance across all evaluated metrics (Area Under the Curve, Brier Score, and Partial Gini Index), in contrast to models such as Random Forest, Extreme Gradient Boosting, neural network, and a heterogeneous ensemble. The findings indicated that the ensemble achieved the best overall metrics, with an AUC of 0.662 on the full dataset, while Extreme Gradient Boosting and the neural network demonstrated very similar performances. The Random Forest, in turn, stood out for its greater performance stability across training, testing, and out-of-time samples. The study’s main contribution lies in the empirical demonstration that modern machine learning approaches offer superior predictive capability for separating good and bad payers, significantly outperforming logistic regression, which is still widely used in the market.
Despite the ensemble’s predictive superiority, it was observed that its performance gain over Extreme Gradient Boosting was marginal, especially when weighted by the increased complexity and computational cost associated with combining multiple models. The ensemble, by indirectly integrating 42 variables and requiring the prior calculation of all individual models, imposes a considerable computational effort. Thus, the choice of a model for practical application must consider not only raw performance but also interpretability, complexity, and computational efficiency. In this context, Extreme Gradient Boosting emerged as a robust and more efficient alternative, offering comparable performance with a simpler construction. It is recommended that financial institutions consider adopting models such as Extreme Gradient Boosting and Random Forest in credit risk modeling, given the possibility of significant gains in predictive capacity and the maintenance of good interpretability of the variables.
Bibliographic References
Agência Brasil 2025, Mais de 10 milhões simulam consignado para CLT até início da tarde, Disponível em: <https://agenciabrasil.ebc.com.br/economia/noticia/2025-03/mais-de-10-milhoes-simulam-consignado-para-clt-ate-inicio-da-tarde> . Acesso em 21 mar 2026
Altman, E. 1968. Financial ratios, discriminant analysis and the prediction of corporate bankruptcy. The Journal of Finance, 23: 589–609.
Armenau, D, P. C,P. D, D. C. 2015. The credit impact on the economic growth. Theoretical and Applied Economics, 22: 5-14.
Banco central do Brasil [BC] 2025, Estatísticas Monetárias e de Crédito Disponível em: <https://www.bcb.gov.br/content/estatisticas/hist_estatisticasmonetariascredito/202508_Texto_de_estatisticas_monetarias_e_de_credito.pdf>. Acesso em: 10 set. 2025
Breiman, L. 2001. Random Forests. Kluwer Academic Publishers, 45: 5-32.
Brier, W. 1950. Verification of forecasts expressed in terms of probability. Monthly Weather Review, 78.
Brown I., M. C. 2012. An experimental comparison of classification algorithms for imbalanced credit scoring data sets. Expert Systems with Applications 39: 3346-3453
Cortes, C., & Vapnik, V. 1995. Support-vector networks. Kluwer Academic Publishers, 20(1): 273-297.
Dastile, X., Celik, T., & Potsane, M. 2020. Statistical and machine learning models in credit scoring: A systematic literature survey. Applied Soft Computing Journal, 91.
Durand, D. 1941. Risk Elements in Consumer Installment Financing. New York: NBER.
Finlay, 2010 [Referência completa não encontrada no documento original]
Friedman, J. 2001. Greedy function approximation: A gradient boosting machine. The Annals of Statistics, 29(5): 1189–1232.
Galeano E., Feijó C. Credit and Economic Growth: Evidence from a Panel of Regional Data from the Brazilian Economy in the 2000. Technical Scientific Documentes 43 201-219
Lessmann, S., et al. 2015. Benchmarking state-of-the-art classification algorithms for credit scoring: An update of research. European Journal of Operational Research, 247: 124-135.
Moneyou 2026, Ranking Mundial de Juros Reais Disponível em: <https://moneyou.com.br/wp-content/uploads/2026/01/rankingdejurosreais280126.pdf> .Acesso em 02 fev 2026.
Morgenthaler, S. 2009. Exploratory data analysis. Wire Computational Stats, 1: 33–44.
Oxford University Press, 2010. A Dictionary of Accounting 4 ed. Disponível em: <https://www.oxfordreference.com/display/10.1093/acref/9780199563050.001.0001/acref-9780199563050-e-347> Acesso em 2 fev 2026
Pundir, S., & Rana, S. 2012. A novel concept of partial Lorenz curve and partial Gini index. International Journal of Engineering Science and Innovative Technology, 1: 296–301.
Rosenblatt, F. 1958. The perceptron: A probabilistic model for information storage and organization in the brain. Psychological Review, 65(6): 386–408.
Speiser J. L., M. M., T. J., I. E. 2019. A comparison of random forest variable selection methods for classification prediction modeling. Expert Systems With Applications 134: 93-101
Wang, G., Hao, J., Ma, J., & Huarng, K. H. 2011. A comparative assessment of ensemble learning for credit scoring. Expert Systems with Applications, 38(1).
West, D. 2000. Neural network credit scoring models. Computers & Operations Research, 27(1).
Wiginton, J. 1980. A note on the comparison of logit and discriminant models of consumer credit behavior. Journal of Financial and Quantitative Analysis, 15(3).
Zedda, S. 2024. Credit scoring: Does XGBoost outperform logistic regression? A test on Italian SMEs. Research in International Business and Finance, 70.
Article originating from the Final Course Project of the Specialization in Data Science and Analytics of the MBA USP/Esalq
To learn more about the course, click here and access the MBX Academy platform