Skip to main content

Journal of Risk Model Validation

Risk.net

Monotonicity and heteroscedasticity in machine learning models: an application to credit risk

Rubén García-Céspedes, Manuel Moreno and Ignacio Segarra

  • We build a machine learning model with monotonic constraints using real-world financial data.
  • We show that standard models often violate monotonicity, leading to inconsistent behavior.
  • Our results reveal that non-monotonicity reduces the reliability of model predictions.
  • We test for heteroskedasticity and detect subpopulations with varying predictive accuracy.

In recent years, machine learning techniques have become increasingly popular due to their superior predictive performance compared with traditional methods such as logistic regression. However, machine learning models often face two main limitations: the marginal effects of explanatory variables can vary in sign across observations, and the results may be counterintuitive. These issues may challenge the interpretability of the model outcomes. In this paper we use a real-life credit risk data set to quantify these drawbacks and propose and implement several steps to solve them. We build two extreme gradient boosting (XGBoost) models and show that the monotonic XGBoost has similar accuracy to the nonmonotonic one and that it overcomes the two main drawbacks of the machine learning models. Finally, we show that, similarly to classical models, machine learning techniques may show heteroscedastic behavior. Using the real-life data set and the monotonic XGBoost, we identify the observations that can be predicted with higher or lower accuracy. We suggest that testing for the level of monotonicity and the heteroscedasticity of the machine learning models should be a key part of a robust model validation process, ensuring, for example, that the model performance metrics are similar over all the possible segments of the population.

Sorry, our subscription options are not loading right now

Please try again later. Get in touch with our customer services team if this issue persists.

New to Risk.net? View our subscription options

You need to sign in to use this feature. If you don’t have a Risk.net account, please register for a trial.

Sign in
You are currently on corporate access.

To use this feature you will need an individual account. If you have one already please sign in.

Sign in.

Alternatively you can request an individual account here