I'm hoping this question is not too banal or off-topic for this forum. Could you please help me understand / point me towards some resources on the impact of correlation on loan defaults?
First question
I have seen some material that, as correlation goes up, the expected loss of the portfolio remains the same, but the tails become thicker. Does this always hold true or only in some cases? E.g.
+----------------+----------------+-----------------+
| Item | No correlation | 20% correlation |
+----------------+----------------+-----------------+
| Expected loss | 5% | 5% |
| 95% percentile | 10% | 15% |
+----------------+----------------+-----------------+
Material
Can you think of any reading / material that could help me understand this? Not necessarily a mathematically rigorous textbook - even just something to understand the basic intuition.
I have found some slides here, but I'll admit I haven't exactly understood everything.
How to model loan correlation
Let's say I have a portfolio of 10,000 loans and I have calculated a probability of default for each loan. Calculating the expected loss when the loans are not correlated is straightforward. But what when they are correlated? Is the approach something like (and apologies if it's a very banal question):
- You need a distribution for the probability of default of each loan, not just a PD value
- You run Monte Carlo simulations, generating correlated default data (as in the Matlab example below)
- You then calculate expected loss etc on the basis of this simulation
Code examples
Finally, can you think of some code examples to recommend - ideally in Python? But even in another language, if the material is clear enough to help me understand the key concepts.
I have found this package for Python but I am none the wiser.
This Matlab documentation seems a bit clearer: it starts by generating two uncorrelated random samples, then it correlates them, and compares the difference
Thanks!