Raif Mondal
The Founder Issue · Research notesNote No. II
Credit risk · Job simulation

Turning credit scores into ratings

Where to draw the lines between FICO buckets, if the goal is to separate borrowers who default from those who do not.

This came out of the JPMorgan Chase quantitative research job simulation on Forage. It is a set of practice tasks, not work done at JPMorgan, and I want to be plain about that. Of the four tasks, the one that stayed with me was the last: turning a continuous credit score into a small number of ratings.

A bank that wants to model default by rating, rather than by raw score, has to decide where the buckets begin and end. The lazy answer is equal-sized buckets. It is easy to explain and almost certainly wrong, because default risk does not change evenly across the score range.

Letting the defaults choose the boundaries

The better answer is to choose boundaries that make the observed defaults most likely. Inside each bucket, defaults are treated as a binomial outcome with the bucket’s own default rate; the boundaries are then moved to maximise the total log-likelihood. The ratings that come out are the ones that best separate good borrowers from bad.

Equal buckets are easy to explain. Likelihood buckets are easy to defend.

The other tasks in the same repository price a natural gas storage contract from injection and withdrawal cash flows, forecast gas prices with Holt-Winters, and estimate expected loss from a logistic-regression probability of default. The code is a first pass: the optimiser still has a known indexing bug, and the scripts expect file names that differ from the data in the repository. I have left it as it was, warts and all.