Credit risk modeling
The Lending
Line
Does a model need six credit card statements to rank default risk, or is the latest one enough?
Both XGBoost models scored 0.9587 ROC AUC after rounding. At 10,800 simulated approvals each, logistic regression’s group had 171 observed defaults and XGBoost with history had 176. That difference was too small to tell which model made better approval decisions in this test.
See how we tested it
From monthly statements to one row per customer
We used anonymized monthly statements from existing American Express cardholders. AmEx used an 18-month window to label defaults and counted an amount still unpaid 120 days after the last statement as default. American Express data description
What we took from the statements
We started with the latest value of each field. We chose up to six recent statements so we could compare a single reading with a summary of recent levels and change. We also counted statements and how many different values each category field showed. If a customer had fewer than six statements, we used what was available.
B_1S1 is the oldest reading in the six-statement window. S6 is the latest. AmEx scaled the underlying values.- S1
- S2
- S3
- S4
- S5
- S6
Put these values in the customer’s row
- Latest reading
- S6
- Recent average
- Mean of available readings
- Change over the window
- S6 − S1
We ended up with 240 columns from the latest statement and 606 once we added the history summaries.
What we found in the data
The statements ran from March 2017 through March 2018. We found a label for every cardholder and no duplicate statements for the same person and date. AmEx kept only 5% of customers who did not default, so the rates here describe the released sample.
Observed defaults by statement count
Customers with shorter histories defaulted more often in this sample. The groups may differ in other ways that help explain the gap.
How we split the data
To keep repeated training runs manageable, we sampled 120,000 customers with 1,447,520 statements. We kept each customer’s records together and used separate groups for model settings, probability adjustments, and approval cutoffs. The final group tested those choices on different customers.
- 72,000
- Fit the models
- 12,000
- Choose model settings
- 9,000
- Calibrate risk scores
- 9,000
- Choose approval cutoffs
- 18,000
- Run the final test
How well did the models rank risk?
We used logistic regression as a straightforward baseline. We gave it, a neural network, and XGBoost the same history columns to see whether more complex models ranked risk better. We also trained XGBoost on the latest statement alone. Both XGBoost models used the same training customers and tried the same settings so we could see what the history added.
Risk ranking on the final test group
Imagine picking one customer who defaulted and one who didn’t. ROC AUC measures how often the model ranks the first customer as riskier.
We chose XGBoost for the simulation based on the validation group. On the final test, both XGBoost models scored 0.9587 when rounded to four decimal places.
What did the history add?
−0.00003We found no clear improvement when we added statement history.
The paired 95% interval for the AUC difference ran from −0.00068 to +0.00053.
Who was harder to rank?
For customers with one to six statements, both logistic regression and XGBoost with history scored about 0.904 AUC. For customers with all 13 statements, they scored 0.962 and 0.964, respectively. That gives us a reason to check short histories again with a later group. Differences between the groups may also contribute to the gap.
How close were the risk estimates?
We set aside 9,000 cardholders to adjust the estimated chances of default. We then checked those estimates on the final test with the Brier score. A lower score means the estimates were closer to what actually happened.
| Model | Before calibration | After calibration |
|---|
The neural network’s Brier score improved the most. The adjustment made little difference for either XGBoost model.
Choosing an approval cutoff
A customer qualified if their adjusted risk score was at or below the cutoff. Move the slider to see the share who qualified, the default rate among those customers, and the points the rule earned.
9,000 customers in the cutoff selection group
These are assumptions for the simulation. In this scenario, one default offsets five approvals without default. We also tested penalties of three and ten points to see how much the comparison depended on that choice.
Who would have qualified?
We tested logistic regression and XGBoost with history on the same 18,000 customers. We let each model approve 60% of them so we could compare who qualified at the same volume. We also checked what happened when each model used its chosen cutoff.
5 moreobserved defaults for the XGBoost history model at 10,800 simulated approvals per model
+22points for the XGBoost history model versus logistic regression at the selected cutoffs
XGBoost’s group had five more observed defaults at the same approval count. The paired 95% interval ran from 12 fewer to 26 more.
Qualified, no default Qualified, defaulted Did not qualify
We simulated the approvals and counted defaults from the records.
What if a default costs more?
We picked a new cutoff for each cost on the same 9,000 customers, keeping the 10% cap. Then we scored those rules on the final test.
| Cost per approved default | Logistic regression | XGBoost with history |
|---|---|---|
| 3 points | 10,282 | 10,365 |
| 5 points | 9,793 | 9,815 |
| 10 points | 8,958 | 8,790 |
Would our choices change the result?
We kept the same training and validation groups and ran these checks on 18,000 different test customers from the same data release.
How far back should we look?
We compared windows of up to three, six, and twelve statements with the latest statement alone.
The 12-statement model had the highest AUC on validation and on this second test. It improved on the latest statement by 0.00073 AUC, with a paired 95% interval of +0.00014 to +0.00139. The interval for its gain over six statements included zero.
What if we approved more or fewer people?
The main comparison gave each model a 60% approval rate. We tried several rates to see whether the result changed when both models could approve more or fewer customers.
| Approval rate and count | Logistic regression | XGBoost with six statements |
|---|---|---|
| 40% (7,200) | 25 | 19 |
| 50% (9,000) | 58 | 49 |
| 60% (10,800) | 170 | 168 |
| 70% (12,600) | 622 | 598 |
| 80% (14,400) | 1,555 | 1,545 |
At 60%, XGBoost with six statements had two fewer defaults than logistic regression. The paired 95% interval ran from 21 fewer to 16 more. At 70%, it had 24 fewer, with an interval of 54 fewer to one fewer.
At 70%, the 12-statement model had 572 defaults, 50 fewer than logistic regression. Its interval ran from 73 to 23 fewer. Each interval describes the difference at that approval rate on this test group.
What we took away
On the first test, adding six-statement history made little difference to XGBoost’s ranking. At the selected cutoffs, XGBoost with history earned 22 more points than logistic regression, with a paired 95% interval from about 100 fewer to 142 more points. At a cost of ten points per default, logistic regression earned more.
We’d keep logistic regression as the baseline. The latest statement alone ranked risk nearly as well as six statements. Twelve statements gave a small gain over the latest one in our second test, and the approval comparison changed as we moved the approval rate. We’d test both the latest-only and 12-statement models on a later group before choosing what history to collect.
Every cardholder in this dataset had their latest statement in March 2018, and AmEx sampled customers who did not default. To test a lending rule for new applicants, we’d need a later group and data available when they applied. The points depend on what we assumed each default would cost.