When calculating ECLs for loans under IFRS 9, one of the requirements is that the PD estimates have to be Point-in-time ($PD_{PIT}$) rather than through-the-cycle ($PD_{TTC}$).The setting is as follows: we have a rating model with ratings $X$ ranging from 1-10 with 10 being the worse . The estimated probability of default $PD^{TTC}_i$ for each of the buckets is as follows
| X | PD TTC |
|----|--------|
| 1 | 0.62% |
| 2 | 0.84% |
| 3 | 0.93% |
| 4 | 1.23% |
| 5 | 2.10% |
| 6 | 2.79% |
| 7 | 3.80% |
| 8 | 5.04% |
| 9 | 7.01% |
| 10 | 31.22% |
The overall $PD_{TTC}$ for the entire portfolio is 5.74%. Lets say we estimate that in the coming year our $PD_{PIT}$ will be 8%. We now want to calibrate the probability for each rating to reflect the increase in the overall default rate of the portfolio. I was told that this can be done using the following varsion of the Bayes formula:
$$PD^{PIT}_i = \frac{(1-PD_{TTC})*PD_{PIT}*PD^{TTC}_i}{PD_{TTC}*(1-PD_{PIT})*(1-PD^{TTC}_i)+(1-PD_{TTC})*PD_{PIT}*PD^{TTC}_i}$$
where
$PD_{TTC}$: Overall portfolio TTC default rate
$PD_{PIT}$: Overall portfolio PIT default rate
$PD^{TTC}_i$: TTC default rate for rating grade $i$
For example the calibrated PD for rating 1 would be $$PD^{PIT}_1 = \frac{(1-0.0574)*0.08*0.0062}{0.0574*(1-0.08)*(1-0.0062)+(1-0.0574)*(0.08)*0.0062}$$ $$PD^{PIT}_1 = 0.0088$$
The fully calibrated rating scale would be as follows
| X | PD TTC | PD PIT |
|----|--------|--------|
| 1 | 0.62% | 0.88% |
| 2 | 0.84% | 1.20% |
| 3 | 0.93% | 1.32% |
| 4 | 1.23% | 1.75% |
| 5 | 2.10% | 2.97% |
| 6 | 2.79% | 3.94% |
| 7 | 3.80% | 5.34% |
| 8 | 5.04% | 7.04% |
| 9 | 7.01% | 9.72% |
| 10 | 31.22% | 39.33% |
Can someone please explain to me the reasoning behind this particular application of Bayes' formula and if possible provide a derivation showing why it is valid in this context?