SAS中文论坛

 找回密码
 立即注册

扫一扫,访问微社区

查看: 698|回复: 0
打印 上一主题 下一主题

The eve of Lehman Brothers' demise

[复制链接]

49

主题

76

帖子

1462

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1462
楼主
 楼主| 发表于 2011-6-27 14:45:22 | 只看该作者

The eve of Lehman Brothers' demise

From Dapangmao's blog on sas-analysis

<div class="separator" style="clear: both; text-align: center;"><a href="http://4.bp.blogspot.com/-PgDGOxbYfcM/TeqrPWjymVI/AAAAAAAAAmA/wDxFVr9n8cY/s1600/plot1.jpg" imageanchor="1" style="margin-left:1em; margin-right:1em"><img border="0" height="300" width="400" src="http://4.bp.blogspot.com/-PgDGOxbYfcM/TeqrPWjymVI/AAAAAAAAAmA/wDxFVr9n8cY/s400/plot1.jpg" /></a></div><br />
Recently Moody’s warned the US government to degrade its credit rating if the nation’s debt limit increase is not approved [Ref. 1].  The news came right after Standard & Poor’s lowered US’s sovereign rating from AAA to AA. Those rating changes suggest the accumulation of default risk and may cause some butterfly effect. <br />
<br />
Before the start of this Great Recession, without much notice, Lehman Brothers’ default probability increased drastically according to a classic model by Merton [Ref. 2]. And this change failed to be disclosed by either Standard & Poor’s rating or the stock price. Here I translated Gunter and Peter’s VBA code for Merton’s model [Ref. 3] into SAS code and reproduced the trend plot. The result clearly shows that implementation of probability and statistics may catch alert within the narrow 'escape' window, and therefore help avoid or mitigate risks . <br />
<br />
References: <br />
1. ‘Moody’s Warns of Downgrade for U.S. Credit’. The New York Times. 02JUN2011<br />
2. Merton, R.C. ‘On the pricing of corporate debt: The risk structure of interest rates’. The Journal of Finance. 29(2): 449-470. 1974<br />
3. Gunter Loeffler and Peter Posch. ‘Credit Risk Modeling using Excel and VBA’. The 2nd edition. Wiley.<br />
<br />
<pre style="background-color: #ebebeb; border: 1px dashed rgb(153, 153, 153); color: #000001; font-size: 14px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;"><code>
/*******************READ ME*********************************************
* - The eve of Lehman Brothers' demise -
*
* SAS VERSION:    9.2.2
* DATE:           04jun2011
* AUTHOR:         <!-- e --><a href="mailto:hchao8@gmail.com">hchao8@gmail.com</a><!-- e -->
****************END OF READ ME******************************************/

proc fcmp outlib = work.cg.func;
   function cg_ps(s, sigma_s, d, lambda, sigma_b, t);
      d1 = (s + lambda*d) * exp(sigma_b ** 2) / (lambda *d);
      alpha = (((sigma_s*s) / (s + lambda * d))**2 * t + sigma_b**2)**0.5;
      x = probnorm(-(alpha/2) + (log(d1)/alpha)) -
          d1 * probnorm(-(alpha/2) - (log(d1) / alpha));
      return(x);
   endsub;
run;

data record;
   input @1 date $7. @11 sp 4.2 @18 dps 20.8 @32 Vol30d  4.2 @43 s_p $2.;
   cards;
   Q4 2003   36.11  69.95612419   25.26      A+
   /*To buy Gunter and Peter's book will have the full data*/
   Q2 2008   36.81        127.8   99.93      A  
;;;
run;

options cmplib = work.cg;
data scored;
   set record;
   global_rcv = 0.5;
   vol_barrier = 0.1;
   time = 1;
   vol30d = vol30d / 100;
   pd = 1 - cg_ps(sp, vol30d, dps,  global_rcv, vol_barrier, time);
   label sp = 'Lehman Brothers'' stock price'
         pd = 'Probability of default';
run;

proc sgplot data = scored;
   series x = date  y = sp;
   series x = date  y = pd / y2axis;
   yaxis values= (0 to 90 by 10) label = 'stock price($)';
   y2axis values= (0 to 0.4 by 0.05) grid
          label = 'Default rating by Merton''s model';
   refline  'Q4 2005' / axis = x;
   inset "Time period when S&P rating as A" / position = topright ;
   inset "Time period when S&P rating as A+" / position = topleft;
run;
</code></pre><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3256159328630041416-4117955364189313383?l=www.sasanalysis.com' alt='' /></div><img src="http://feeds.feedburner.com/~r/SasAnalysis/~4/gIC6fkUqh2Q" height="1" width="1"/>
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|手机版|Archiver|SAS中文论坛  

GMT+8, 2025-6-10 03:48 , Processed in 0.096270 second(s), 22 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表