2018-04-15 开胃学习金融系列 - Gaussian copula model

接下来的任务是实际计算所谓 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.

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 203,098评论 5 476
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 85,213评论 2 380
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 149,960评论 0 336
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 54,519评论 1 273
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 63,512评论 5 364
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 48,533评论 1 281
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 37,914评论 3 395
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 36,574评论 0 256
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 40,804评论 1 296
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 35,563评论 2 319
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 37,644评论 1 329
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 33,350评论 4 318
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 38,933评论 3 307
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 29,908评论 0 19
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 31,146评论 1 259
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 42,847评论 2 349
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 42,361评论 2 342

推荐阅读更多精彩内容