接下来的任务是实际计算所谓 portfolio loss distribution 。 为了给 credit derivatives 和CDO定价,我们需要能够计算这种投资组合损失分布portfolio loss distribution。 所以这是我们的第一个目标。
如果我们对随机变量M进行条件处理condition on the random variable M,那么n个违约事件是独立的。
-
特别是在这里给出了这些表达式,给出的M条件下的违约概率。
图中公式来自这条:
qi (t | M) = probability( Xi ≤ xi bar(t) | M)
qi (t | M) = probability( [ai * M + [根号(1-a^2)] * Z_i] ≤ xi bar(t) | M)
qi (t | M) = probability( Z_i ≤ { [xi bar(t) - ai * M] / [根号(1-a^2)] } | M)
上面公式我们得出了图中的公式,右手边都是Constant,这里的概率是 φ,累计概率CDF。
现在让 P上标n (l, t),l 表示在时间t之前, 总共有l个投资组合违约的风险中性概率。
然后,我们可以将t时间 的pl 写成对于给定的M时,所有给定M情况下, p superscript n l of t 的负无穷到正无穷的积分。乘phi of MdM。
We may then write pl of t as being the integral for minus infinity to infinity of p superscript n l of t given M times phi of MdM where phi is the standard normal PDF.
Now if you're wondering where this expression comes from, well, this is just a standard basic undergraduate expression for probability. In discrete form, you can imagine the following. Suppose we want to compute the probability that X is equal to little x. Well, a standard way of doing this is to consider another random variable y, and to sum over all possible values of y. So it's equal to the probability of X equals little x, and Y equals little y. And this is also equal to the sum over little Y of the probability that X equals little X. Given Y equals little Y by the probability that Y equals little Y. So this is a standard expression you probably all seen before in your undergraduate probability class. We're just using this here and. In density form rather than discrete probability mass function form. So M here takes the place of y. So we have our m here, taking the place of y over here, and so instead of a summation, we have an integral. And we're integrating with respect to m instead of summing over the y values here. So this is standard, so we can now write the probability of l default, and just to be consistent, I should have put a superscript n there. So the probability of l default out of the n names by time t, is given to us by this integral here. So the next task is going to be how do we compute this quantity? We know phi of M, it's just the standard normal density. So, we need to compute this quantity here. We can compute this quantity, then we can evaluate this integral numerically, and therefore compute this risk-neutral probability function here. So let's focus on how to compute this expression here. So, in fact, we can easily do it using an iterative procedure, and the iterative procedure will work as follows. So the first thing we're going to do let's initialize. We're going to have to run a couple of for loops here. So let's initialize our quantities first of all, we're going to set p 0. Given M to be equal to 1 minus q1 of M. We're going to set p1, given M to be equal to q1 of M. And we're going to set p2 given M to be equal to P3 given M all the way up to Pn given M. We're going to set all of that equal to 0. Now, what I'm doing here is, I'm dropping the dependence on n and t here. So, I don't want the slide to get too cluttered. If I did I'd have an n in all of these values here. And I'd have a t in here, and so on. But that's just going to get really cluttered. So, I won't do that. So, I'm dropping the dependence of these quantities on n, and t. So, now we're going to do the following. We're going to run the following for loop, we're going to say. For i equals 2 up as far as n. And, for j equals 1 to i. I am going to update these quantities here that i have already initialized. In particular I am going to say.
14:36
P, j given M so this is the probability of j defaults, conditional on M. So this is going to represent the probably of j defaults in the first i names. So there, there are two ways we can get j defaults in the first i names. We could have j minus 1 defaults in those first i names, and having the ith name defaulting. Which is represented here or we could have had j defaults in those first i names. And then having the ith name not defaulting. So that's the end of this for loop. We must also handle the, the case of 0 defaults. So we must also update that. We get the probability of 0. Given M is equal to whatever the previous value was or the value in the previous iteration. Times 1 minus qi of M. In other words, what I'm really doing here. So this is the end of the, of the algorithm. What I'm really doing here is I'm lining up the names. I'm ordering them from say, 1 all the way up to to nth names. I know the risk neutral probability given n for all names. And I'm going through these names these credits in order starting with 1, all the way up to value capital N. I'm doing that via these two for loops here, and I'm updating the probabilities at each step. So, as I said here, so if I'm at this point, for some value of i and some value of j, what I'm doing is the following. I'm now going to update the probabillity of the j defaults. In the portfolio based on the first i names. So, the way j defaults can occur among the first i names is that j minus 1 defaults occur in the first i minus 1 names. Remember this value here is the value left over from the previous iteration. Which considers the names from 1 up to i minus 1, so I get this equals the probability of j minus 1 defaults in the first i minus 1 names. Times the probability that the ith name defaults, plus the probability of j defaults in the first i minus 1 names, by the probability that the ith name does not default. And so I can just run through these two four loops to compute pN l of t, given M. So in other words, at the very end once I get up to , N, i equals capital N and j equals i at the end of this procedure I have the probabilities that I want. And now at this point, we can perform a numerical integration on the right hand side of 2 to compute Pl of t. So this is Pl of t here. I now have computed all of this using that iterative procedure, and I can do numeric integration to calculate this quantity here. And there should be a super script in there as well. If we assume that the notional ai. And the recovery rate ri are constant across all credits, then the loss on any given credit will be either 0 or a times 1 minus r. Therefore knowing the distribution of the number of defaults is equivalent to knowing the distribution of the total loss and the reference portfolio. And that's because l losses on that case is equivalent to a loss of l times a 1 minus r and the portfolio of bonds and so knowing one implies the other. So this, the assumption of constat Ai's and Ri's actually simplifies the calculations, and we're going to be assuming that through out here. But I will mention that this assumption is easily relaxed. We could actually get by without it.