Year
2018, re-run 2026
Context
Personal project
Role
Sole author
Status
Completed

Overview

A credit risk scorecard built on Lending Club’s 2015 loan book, using the Weight of Evidence and Information Value method that consumer lenders rely on. The pipeline engineers the features, trains a regularized model, corrects for selection bias with reject inference, and maps the result to a credit score.

The 2018 R version reported an AUC of 0.88. In 2026 I rebuilt the pipeline in Python with an explicit application-time feature list, an out-of-time test and a monotone LightGBM challenger, and the honest number on the same loans is 0.67 for the scorecard and 0.70 for the challenger. The full walkthrough, with the figures and what changed, is Building a Credit Risk Scorecard. Both versions are in the repository.

Pipeline

1. Data preparation. Keeps loans with a final status, labels each one Good or Bad, and ranks features by Information Value.

2. Feature engineering. Converts every raw feature to Weight of Evidence values, computed in parallel, so all features sit on the same predictive scale.

3. Model training. Elastic net logistic regression with glmnet, tuned by 3-fold cross-validation on ROC AUC. The L1 penalty drops uninformative features on its own.

4. Reject inference. Scores the rejected applicants, who have no observed outcome, to correct the bias of a model that only ever sees approved loans.

5. Scorecard scaling. Maps predicted probabilities to a score from 100 to 1000 with a linear transform of the log-odds. A higher score means lower risk.

Tech Stack