Skip to content

reejungkim/Credit_model

Repository files navigation

Credit model

Gmail Badge Linkedin Badge Git page

Credit Risk = PD * EAD * LGD (Credit Risk = Probability of default * Exposure at default * Loss given default)

View code: Population Stability Index (PSI) calculation

  • Criteria: PSI < .25

View code: Kolmogorov-Smirnov (KS) calculation

  • Criteria: KS > 30%

View code: Information Value (IV) calculation

View code: Scorecard

Bankruptcy prediction

View code: bankruptcy prediction

  • feature reduction: recursive feature selection with cross validation (RFECV)
  • classifier models applied: random forest, gradientboost, xgboost, lightGBM
  • hyperparameter optimization: RandomSearchCV, GridSearch
  • metrics for model evaluation: confusion matrix, ROC-AUC, accuracy, precision, recall, f1-score, support
  • metrics for feature importance: feature importance, Shapley values, Morris sensitivity

ROC explanation

Binary claissifier evaluation metrics explanation:

(trade-off between Precision and Recall)

Model explainer

References

Releases

No releases published

Packages

No packages published