Kaplan-Meier time to default from your loan data
Decisimo automates credit decisions for lenders. Drop a CSV of monthly loan snapshots to see the Kaplan-Meier share defaulted at each age in months on book, following loans from opening to default, payoff or the file’s last month.
Your loan file
A made-up book of 4,800 personal and auto loans opened over 30 months.
Your file is read in this browser and never uploaded, and only the totals you choose to email leave the page.
Default definitionWhen loans default
By 12 months on book 3.8% of loans have defaulted, and by 24 months 9.4%, counting loans that paid off or are still young for as long as they were seen.
The curve rests on 4,800 loans and 295 defaults.
Share defaulted by months on book
Each step marks an age when loans defaulted. Loans that paid off or remain on the book count as at risk only for the time they were seen, so early payoffs are not counted as good loans.
Log-rank test for groups
The log-rank test gives a chi-square of 54.94 with 1 degrees of freedom and a p-value of < 0.0001. A small p-value indicates that the groups default at different rates over time.
| Group | Loans | Defaults observed | Defaults expected |
|---|---|---|---|
| personal | 2,926 | 230 | 167.5 |
| auto | 1,874 | 65 | 127.5 |
Life table
Censored loans paid off or were last seen in those months before default. They count as at risk until then.
| Months on book | At risk | Defaults | Censored | Share not defaulted | Cumulative default | 95% interval |
|---|---|---|---|---|---|---|
| 3 | 4,800 | 0 | 134 | 100.0% | 0.0% | – |
| 6 | 4,666 | 35 | 316 | 99.2% | 0.8% | 0.5% – 1.1% |
| 9 | 4,315 | 54 | 658 | 97.9% | 2.1% | 1.7% – 2.6% |
| 12 | 3,603 | 59 | 544 | 96.2% | 3.8% | 3.2% – 4.4% |
| 15 | 3,000 | 32 | 495 | 95.2% | 4.8% | 4.2% – 5.6% |
| 18 | 2,473 | 42 | 454 | 93.5% | 6.5% | 5.7% – 7.5% |
| 21 | 1,977 | 20 | 413 | 92.4% | 7.6% | 6.7% – 8.6% |
| 24 | 1,544 | 27 | 390 | 90.6% | 9.4% | 8.3% – 10.6% |
| 27 | 1,127 | 14 | 533 | 89.0% | 11.0% | 9.6% – 12.5% |
| 30 | 580 | 6 | 250 | 88.0% | 12.0% | 10.5% – 13.8% |
| 33 | 324 | 5 | 203 | 86.2% | 13.8% | 11.7% – 16.2% |
Get the result by email
The next step is to set the credit decision that determines who gets these loans, then test the policy on past applications. Start your trial
Method and formulas
S(t) = S(t−1) × (1 − Defaults at age ÷ Loans at risk) Cumulative default = 1 − S(t) 95% interval: exp(−exp(log(−log S) ± 1.96 × √(Σ d ÷ (n × (n − d))) ÷ |log S|))
A loan enters at its age in its first snapshot and is at risk until it defaults, pays off or the file ends. A paid-off loan is counted as if it would have defaulted at the book’s rate had it stayed. Loans of unknown age are left out.
Kaplan-Meier survival for loan defaults
Kaplan-Meier estimates the share of loans still free of default at each age in months on book. It uses the defaults at that age and the loans still at risk, then gives the cumulative share defaulted as one minus survival.
The curve shows when defaults occur across a loan book, which helps with PD term structures, pricing and collections planning. Compare products or groups with the log-rank test, and use the life table to see the loans at risk, defaults and censored loans at each age.
Common questions
What is Kaplan-Meier survival analysis for loan defaults?
Kaplan-Meier estimates the share of loans still free of default at each age. The cumulative share defaulted is one minus survival.
How do I calculate time to default from monthly loan data?
Each loan enters at its age in its first snapshot and leaves at default, payoff or the file’s last month. Loans with unknown age are left out of the age-based figures.
What does censored mean for a paid-off loan?
A paid-off loan is censored because it left the book before default. It counts as at risk only until it paid off.
How is median time to default calculated?
It is the age by which half the loans have defaulted. If half never defaulted in the file, the median is shown as not reached.
How does a log-rank test compare loan products?
The log-rank test compares the groups’ default curves over time. A small p-value indicates that the groups default at different rates over time.