Cox model for loan default
Drop a CSV of monthly loan snapshots and tick the columns to test. The Cox proportional hazards model shows how much sooner or later loans default with each driver, holding the other ticked drivers equal.
Your loan file
A made-up book of 4,800 personal and auto loans opened over 30 months.
The file is read in this browser and never uploaded. Only the totals you choose to email leave the page.
Default threshold Drivers to testEach driver is read from the loan’s first month in the file. Untick a column that was not known when the loan was opened.
What drives default
Of the drivers tested, orig_month 12 months later moves with default the most: loans default 1.68 times as fast, with the other ticked drivers held equal.
All drivers together give a likelihood ratio chi-square of 95.76 on 5 degrees of freedom, with p-value < 0.0001.
The model rests on 4,800 loans and 295 defaults.
Hazard ratio by driver
A hazard ratio above 1 means loans with more of the driver default sooner, and a ratio below 1 means they default later. Each ratio holds the other ticked drivers equal. A bar that crosses 1 means this file cannot tell the effect from chance.
Share defaulted by months on book
The further apart the three curves, the better the ticked drivers distinguish loans that default early from the rest. Concordance puts the same comparison in one number, with 0.5 for a coin toss and 1 for a perfect ranking.
Hazard ratios
| Compares | Ratio | 95% interval | p-value | Reading |
|---|---|---|---|---|
| orig_month 12 months later | 1.68 | 1.36 – 2.09 | < 0.0001 | Default sooner |
| each 10,000 more of orig_amount | 1.02 | 0.75 – 1.40 | 0.8913 | No clear effect |
| each 10 more of term | 0.92 | 0.76 – 1.11 | 0.3926 | No clear effect |
| in product, auto against personal | 0.38 | 0.22 – 0.67 | 0.0008 | Default later |
| each 100 more of score | 0.76 | 0.65 – 0.88 | 0.0003 | Default later |
Get the result by email
Put the drivers that matter into the credit decision that sets who gets these loans, then test the policy on past applications. Start your trial
Model formulas
h(t | x) = Baseline hazard(t) × exp(β₁x₁ + … + βₖxₖ) Ratio = exp(Coefficient × step) 95% interval: exp((Coefficient ± 1.96 × Standard error) × step)
Each loan enters at its age in its first snapshot and is at risk until it defaults, pays off or the file ends, as in the time to default tool. The coefficients maximise Efron’s partial likelihood. The model assumes each driver’s hazard ratio stays the same at every month on book, so a driver whose effect fades with age is read as its average. A hazard ratio shows how a driver moves with default, not that it causes default.
Cox model for loan default
A Cox proportional hazards model estimates how loan attributes move with the timing of default. Give it monthly loan snapshots and choose the columns to compare.
The hazard ratio shows how default timing differs with a driver, holding the other ticked drivers equal. Use the results to examine which attributes move with default in your loan file.
Cox model questions
What is a Cox proportional hazards model in credit risk?
It estimates how loan attributes move with the timing of default. This tool fits the model to monthly loan snapshots and reports a hazard ratio for each driver.
How do I read a hazard ratio for a credit score?
A hazard ratio above 1 means loans with more of the score default sooner, and a ratio below 1 means they default later. The comparison holds the other ticked drivers equal.
What does a Cox model say about loan default?
It shows how default timing moves with each driver in the file, with the other ticked drivers held equal. It shows an association, not that a driver causes default.
What is the proportional hazards assumption?
The model assumes a driver’s hazard ratio stays the same at every month on book. If a driver’s effect fades with age, the result reads as its average.
What does concordance mean in survival analysis?
Concordance measures how well the model ranks loans by risk. The tool also shows Kaplan-Meier curves for the loans the model rates least, middle and most risky.