I'm just wondering that can I convert hazard rate to probability of default? Suppose I have the lifetime table data as per below:
Time | Total | Default | Non-Default | At Risk |
---|---|---|---|---|
0 | - | - | - | 356,335 |
1 | 5,587 | 1,544 | 4,043 | 356,335 |
2 | 5,613 | 1,421 | 4,192 | 350,748 |
3 | 5,670 | 1,332 | 4,338 | 345,135 |
4 | 5,755 | 1,251 | 4,504 | 339,465 |
The total is the number of observation at time t. It combines event and non-event (right censoring) at time t.
Basically, I can calculate the Cumulative PD by sum of default at time(t) and divided by initial (356,335) observation and the Marginal PD by default at time(t) divided by initial observation (356,335). Also, the Conditional PD by default at time(t) divided by number of observation at time(t) with cumulative of Non-Default. The example is per below:
Cumulative PD at time 2 = (1,544 + 1,421) / 356,335 = 0.83%
Marginal PD PD at time 2 = 1,421 / 356,335 = 0.40%
Conditional PD at time 2 = 1,421 / (350,748 + 4,043) = 0.40%
I have used NelsonAalenFitter()
to calculate the cumulative hazard rate. The formula used to calculate hazard rate is -1 * [log(At Risk - Default) - log(At Risk)]
and cumulative sum to get cumulative hazard rate. For example:
Hazard rate at time 2 = -1 * [log(350,748 - 1,421) - log(350,748)] = 0.41%
I wonder that is it possible to convert the Hazard rate of 0.41% to either Conditional PD of 0.40% or Marginal PD of 0.40%?
Thank you.