Quantitative Finance · Machine Learning
Cost-sensitive machine learning models predicting loan default probabilities using origination features — comparing logistic regression, XGBoost, and neural networks under asymmetric misclassification costs.
3
Model Families
CS
Cost-Sensitive
AUC
Primary Metric
P2P
Lending Domain
In P2P lending, false negatives (approving a loan that defaults) are far costlier than false positives (rejecting a good borrower). Standard accuracy-maximising models ignore this asymmetry. Lenders need models that can be tuned to explicitly weight the cost of default misclassification.
The dataset uses Lending Club origination features: loan grade, DTI ratio, FICO score, income, employment length, and purpose. After exploratory analysis and feature engineering, three model families are trained and compared: L2-regularised logistic regression (interpretable baseline), gradient-boosted trees via XGBoost, and a shallow neural network in TensorFlow.
All models are evaluated using AUC-ROC, precision-recall curves, and expected cost at varying classification thresholds. Class weights and sample weighting are applied to embed asymmetric misclassification costs directly into training — giving lenders a cost-threshold curve they can tune to their risk appetite.
XGBoost outperforms logistic regression and the neural network on AUC while remaining interpretable via SHAP values. The cost-sensitive framework produces threshold-specific expected cost curves that translate directly into lending policy decisions. The full analysis — methodology, code, and results — is documented in the companion report.