<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Alluve</title>
	<atom:link href="http://alluve.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://alluve.wordpress.com</link>
	<description>Alluve&#039;s blog on financial mathematics.</description>
	<lastBuildDate>Tue, 07 Feb 2012 22:32:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='alluve.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/b376e90507c5fa74c7f000fda1066b54?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Alluve</title>
		<link>http://alluve.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://alluve.wordpress.com/osd.xml" title="Alluve" />
	<atom:link rel='hub' href='http://alluve.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Why companies should not outsource IT support</title>
		<link>http://alluve.wordpress.com/2012/02/08/why-companies-should-not-outsource-it-support/</link>
		<comments>http://alluve.wordpress.com/2012/02/08/why-companies-should-not-outsource-it-support/#comments</comments>
		<pubDate>Tue, 07 Feb 2012 22:32:36 +0000</pubDate>
		<dc:creator>Alluve</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://alluve.wordpress.com/?p=468</guid>
		<description><![CDATA[Most big companies do not maintain their IT infrastructure by themselves. Instead, they outsource this job to another company, which usually calls itself a solution provider. A single solution provider can take care of IT resources of many different companies. &#8230; <a href="http://alluve.wordpress.com/2012/02/08/why-companies-should-not-outsource-it-support/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alluve.wordpress.com&amp;blog=22234062&amp;post=468&amp;subd=alluve&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Most big companies do not maintain their IT infrastructure by themselves. Instead, they outsource this job to another company, which usually calls itself a solution provider. A single solution provider can take care of IT resources of many different companies.</p>
<p>The outsourcing company usually claims that keeping their own IT support team would be more expensive than outsourcing. I believe this is a fallacy, and here is why.</p>
<p><span id="more-468"></span></p>
<p>Firstly, consider an organisation (let&#8217;s say it&#8217;s a bank) that has its own IT support team. This team is shown on Figure 1.</p>
<div id="attachment_469" class="wp-caption alignnone" style="width: 233px"><a href="http://alluve.files.wordpress.com/2012/02/os-bank.png"><img class="size-medium wp-image-469" title="An internal IT support team." src="http://alluve.files.wordpress.com/2012/02/os-bank.png?w=223&#038;h=300" alt="An internal IT support team." width="223" height="300" /></a><p class="wp-caption-text">An internal IT support team.</p></div>
<p>Say, the team consists of 20 people, which is just enough to keep the IT infrastructure up and running. Obviously, his team needs a manager. The manager is responsible for task allocation, making sure that not all of the team take holidays at the same time, conducting end of year performance reviews &#8212; in short, the manager does not do anything useful for the bank&#8217;s IT systems. The manager represents the overhead which is needed for the team to work well. In other words, the bank pays salaries to 21 people, but only 20 of them do some useful work.</p>
<p>Next, let us consider the case where the bank has outsourced the IT support to another company, the solution provider. The solution provider is a big company that serves many different clients. Suppose our bank still needs 20 people to maintain its IT infrastructure. Like before, these 20 people need a manager. However, the solution provider is a big company that consists of many such teams. Their managers, in turn, have higher-level manager, that oversees multiple teams. These higher-level managers report to other, even higher, managers, and so on until the pyramid converges to one person, the president of the company. This is shown on Figure 2.</p>
<div id="attachment_470" class="wp-caption alignnone" style="width: 310px"><a href="http://alluve.files.wordpress.com/2012/02/os-solution-provider.png"><img class="size-medium wp-image-470 " title="Outsorced IT support." src="http://alluve.files.wordpress.com/2012/02/os-solution-provider.png?w=300&#038;h=207" alt="Outsorced IT support." width="300" height="207" /></a><p class="wp-caption-text">Outsorced IT support.</p></div>
<p>Here, the bank that uses the services of the 20 people, pays not only their and their manager&#8217;s salaries, but also a fraction of the salaries of all the higher management up to the top (otherwise, where would their salaries come from?)</p>
<p>Paying just a bit more for the same amount of work would not be such a big deal, but it does not stop here. There is one more figure that stands between the bank and the solution provider: the account manager. The job of the account manager is to make the bank pay as much as possible for the services it receives. Guess where the account manager&#8217;s salary comes from? Also from the fees that the bank pays to the solution provider. The bank, in fact, feeds its worst enemy.</p>
<p>But wait, before the bank decided to outsource its IT support, they made calculations which showed that the fees of the solution provider are lower than the costs of having IT support inside the company. How did they do these calculations? The trick is to design outsourcing such that the solution provider will have to do less work than an internal support team would have done. Let us look at an example.</p>
<p>One morning at the bank that I am consulting, my Microsoft Access application crashed and damaged the database file. &#8221;No big deal,&#8221; thought I, &#8220;the files are on a network server, which is backed up nightly. I can ask for the last night&#8217;s backup.&#8221; It should take no longer than an hour to restore a file from a backup, right?</p>
<p>I phoned the bank&#8217;s IT helpdesk and explained the problem. &#8220;Ok,&#8221; said the person on the other end of the line, &#8220;I will make a ticket for the backup/restore team. You can expect the problem to be solved within 24 hours.&#8221; &#8220;Can it be done quicker?&#8221; asked I anxiously. &#8220;I need this file to complete an urgent task.&#8221; &#8220;All I can do is make a ticket,&#8221; answered the helpdesk person, &#8220;the rest is up to the backup and restore team, and they have 24 hours, according to the SLA.&#8221;</p>
<p>The bank has an agreement (Service Level Agreement, or SLA) with the solution provider, which specifies the time allotted to solving IT problems. As long as the solution provider conforms to the SLA, they have little incentive to hurry up with doing their job.</p>
<p>Bottomline: outsourcing IT support looks attractive on paper, but in reality the bank gets much less work done for the money they pay.</p>
<p>I am not trying to say that outsourcing is generally a bad idea. In many cases it is exactly the thing to do. Every two years, the banks needs to repaint the facade of its office building. It hires services of a painting company. The painting company does the job in a week and paint some other facades before it is time to repaint this bank again. There is no reason to keep the painters on the bank&#8217;s payroll.</p>
<p>Now let us look at three more arguments that are often used to justify outsourcing, and see why they do not apply to IT support.</p>
<p>1) Doing IT support is not the bank&#8217;s core business.</p>
<p>This argument would only work if one believes that a<br />
company doing only its core business is good for the company. This is simply not true. Say, the core business of a railroad is to bring passengers from one place to another. If the railroad decides not to sell hotogs on the platforms because &#8221;selling hotdogs is not our core business&#8221;, someone else will do it and take all the money.</p>
<p>2) IT solution providers have more expertise in IT support than the bank.</p>
<p>This is not true either. They just hire anybody who is willing to work for the salary they pay, train them quickly and send them to the customers. When the bank owns its IT support, it have much more control of the quality of its workforce.</p>
<p>3) Outsourced work can be done in other countries where wages are lower.</p>
<p>This was true several years ago, but by now the people who can do the work became expensive regardless of their geografical location. The people that remained cheap are probably not a good hire even for a low salary. Besides, IT support requires the engineer&#8217;s physical presence at the customer&#8217;s site so often that one has to keep a fairly big team  co-located with the customer anyway.</p>
<p>So, why do so many companies outsource their IT support? The reasons are plentiful, for instance:</p>
<p>1) It looks good on paper. The manager who has outsourced IT support can claim that he has saved a lot of money for the company.</p>
<p>2) It shifts the responsibility to the solution provider. If an internal IT support group messes things up (people do make mistakes every now and then), their manager gets the blame. If an external solution provider messes things up, they are to blame, not the manager who outsourced the work to them.</p>
<p>3) Due to the herd instinct. Outsourcing is popular, so people tend to do this because everyone else does. 20 years ago a vast majority of males smoked for exactly the same reason.</p>
<p>Sadly, many companies continue to outsource their IT support, and are likely to continue to do so in the future.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alluve.wordpress.com/468/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alluve.wordpress.com/468/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alluve.wordpress.com/468/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alluve.wordpress.com/468/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/alluve.wordpress.com/468/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/alluve.wordpress.com/468/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/alluve.wordpress.com/468/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/alluve.wordpress.com/468/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alluve.wordpress.com/468/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alluve.wordpress.com/468/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alluve.wordpress.com/468/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alluve.wordpress.com/468/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alluve.wordpress.com/468/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alluve.wordpress.com/468/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alluve.wordpress.com&amp;blog=22234062&amp;post=468&amp;subd=alluve&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://alluve.wordpress.com/2012/02/08/why-companies-should-not-outsource-it-support/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b55b5bac339e91cdb97011078fd6b78a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">alluve</media:title>
		</media:content>

		<media:content url="http://alluve.files.wordpress.com/2012/02/os-bank.png?w=223" medium="image">
			<media:title type="html">An internal IT support team.</media:title>
		</media:content>

		<media:content url="http://alluve.files.wordpress.com/2012/02/os-solution-provider.png?w=300" medium="image">
			<media:title type="html">Outsorced IT support.</media:title>
		</media:content>
	</item>
		<item>
		<title>&#8220;Risky&#8221; zero rate curve</title>
		<link>http://alluve.wordpress.com/2011/07/12/risky-zero-rate-curve/</link>
		<comments>http://alluve.wordpress.com/2011/07/12/risky-zero-rate-curve/#comments</comments>
		<pubDate>Tue, 12 Jul 2011 21:29:36 +0000</pubDate>
		<dc:creator>Alluve</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://alluve.wordpress.com/?p=465</guid>
		<description><![CDATA[Here is a small example of how one can calculate a risk-adjusted zero rate, given a risk-free zero rate and CDS premium. Risky zero rate calculation example.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alluve.wordpress.com&amp;blog=22234062&amp;post=465&amp;subd=alluve&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here is a small example of how one can calculate a risk-adjusted zero rate, given a risk-free zero rate and CDS premium.</p>
<p><a href="https://spreadsheets.google.com/spreadsheet/ccc?key=0Al5ArD7HQvTydHYtNHQyZFppSmVJWDUyZmRNdEctMlE&amp;hl=en_US">Risky zero rate calculation example.</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alluve.wordpress.com/465/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alluve.wordpress.com/465/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alluve.wordpress.com/465/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alluve.wordpress.com/465/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/alluve.wordpress.com/465/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/alluve.wordpress.com/465/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/alluve.wordpress.com/465/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/alluve.wordpress.com/465/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alluve.wordpress.com/465/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alluve.wordpress.com/465/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alluve.wordpress.com/465/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alluve.wordpress.com/465/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alluve.wordpress.com/465/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alluve.wordpress.com/465/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alluve.wordpress.com&amp;blog=22234062&amp;post=465&amp;subd=alluve&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://alluve.wordpress.com/2011/07/12/risky-zero-rate-curve/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b55b5bac339e91cdb97011078fd6b78a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">alluve</media:title>
		</media:content>
	</item>
		<item>
		<title>Software should not be patentable</title>
		<link>http://alluve.wordpress.com/2011/05/12/software-should-not-be-patentable/</link>
		<comments>http://alluve.wordpress.com/2011/05/12/software-should-not-be-patentable/#comments</comments>
		<pubDate>Thu, 12 May 2011 19:54:53 +0000</pubDate>
		<dc:creator>Alluve</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://alluve.wordpress.com/?p=462</guid>
		<description><![CDATA[Software patents never seemed to be a good idea. At last there is something to substantiate the claim that software should not be patentable. Here is a mathematical proof how US Patent 5,893,120 can be reduced to mathematical formulae, thus &#8230; <a href="http://alluve.wordpress.com/2011/05/12/software-should-not-be-patentable/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alluve.wordpress.com&amp;blog=22234062&amp;post=462&amp;subd=alluve&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Software patents never seemed to be a good idea. At last there is something to substantiate the claim that software should not be patentable. Here is a mathematical proof how <a href="http://paulspontifications.blogspot.com/2011/04/patent-5893120-reduced-to-mathematical.html">US Patent 5,893,120 can be reduced to mathematical formulae</a>, thus making it unpatentable under the US law.</p>
<p>In his <a href="http://paulspontifications.blogspot.com/2010/07/bilski-says-software-is-not-patentable.html">other blog entry</a> the author argues that, in fact, any software algorithm can be reduced to mathematical formulae, which are not patentable.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alluve.wordpress.com/462/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alluve.wordpress.com/462/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alluve.wordpress.com/462/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alluve.wordpress.com/462/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/alluve.wordpress.com/462/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/alluve.wordpress.com/462/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/alluve.wordpress.com/462/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/alluve.wordpress.com/462/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alluve.wordpress.com/462/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alluve.wordpress.com/462/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alluve.wordpress.com/462/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alluve.wordpress.com/462/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alluve.wordpress.com/462/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alluve.wordpress.com/462/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alluve.wordpress.com&amp;blog=22234062&amp;post=462&amp;subd=alluve&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://alluve.wordpress.com/2011/05/12/software-should-not-be-patentable/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b55b5bac339e91cdb97011078fd6b78a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">alluve</media:title>
		</media:content>
	</item>
		<item>
		<title>Diagonalising an intensity matrix of a reversible Markov chain</title>
		<link>http://alluve.wordpress.com/2011/04/22/diagonalising-an-intensity-matrix-of-a-reversible-markov-chain/</link>
		<comments>http://alluve.wordpress.com/2011/04/22/diagonalising-an-intensity-matrix-of-a-reversible-markov-chain/#comments</comments>
		<pubDate>Thu, 21 Apr 2011 22:15:59 +0000</pubDate>
		<dc:creator>Cyril</dc:creator>
				<category><![CDATA[Mathematics]]></category>

		<guid isPermaLink="false">http://alluve.blogetery.com/?p=231</guid>
		<description><![CDATA[Recently I needed to build a Monte Carlo simulator of a continuous-time Markov chain. This is a pretty straightforward exercise; the only catch was that I wanted it to perform well, so I had to use a fast algorithm for &#8230; <a href="http://alluve.wordpress.com/2011/04/22/diagonalising-an-intensity-matrix-of-a-reversible-markov-chain/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alluve.wordpress.com&amp;blog=22234062&amp;post=231&amp;subd=alluve&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Recently I needed to build a Monte Carlo simulator of a <a href="http://en.wikipedia.org/wiki/Continuous-time_Markov_process">continuous-time Markov chain</a>. This is a pretty straightforward exercise; the only catch was that I wanted it to perform well, so I had to use a fast algorithm for matrix exponentiation.<br />
<span id="more-231"></span><br />
One way to calculate a matrix exponent efficiently is to calculate the <a href="http://en.wikipedia.org/wiki/Eigendecomposition_of_a_matrix">eigendecomposition</a> of the matrix: <img src='http://s0.wp.com/latex.php?latex=A%3DQ%5CLambda+Q%5E%7B-1%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A=Q&#92;Lambda Q^{-1}' title='A=Q&#92;Lambda Q^{-1}' class='latex' />, where <img src='http://s0.wp.com/latex.php?latex=%5CLambda&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Lambda' title='&#92;Lambda' class='latex' /> is a diagonal matrix. Then <img src='http://s0.wp.com/latex.php?latex=%5Cexp%28A%29+%3D+Q%5Cexp%28%5CLambda%29Q%5E%7B-1%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;exp(A) = Q&#92;exp(&#92;Lambda)Q^{-1}' title='&#92;exp(A) = Q&#92;exp(&#92;Lambda)Q^{-1}' class='latex' /> (<a href="http://en.wikipedia.org/wiki/Matrix_exponentiation">details here</a>). The process of finding such eigendecomposition is also known as <em>diagonalisation</em>.<br />
Not every matrix can be diagonalised, though. One particularly nice case is when <img src='http://s0.wp.com/latex.php?latex=A&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A' title='A' class='latex' /> is <a href="http://en.wikipedia.org/wiki/Hermitian_matrix">Hermitian</a>: then there exists a decomposition <img src='http://s0.wp.com/latex.php?latex=A%3DQ%5CLambda+Q%5E%7B-1%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A=Q&#92;Lambda Q^{-1}' title='A=Q&#92;Lambda Q^{-1}' class='latex' /> where <img src='http://s0.wp.com/latex.php?latex=%5CLambda&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Lambda' title='&#92;Lambda' class='latex' /> is real, and <img src='http://s0.wp.com/latex.php?latex=Q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Q' title='Q' class='latex' /> is <a href="http://en.wikipedia.org/wiki/Unitary_matrix">unitary</a>. Numerical diagonalisation of a Hermitian matrix is implemented in many software packages.<br />
Even if the matrix is question is not Hermitian, not all is lost: there is a big class of non-Hermitian matrices that can be easily diagonalised. This is what this post is about.</p>
<p>If we can find matrix <img src='http://s0.wp.com/latex.php?latex=M&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='M' title='M' class='latex' /> such that</p>
<ul>
<li><img src='http://s0.wp.com/latex.php?latex=MA&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='MA' title='MA' class='latex' /> is Hermitian,</li>
<li><img src='http://s0.wp.com/latex.php?latex=M&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='M' title='M' class='latex' /> can be decomposed as <img src='http://s0.wp.com/latex.php?latex=M%3DLL%5E%2A&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='M=LL^*' title='M=LL^*' class='latex' /> (<img src='http://s0.wp.com/latex.php?latex=L%5E%2A&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='L^*' title='L^*' class='latex' /> denotes <a href="http://en.wikipedia.org/wiki/Conjugate_transpose">conjugate transpose</a> of <img src='http://s0.wp.com/latex.php?latex=L&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='L' title='L' class='latex' />), where <img src='http://s0.wp.com/latex.php?latex=L&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='L' title='L' class='latex' /> is invertible,</li>
</ul>
<p>then there exists a decomposition <img src='http://s0.wp.com/latex.php?latex=A%3DQ%5CLambda+Q%5E%7B-1%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A=Q&#92;Lambda Q^{-1}' title='A=Q&#92;Lambda Q^{-1}' class='latex' /> where <img src='http://s0.wp.com/latex.php?latex=%5CLambda&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Lambda' title='&#92;Lambda' class='latex' /> is real. Note: in this post, I discuss a general case where elements of <img src='http://s0.wp.com/latex.php?latex=A&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A' title='A' class='latex' /> are complex numbers. All of that is also applicable, as a special case, to real-valued matrices. For them, &#8220;Hermitian&#8221; means &#8220;symmetrical&#8221;, and &#8220;unitary&#8221; means &#8220;orthogonal&#8221;. The elements of an intensity matrix of a Markov chain are, of course, real.</p>
<p>To find the eigendecomposition of a non-Hermitian matrix <img src='http://s0.wp.com/latex.php?latex=A&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A' title='A' class='latex' />, we start with the eigendecomposition of the matrix <img src='http://s0.wp.com/latex.php?latex=V%3DL%5E%2AAL%5E%7B-%2A%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='V=L^*AL^{-*}' title='V=L^*AL^{-*}' class='latex' />. We use abbreviation <img src='http://s0.wp.com/latex.php?latex=L%5E%7B-%2A%7D%3D%5Cleft%28L%5E%2A%5Cright%29%5E%7B-1%7D%3D%5Cleft%28L%5E%7B-1%7D%5Cright%29%5E%2A&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='L^{-*}=&#92;left(L^*&#92;right)^{-1}=&#92;left(L^{-1}&#92;right)^*' title='L^{-*}=&#92;left(L^*&#92;right)^{-1}=&#92;left(L^{-1}&#92;right)^*' class='latex' />. Matrix <img src='http://s0.wp.com/latex.php?latex=V&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='V' title='V' class='latex' /> is Hermitian, which is easy to see by checking that <img src='http://s0.wp.com/latex.php?latex=V%5E%2A%3DV&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='V^*=V' title='V^*=V' class='latex' /> using the fact that <img src='http://s0.wp.com/latex.php?latex=LL%5E%2AA%3DA%5E%2ALL%5E%2A&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='LL^*A=A^*LL^*' title='LL^*A=A^*LL^*' class='latex' />.</p>
<p>Suppose we have found the eigendecomposition</p>
<p><img src='http://s0.wp.com/latex.php?latex=V%3DP%5CLambda+P%5E%7B-1%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='V=P&#92;Lambda P^{-1}' title='V=P&#92;Lambda P^{-1}' class='latex' /></p>
<p>(using our favourite matrix manipulation package). Then, by definition of <img src='http://s0.wp.com/latex.php?latex=V&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='V' title='V' class='latex' />, we have</p>
<p><img src='http://s0.wp.com/latex.php?latex=L%5E%2AAL%5E%7B-%2A%7D%3DP%5CLambda+P%5E%7B-1%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='L^*AL^{-*}=P&#92;Lambda P^{-1}' title='L^*AL^{-*}=P&#92;Lambda P^{-1}' class='latex' />.</p>
<p>Multiplying both sides of this equation by <img src='http://s0.wp.com/latex.php?latex=L%5E%7B-%2A%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='L^{-*}' title='L^{-*}' class='latex' /> on the left and <img src='http://s0.wp.com/latex.php?latex=L%5E%2A&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='L^*' title='L^*' class='latex' /> on the right, we get</p>
<p><img src='http://s0.wp.com/latex.php?latex=A%3DL%5E%7B-%2A%7DP%5CLambda+P%5E%7B-1%7DL%5E%2A&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A=L^{-*}P&#92;Lambda P^{-1}L^*' title='A=L^{-*}P&#92;Lambda P^{-1}L^*' class='latex' />.</p>
<p>Let <img src='http://s0.wp.com/latex.php?latex=Q%3DL%5E%7B-%2A%7DP&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Q=L^{-*}P' title='Q=L^{-*}P' class='latex' />, then <img src='http://s0.wp.com/latex.php?latex=Q%5E%7B-1%7D%3DP%5E%7B-1%7DL%5E%2A&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Q^{-1}=P^{-1}L^*' title='Q^{-1}=P^{-1}L^*' class='latex' />. Thus,</p>
<p><img src='http://s0.wp.com/latex.php?latex=A%3DQ%5CLambda+Q%5E%7B-1%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A=Q&#92;Lambda Q^{-1}' title='A=Q&#92;Lambda Q^{-1}' class='latex' />,</p>
<p>which is the eigendecomposition we were looking for.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alluve.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alluve.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alluve.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alluve.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/alluve.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/alluve.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/alluve.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/alluve.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alluve.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alluve.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alluve.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alluve.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alluve.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alluve.wordpress.com/231/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alluve.wordpress.com&amp;blog=22234062&amp;post=231&amp;subd=alluve&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://alluve.wordpress.com/2011/04/22/diagonalising-an-intensity-matrix-of-a-reversible-markov-chain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/19c3aa182d6f8977d5b873bc8fe4c3f2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cyrilschmidt</media:title>
		</media:content>
	</item>
		<item>
		<title>CVA calculation example</title>
		<link>http://alluve.wordpress.com/2010/04/10/cva-calculation-example/</link>
		<comments>http://alluve.wordpress.com/2010/04/10/cva-calculation-example/#comments</comments>
		<pubDate>Sat, 10 Apr 2010 00:03:47 +0000</pubDate>
		<dc:creator>Cyril</dc:creator>
				<category><![CDATA[Finance]]></category>
		<category><![CDATA[analytical calculation]]></category>
		<category><![CDATA[credit value adjustment]]></category>
		<category><![CDATA[CVA]]></category>
		<category><![CDATA[equivalent martingale measure]]></category>
		<category><![CDATA[expected exposure]]></category>
		<category><![CDATA[interest rate swap]]></category>

		<guid isPermaLink="false">http://alluve.blogetery.com/?p=174</guid>
		<description><![CDATA[Let&#8217;s calculate CVA (credit value adjustment) analytically. We will see that analytical CVA calculation is quite complex even for a fairly simple transaction (a vanilla swap). A few shortcuts will help us simplify the calculation. Problem Consider a five-year semi-annual &#8230; <a href="http://alluve.wordpress.com/2010/04/10/cva-calculation-example/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alluve.wordpress.com&amp;blog=22234062&amp;post=174&amp;subd=alluve&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Let&#8217;s calculate CVA (credit value adjustment) analytically. We will see that analytical CVA calculation is quite complex even for a fairly simple transaction (a vanilla swap). A few shortcuts will help us simplify the calculation.<span id="more-174"></span></p>
<h3>Problem</h3>
<p>Consider a five-year semi-annual vanilla payer swap in Euro: every six months (<em>coupon period</em>) we pay interest over six months at a fixed rate <em>K </em>and receive interest over the same period at Euribor 6-month rate fixed at the start of the period (<em>fixing date</em>). The number of days in the coupon period is calculated using Actual/360 convention, the notional amount is 1. The swap starts today (9 April 2010) and the fixed rate <em>K </em>equals today&#8217;s par swap rate, so mark-to-market value of the swap is zero now. There is no netting or collateral agreement for this trade. For simplicity, we ignore all other details (for instance, the fact that Euribor actually fixes 2 days before the start of the coupon period, or that the coupon payment is rolled over if it falls on a weekend).  We want to calculate the credit value adjustment (CVA) for this swap. By definition, CVA is the difference between the risk-free value of the trade and its value that takes into account the possibility of the counterparty&#8217;s default [1].</p>
<h3>Inputs</h3>
<p>We have:</p>
<ol>
<li>Discount curve <em>P(t) </em>for Euro. <em>P(t)</em> is today&#8217;s price of a zero-coupon riskless bond that pays 1 euro at time <em>t</em>.</li>
<li>Implied volatility cubes <em>C(t, &tau;, k)</em> and <em>S(</em><em>t, Ï„, k</em><em>)</em> for Euro. <em>S(</em><em>t, &tau;, k</em><em>)</em><em> </em>is the swap rate volatility implied by the price of a swaption with tenor <em>Ï„</em>, strike <em>k</em> and expiry date <em>t</em>. <em>C(t, Ï„, k) </em>is the interest rate volatility implied by a caplet with tenor <em>&tau;</em>, strike <em>k</em> and expiry date <em>t</em>.</li>
<li>Recovery rate <em>R</em>. If the counterparty defaults, we expect to recover <em>E*R</em>, where <em>E</em> is our exposure to the counterparty at the moment of default. In other words, our losses will be <em>(1-R)*E</em>.</li>
<li>Probability <em>PD(t) </em>of the counterparty&#8217;s default. <em>PD(t) </em>is the probability that the counterparty defaults between now and time <em>t, </em>as viewed by the market (for instance, derived from CDS prices as shown in [2]).<em> </em></li>
</ol>
<h3>Calculation</h3>
<p>Assuming independence between exposure and counterparty&#8217;s credit quality, CVA is given (see [1]) by the formula:</p>
<p><img class="alignnone size-full wp-image-209" style="border:none;" src="http://alluve.files.wordpress.com/2010/04/cva12.gif?w=640" alt="cva"   /></p>
<p>where <img class="alignnone size-full wp-image-176" style="border:none;" src="http://alluve.files.wordpress.com/2010/04/t1.gif?w=640" alt="T"   /> is the end date of the trade and <img class="alignnone size-full wp-image-177" style="border:none;" src="http://alluve.files.wordpress.com/2010/04/eet1.gif?w=640" alt="EEt"   /> is the discounted expected exposure computed under an equivalent martingale measure (e.g. risk-neutral measure).</p>
<p>Recovery rate R and default probability PD are given, so we only need to calculate the expected exposure <img class="alignnone size-full wp-image-177" style="border:none;" src="http://alluve.files.wordpress.com/2010/04/eet1.gif?w=640" alt="EEt"   />.</p>
<p>We recall that the exposure at time <em>t</em> is the maximum of the trade&#8217;s mark-to-market value (<em>MtM</em>) and zero:</p>
<p><img class="alignnone size-full wp-image-178" style="border:none;" src="http://alluve.files.wordpress.com/2010/04/eismaxmtm01.gif?w=640" alt="EismaxMtM0"   /></p>
<p>Consider a contract that gives its holder the right, but no obligation, to enter the swap at time <em>t</em>. Essentially it is an option to acquire the swap at no cost at time <em>t</em>. This option is equivalent to receiving max(<em>MtM(t),0</em>) at time <em>t</em>. Therefore, its value today is the discounted expectation of max(<em>MtM(t),0</em>) calculated under an equivalent martingale measure, which is the definition of <img style="border:none;" src="http://alluve.files.wordpress.com/2010/04/eet1.gif?w=49&#038;h=17" alt="EEt" width="49" height="17" />. Thus,</p>
<p><strong><em>the discounted expected exposure on a trade at time </em>t<em> equals the value of the option to acquire the trade at no cost at time </em>t</strong>.</p>
<p>Now let us fix time <em><img class="alignnone size-full wp-image-189" style="border:none;" src="http://alluve.files.wordpress.com/2010/04/tprime1.gif?w=640" alt="tprime"   /></em> in the future and calculate today&#8217;s value of the option to acquire the swap at <em><em><img style="border:none;" src="http://alluve.files.wordpress.com/2010/04/tprime1.gif?w=8&#038;h=13" alt="tprime" width="8" height="13" /></em></em>. The MtM of the swap is defined by the value of the outstanding cashflows. If the swap&#8217;s coupon dates are <img class="alignnone size-full wp-image-186" style="border:none;" src="http://alluve.files.wordpress.com/2010/04/t1-tn1.gif?w=640" alt="t1-tn"   /> and <em><img class="alignnone size-full wp-image-187" style="border:none;" src="http://alluve.files.wordpress.com/2010/04/ti-1lttprime1.gif?w=640" alt="ti-1lttprime"   /> </em>for some i, then at <em><img style="border:none;" src="http://alluve.files.wordpress.com/2010/04/tprime1.gif?w=8&#038;h=13" alt="tprime" width="8" height="13" /></em> one already knows the cashflow that is due at <img class="alignnone size-full wp-image-188" style="border:none;" src="http://alluve.files.wordpress.com/2010/04/t_i1.gif?w=640" alt="t_i"   />. Indeed, the floating rate was fixed at <img class="alignnone size-full wp-image-190" style="border:none;" src="http://alluve.files.wordpress.com/2010/04/t_i-11.gif?w=640" alt="t_i-1"   />, so it is known at <em><img style="border:none;" src="http://alluve.files.wordpress.com/2010/04/tprime1.gif?w=8&#038;h=13" alt="tprime" width="8" height="13" />. <span style="font-style:normal;">Remaining cashflows are not known yet, but they can be priced as a swap starting at <img style="border:none;" src="http://alluve.files.wordpress.com/2010/04/t_i1.gif?w=9&#038;h=13" alt="t_i" width="9" height="13" /> and ending at <img style="border:none;" src="http://alluve.files.wordpress.com/2010/04/t_n1.gif?w=12&#038;h=13" alt="t_n" width="12" height="13" />. We see that the payoff of the option in question depends on:</span></em></p>
<ul>
<li>Euribor fixing at <img style="border:none;" src="http://alluve.files.wordpress.com/2010/04/t_i-11.gif?w=24&#038;h=13" alt="t_i-1" width="24" height="13" /></li>
<li>Forward swap rate at <em><img style="border:none;" src="http://alluve.files.wordpress.com/2010/04/tprime1.gif?w=8&#038;h=13" alt="tprime" width="8" height="13" /></em></li>
</ul>
<p>To avoid having to price a path-dependent derivative, we replace the option to enter the swap at <img style="border:none;" src="http://alluve.files.wordpress.com/2010/04/tprime1.gif?w=8&#038;h=13" alt="tprime" width="8" height="13" /> with the sum of two options: a cap starting at <img style="border:none;" src="http://alluve.files.wordpress.com/2010/04/t_i-11.gif?w=24&#038;h=13" alt="t_i-1" width="24" height="13" /> and ending at <img style="border:none;" src="http://alluve.files.wordpress.com/2010/04/t_i1.gif?w=9&#038;h=13" alt="t_i" width="9" height="13" /> and a swaption starting at <img style="border:none;" src="http://alluve.files.wordpress.com/2010/04/t_i1.gif?w=9&#038;h=13" alt="t_i" width="9" height="13" /> and ending at <img style="border:none;" src="http://alluve.files.wordpress.com/2010/04/t_n1.gif?w=12&#038;h=13" alt="t_n" width="12" height="13" />. It is easy to see that the sum of the payoffs of the cap and the swaption is greater or equal to the payoff of the original option, so the sum of the values of the cap and the swaption give us a conservative estimate of the expected exposure.</p>
<p>We start with pricing a cap starting atÂ <img style="border:none;" src="http://alluve.files.wordpress.com/2010/04/t_i-11.gif?w=24&#038;h=13" alt="t_i-1" width="24" height="13" /> and ending atÂ <img style="border:none;" src="http://alluve.files.wordpress.com/2010/04/t_i1.gif?w=9&#038;h=13" alt="t_i" width="9" height="13" />. Its underlying rate is Euribor 6-month and strike is <em>K</em>. As shown in [3], we can use Black&#8217;s formula to price the cap. We take implied volatility</p>
<p><img class="alignnone size-full wp-image-196" style="border:none;" src="http://alluve.files.wordpress.com/2010/04/v_is_c1.gif?w=640" alt="v_is_C"   />,</p>
<p>calculate the forward rate</p>
<p><img class="alignnone size-full wp-image-197" style="border:none;" src="http://alluve.files.wordpress.com/2010/04/forward-rate1.gif?w=640" alt="forward-rate"   /></p>
<p>and use Black&#8217;s formula to get the cap value</p>
<p><img class="alignnone size-full wp-image-200" style="border:none;" src="http://alluve.files.wordpress.com/2010/04/vc11.gif?w=640" alt="Vc"   /></p>
<p>Next, we price the swaption part in a similar way, again taken from [3]. The implied volatility is</p>
<p><img class="alignnone size-full wp-image-201" style="border:none;" src="http://alluve.files.wordpress.com/2010/04/v_is_s1.gif?w=640" alt="v_is_S"   /></p>
<p>the forward swap rate is</p>
<p><img class="alignnone size-full wp-image-203" style="border:none;" src="http://alluve.files.wordpress.com/2010/04/forward-swap-rate1.gif?w=640" alt="forward-swap-rate"   /></p>
<p>and the swaption price is</p>
<p><img class="alignnone size-full wp-image-205" style="border:none;" src="http://alluve.files.wordpress.com/2010/04/vs1.gif?w=640" alt="Vs"   /></p>
<p>The total upper boundary for discounted expected exposure at <img style="border:none;" src="http://alluve.files.wordpress.com/2010/04/tprime1.gif?w=8&#038;h=13" alt="tprime" width="8" height="13" /> is <img class="alignnone size-full wp-image-206" style="border:none;" src="http://alluve.files.wordpress.com/2010/04/vc-plus-vs1.gif?w=640" alt="Vc-plus-Vs"   />.</p>
<p>Defining the quantity</p>
<p><img class="alignnone size-full wp-image-207" style="border:none;" src="http://alluve.files.wordpress.com/2010/04/ee1.gif?w=640" alt="EE"   /></p>
<p>we get the upper boundary for CVA as a sum</p>
<p><img class="alignnone size-full wp-image-211" style="border:none;" src="http://alluve.files.wordpress.com/2010/04/cva-bound1.gif?w=640" alt="cva-bound"   /></p>
<p>We take CVA approximation</p>
<p><img class="alignnone size-full wp-image-222" style="border:none;" src="http://alluve.files.wordpress.com/2010/04/cva-approx1.gif?w=640" alt="cva-approx"   /></p>
<h3>Conclusion</h3>
<p>Although we were able to compute an analytical approximation for CVA, we had to make numerous assumptions to simplify the task. For derivatives more complex than swaps (or even for a portfolio of swaps) analytical computation of CVA would not be feasible. Instead, we will have to compute CVA by Monte Carlo simulation, as outlined in [1]. An example of CVA calculation with Monte Carlo is shown <a href="http://alluve.com/credit_value_adjustment.html">here</a>.</p>
<h3><strong>References</strong></h3>
<p>1. Zhu, Steven H. and Pykhtin, Michael, AÂ Guide to Modeling Counterparty Credit Risk. GARP Risk Review, July/August 2007. Available at SSRN: <a href="http://ssrn.com/abstract=1032522">http://ssrn.com/abstract=1032522</a></p>
<p>2. Beck, Ronald. The CDS market: a primer. Available online: <a href="http://www.dbresearch.com/PROD/DBR_INTERNET_EN-PROD/PROD0000000000185396.pdf">http://www.dbresearch.com/PROD/DBR_INTERNET_EN-PROD/PROD0000000000185396.pdf</a></p>
<p>3. Brigo, Damiano and Mercurio, Fabio, Interest Rate Models &#8211; Theory and Practice: With Smile, Inflation and Credit. Springer; 2nd edition (August 2, 2006).</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alluve.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alluve.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alluve.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alluve.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/alluve.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/alluve.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/alluve.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/alluve.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alluve.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alluve.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alluve.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alluve.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alluve.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alluve.wordpress.com/174/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alluve.wordpress.com&amp;blog=22234062&amp;post=174&amp;subd=alluve&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://alluve.wordpress.com/2010/04/10/cva-calculation-example/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/19c3aa182d6f8977d5b873bc8fe4c3f2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cyrilschmidt</media:title>
		</media:content>

		<media:content url="http://alluve.files.wordpress.com/2010/04/cva12.gif" medium="image">
			<media:title type="html">cva</media:title>
		</media:content>

		<media:content url="http://alluve.files.wordpress.com/2010/04/t1.gif" medium="image">
			<media:title type="html">T</media:title>
		</media:content>

		<media:content url="http://alluve.files.wordpress.com/2010/04/eet1.gif" medium="image">
			<media:title type="html">EEt</media:title>
		</media:content>

		<media:content url="http://alluve.files.wordpress.com/2010/04/eet1.gif" medium="image">
			<media:title type="html">EEt</media:title>
		</media:content>

		<media:content url="http://alluve.files.wordpress.com/2010/04/eismaxmtm01.gif" medium="image">
			<media:title type="html">EismaxMtM0</media:title>
		</media:content>

		<media:content url="http://alluve.files.wordpress.com/2010/04/eet1.gif" medium="image">
			<media:title type="html">EEt</media:title>
		</media:content>

		<media:content url="http://alluve.files.wordpress.com/2010/04/tprime1.gif" medium="image">
			<media:title type="html">tprime</media:title>
		</media:content>

		<media:content url="http://alluve.files.wordpress.com/2010/04/tprime1.gif" medium="image">
			<media:title type="html">tprime</media:title>
		</media:content>

		<media:content url="http://alluve.files.wordpress.com/2010/04/t1-tn1.gif" medium="image">
			<media:title type="html">t1-tn</media:title>
		</media:content>

		<media:content url="http://alluve.files.wordpress.com/2010/04/ti-1lttprime1.gif" medium="image">
			<media:title type="html">ti-1lttprime</media:title>
		</media:content>

		<media:content url="http://alluve.files.wordpress.com/2010/04/tprime1.gif" medium="image">
			<media:title type="html">tprime</media:title>
		</media:content>

		<media:content url="http://alluve.files.wordpress.com/2010/04/t_i1.gif" medium="image">
			<media:title type="html">t_i</media:title>
		</media:content>

		<media:content url="http://alluve.files.wordpress.com/2010/04/t_i-11.gif" medium="image">
			<media:title type="html">t_i-1</media:title>
		</media:content>

		<media:content url="http://alluve.files.wordpress.com/2010/04/tprime1.gif" medium="image">
			<media:title type="html">tprime</media:title>
		</media:content>

		<media:content url="http://alluve.files.wordpress.com/2010/04/t_i1.gif" medium="image">
			<media:title type="html">t_i</media:title>
		</media:content>

		<media:content url="http://alluve.files.wordpress.com/2010/04/t_n1.gif" medium="image">
			<media:title type="html">t_n</media:title>
		</media:content>

		<media:content url="http://alluve.files.wordpress.com/2010/04/t_i-11.gif" medium="image">
			<media:title type="html">t_i-1</media:title>
		</media:content>

		<media:content url="http://alluve.files.wordpress.com/2010/04/tprime1.gif" medium="image">
			<media:title type="html">tprime</media:title>
		</media:content>

		<media:content url="http://alluve.files.wordpress.com/2010/04/tprime1.gif" medium="image">
			<media:title type="html">tprime</media:title>
		</media:content>

		<media:content url="http://alluve.files.wordpress.com/2010/04/t_i-11.gif" medium="image">
			<media:title type="html">t_i-1</media:title>
		</media:content>

		<media:content url="http://alluve.files.wordpress.com/2010/04/t_i1.gif" medium="image">
			<media:title type="html">t_i</media:title>
		</media:content>

		<media:content url="http://alluve.files.wordpress.com/2010/04/t_i1.gif" medium="image">
			<media:title type="html">t_i</media:title>
		</media:content>

		<media:content url="http://alluve.files.wordpress.com/2010/04/t_n1.gif" medium="image">
			<media:title type="html">t_n</media:title>
		</media:content>

		<media:content url="http://alluve.files.wordpress.com/2010/04/t_i-11.gif" medium="image">
			<media:title type="html">t_i-1</media:title>
		</media:content>

		<media:content url="http://alluve.files.wordpress.com/2010/04/t_i1.gif" medium="image">
			<media:title type="html">t_i</media:title>
		</media:content>

		<media:content url="http://alluve.files.wordpress.com/2010/04/v_is_c1.gif" medium="image">
			<media:title type="html">v_is_C</media:title>
		</media:content>

		<media:content url="http://alluve.files.wordpress.com/2010/04/forward-rate1.gif" medium="image">
			<media:title type="html">forward-rate</media:title>
		</media:content>

		<media:content url="http://alluve.files.wordpress.com/2010/04/vc11.gif" medium="image">
			<media:title type="html">Vc</media:title>
		</media:content>

		<media:content url="http://alluve.files.wordpress.com/2010/04/v_is_s1.gif" medium="image">
			<media:title type="html">v_is_S</media:title>
		</media:content>

		<media:content url="http://alluve.files.wordpress.com/2010/04/forward-swap-rate1.gif" medium="image">
			<media:title type="html">forward-swap-rate</media:title>
		</media:content>

		<media:content url="http://alluve.files.wordpress.com/2010/04/vs1.gif" medium="image">
			<media:title type="html">Vs</media:title>
		</media:content>

		<media:content url="http://alluve.files.wordpress.com/2010/04/tprime1.gif" medium="image">
			<media:title type="html">tprime</media:title>
		</media:content>

		<media:content url="http://alluve.files.wordpress.com/2010/04/vc-plus-vs1.gif" medium="image">
			<media:title type="html">Vc-plus-Vs</media:title>
		</media:content>

		<media:content url="http://alluve.files.wordpress.com/2010/04/ee1.gif" medium="image">
			<media:title type="html">EE</media:title>
		</media:content>

		<media:content url="http://alluve.files.wordpress.com/2010/04/cva-bound1.gif" medium="image">
			<media:title type="html">cva-bound</media:title>
		</media:content>

		<media:content url="http://alluve.files.wordpress.com/2010/04/cva-approx1.gif" medium="image">
			<media:title type="html">cva-approx</media:title>
		</media:content>
	</item>
		<item>
		<title>The dreadful 40-60 rule</title>
		<link>http://alluve.wordpress.com/2010/03/03/the-dreadful-40-60-rule/</link>
		<comments>http://alluve.wordpress.com/2010/03/03/the-dreadful-40-60-rule/#comments</comments>
		<pubDate>Tue, 02 Mar 2010 23:40:18 +0000</pubDate>
		<dc:creator>Cyril</dc:creator>
				<category><![CDATA[Finance]]></category>
		<category><![CDATA[40-60 rule]]></category>
		<category><![CDATA[EAD]]></category>
		<category><![CDATA[netted]]></category>
		<category><![CDATA[off balance sheet]]></category>

		<guid isPermaLink="false">http://alluve.blogetery.com/?p=153</guid>
		<description><![CDATA[When we have to calculate exposure at default (EAD) on a particular trade, we seldom have to compute it analytically (e.g. as shown here). More often we just take the current MtM of the trade and add the so-called add-on. &#8230; <a href="http://alluve.wordpress.com/2010/03/03/the-dreadful-40-60-rule/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alluve.wordpress.com&amp;blog=22234062&amp;post=153&amp;subd=alluve&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>When we have to calculate exposure at default (EAD) on a particular trade, we seldom have to compute it analytically (e.g. as shown <a href="http://alluve.blogetery.com/2009/10/03/exposure-at-default-calculation/#more-80">here</a>). More often we just take the current MtM of the trade and add the so-called <em>add-on.</em> The add-on is the notional amount of the trade multiplied by the coefficient specific to the trade type, underlying and remaining maturity:</p>
<p><img class="alignnone size-full wp-image-160" style="border:none;" title="20100302-EAD" src="http://alluve.files.wordpress.com/2010/03/20100302-ead1.gif?w=640" alt="20100302-EAD"   /></p>
<p>where <img class="alignnone size-full wp-image-161" style="border:none;" title="20100302-M" src="http://alluve.files.wordpress.com/2010/03/20100302-m1.gif?w=640" alt="20100302-M"   /> is the current MtM, <img class="alignnone size-full wp-image-162" style="border:none;" title="20100302-A" src="http://alluve.files.wordpress.com/2010/03/20100302-a2.gif?w=640" alt="20100302-A"   /> is the add-on, <img class="alignnone size-full wp-image-163" style="border:none;" title="20100302-N" src="http://alluve.files.wordpress.com/2010/03/20100302-n1.gif?w=640" alt="20100302-N"   /> is the notional amount and <img class="alignnone size-full wp-image-164" style="border:none;" title="20100302-a" src="http://alluve.files.wordpress.com/2010/03/20100302-a3.gif?w=640" alt="20100302-a"   /> is the trade-specific coefficient.</p>
<p>This method works reasonably well for a single trade.</p>
<p>If we have several trades covered by a netting agreement, we have a problem. We cannot just calculate the exposure on a netted portfolio as a sum of exposures per trade: <a href="http://alluve.blogetery.com/2009/11/02/exposures-are-not-additive-case-in-point/">exposures are not additive</a>. One way to tackle this problem is to use the <em>40-60 rule</em>. This rule, however, is so seriously wrong that it becomes alarming how many people use it without thinking of its shortcomings.<span id="more-153"></span></p>
<p>Consider a netted portfolio of n trades with MtMs <img class="alignnone size-full wp-image-156" style="border:none;" title="20100302-MtMs" src="http://alluve.files.wordpress.com/2010/03/20100302-mtms1.gif?w=640" alt="20100302-MtMs"   /> and per-trade add-ons <img class="alignnone size-full wp-image-157" style="border:none;" title="20100302-Addons" src="http://alluve.files.wordpress.com/2010/03/20100302-addons1.gif?w=640" alt="20100302-Addons"   />. The 40-60 rule says that the exposure on the netted portfolio is</p>
<p><img class="alignnone size-full wp-image-155" style="border:none;" title="20100302-rule4060" src="http://alluve.files.wordpress.com/2010/03/20100302-rule40601.gif?w=640" alt="20100302-rule4060"   /></p>
<p>where</p>
<p><img class="alignnone size-full wp-image-158" style="border:none;" title="20100302-NGR" src="http://alluve.files.wordpress.com/2010/03/20100302-ngr1.gif?w=640" alt="20100302-NGR"   /></p>
<p>(if all MtMs are negative, NGR=1).</p>
<p>In other words, NGR (net to gross ratio) is defined as the net replacement cost of the portfolio divided by the sum of the replacement costs for each transaction.</p>
<p>The 40-60 rule for exposure calculation is described in the <a href="http://www.bis.org/publ/bcbs18.pdf?noframes=1">Treatment of potential exposure for off balance sheet items</a> (1995), issued by the Basel Committee on Banking Supervision. The Committee, to my knowledge, does not provide any justification for this rule.</p>
<p>Worse yet, <strong>it is known that the rule is wrong</strong>. Back in 2001, ISDA published theirÂ <a href="http://www.isda.org/c_and_a/docs/BASELRESPONSEII08Board.pdf">Response to the Basel Committee on Banking Supervision&#8217;s Consultation on the New Capital Accord</a>. There they conclude that <em>â€œthe aggregation rule fails to measure the true risk in a portfolioâ€</em> (page 52). To substantiate this claim, they give a simple example (Annex A) showing that the 40-60 rule can grossly over- or underestimate the exposure. In other words, the value given by the 40-60 rule has nothing to do with the real exposure on the netted portfolio.</p>
<p>If this method is so bad, why is it so widely used? I don&#8217;t have a good answer to this question.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alluve.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alluve.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alluve.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alluve.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/alluve.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/alluve.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/alluve.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/alluve.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alluve.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alluve.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alluve.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alluve.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alluve.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alluve.wordpress.com/153/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alluve.wordpress.com&amp;blog=22234062&amp;post=153&amp;subd=alluve&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://alluve.wordpress.com/2010/03/03/the-dreadful-40-60-rule/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/19c3aa182d6f8977d5b873bc8fe4c3f2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cyrilschmidt</media:title>
		</media:content>

		<media:content url="http://alluve.files.wordpress.com/2010/03/20100302-ead1.gif" medium="image">
			<media:title type="html">20100302-EAD</media:title>
		</media:content>

		<media:content url="http://alluve.files.wordpress.com/2010/03/20100302-m1.gif" medium="image">
			<media:title type="html">20100302-M</media:title>
		</media:content>

		<media:content url="http://alluve.files.wordpress.com/2010/03/20100302-a2.gif" medium="image">
			<media:title type="html">20100302-A</media:title>
		</media:content>

		<media:content url="http://alluve.files.wordpress.com/2010/03/20100302-n1.gif" medium="image">
			<media:title type="html">20100302-N</media:title>
		</media:content>

		<media:content url="http://alluve.files.wordpress.com/2010/03/20100302-a3.gif" medium="image">
			<media:title type="html">20100302-a</media:title>
		</media:content>

		<media:content url="http://alluve.files.wordpress.com/2010/03/20100302-mtms1.gif" medium="image">
			<media:title type="html">20100302-MtMs</media:title>
		</media:content>

		<media:content url="http://alluve.files.wordpress.com/2010/03/20100302-addons1.gif" medium="image">
			<media:title type="html">20100302-Addons</media:title>
		</media:content>

		<media:content url="http://alluve.files.wordpress.com/2010/03/20100302-rule40601.gif" medium="image">
			<media:title type="html">20100302-rule4060</media:title>
		</media:content>

		<media:content url="http://alluve.files.wordpress.com/2010/03/20100302-ngr1.gif" medium="image">
			<media:title type="html">20100302-NGR</media:title>
		</media:content>
	</item>
		<item>
		<title>Historical or implied?</title>
		<link>http://alluve.wordpress.com/2009/11/13/historical-or-implied/</link>
		<comments>http://alluve.wordpress.com/2009/11/13/historical-or-implied/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 09:58:16 +0000</pubDate>
		<dc:creator>Cyril</dc:creator>
				<category><![CDATA[Finance]]></category>
		<category><![CDATA[counterparty exposure]]></category>
		<category><![CDATA[credit value adjustment]]></category>
		<category><![CDATA[CVA]]></category>
		<category><![CDATA[EAD]]></category>
		<category><![CDATA[historical volatility]]></category>
		<category><![CDATA[implied volatility]]></category>

		<guid isPermaLink="false">http://alluve.blogetery.com/?p=145</guid>
		<description><![CDATA[To calculate counterparty exposure, we need to calibrate our scenario generator to historical data. However, for CVA calculations, we need scenarios based on implied volatilities of the underlying risk factors. <a href="http://alluve.wordpress.com/2009/11/13/historical-or-implied/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alluve.wordpress.com&amp;blog=22234062&amp;post=145&amp;subd=alluve&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>To calculate <a href="http://alluve.com/counterparty_exposure.html">counterparty exposure</a>, we need to know the volatility of our risk factors (interest rates, stock prices, etc.) in the future. <span id="more-145"></span></p>
<p>How can we forecast the future volatilities? We can either</p>
<ul>
<li>use the volatility implied by options (caps, floors and swaptions for interest rate, FX options for exchange rate)</li>
</ul>
<p>or</p>
<ul>
<li>use historical volatility of the risk factors.</li>
</ul>
<p>Which one will better predict the volatility in the future? The <a href="http://ssrn.com/abstract=298160">analysis by De Jong et al</a>. suggests that the <em>volatility implied by the options is a poor predictor, because it consistently overestimates realised volatility</em>. That means, we have to use historical volatility in exposure calculations. Their results, however, are based on fairly old data; it would be interesting to repeat their experiments with recent time series.</p>
<p>On the other hand, when we <a href="http://alluve.com/credit_value_adjustment.html">calculate CVA</a>, we <em>must</em> use implied volatilities, by <a href="http://ssrn.com/abstract=1032522">definition of CVA</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alluve.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alluve.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alluve.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alluve.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/alluve.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/alluve.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/alluve.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/alluve.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alluve.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alluve.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alluve.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alluve.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alluve.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alluve.wordpress.com/145/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alluve.wordpress.com&amp;blog=22234062&amp;post=145&amp;subd=alluve&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://alluve.wordpress.com/2009/11/13/historical-or-implied/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/19c3aa182d6f8977d5b873bc8fe4c3f2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cyrilschmidt</media:title>
		</media:content>
	</item>
		<item>
		<title>Don&#039;t trust a model</title>
		<link>http://alluve.wordpress.com/2009/11/08/dont-trust-a-model/</link>
		<comments>http://alluve.wordpress.com/2009/11/08/dont-trust-a-model/#comments</comments>
		<pubDate>Sun, 08 Nov 2009 22:25:46 +0000</pubDate>
		<dc:creator>Cyril</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://alluve.blogetery.com/?p=139</guid>
		<description><![CDATA[Financial models are never precise, but it does not make them useless. <a href="http://alluve.wordpress.com/2009/11/08/dont-trust-a-model/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alluve.wordpress.com&amp;blog=22234062&amp;post=139&amp;subd=alluve&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Recently I was asked: &#8220;Are you not afraid of over-reliance on numerical methods in finance?&#8221;</p>
<p>Indeed, if I had to rely on numerical results in finance, I would be afraid.<span id="more-139"></span></p>
<p>Take counterparty risk as an example. There are three popular numerical measures of counterparty risk: exposure at default, loss given default and probability of default. Firstly, it would be wrong to hope that just three numbers fully describe our risk. Secondly, numerical results inevitable depend on the mathematical model that we use. A model is always imprecise, but we seldom know <em>by how much</em> we are off. Thirdly, once we have chosen a model, we have to calibrate it. We can calibrate to market data, to historical data, or some mix of those. In either case, we essentially try to predict the future based on market consensus (i.e. public opinion) or history. Neither is a reliable predictor, as everyone knows.</p>
<p>Does it mean that numerical results are useless? Not at all. For example, correlation is not a perfect measure of statistical dependency; still, it is useful in many cases. Likewise, it is useful to know our potential exposure on each counterparty. After all, we need to know how much cash we need to reserve to cover our losses in case of default, and potential exposure gives us a number. We are not sure that this number is exact (in fact, we are sure it isn&#8217;t), but at least we have a starting point.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alluve.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alluve.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alluve.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alluve.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/alluve.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/alluve.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/alluve.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/alluve.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alluve.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alluve.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alluve.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alluve.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alluve.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alluve.wordpress.com/139/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alluve.wordpress.com&amp;blog=22234062&amp;post=139&amp;subd=alluve&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://alluve.wordpress.com/2009/11/08/dont-trust-a-model/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/19c3aa182d6f8977d5b873bc8fe4c3f2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cyrilschmidt</media:title>
		</media:content>
	</item>
		<item>
		<title>Exposures are not additive: case in point</title>
		<link>http://alluve.wordpress.com/2009/11/02/exposures-are-not-additive-case-in-point/</link>
		<comments>http://alluve.wordpress.com/2009/11/02/exposures-are-not-additive-case-in-point/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 00:43:16 +0000</pubDate>
		<dc:creator>Cyril</dc:creator>
				<category><![CDATA[Finance]]></category>
		<category><![CDATA[counterparty exposure]]></category>
		<category><![CDATA[EAD]]></category>
		<category><![CDATA[Monte Carlo]]></category>

		<guid isPermaLink="false">http://alluve.blogetery.com/?p=123</guid>
		<description><![CDATA[Potential exposure is not additive: the total exposure on two trades can be very different than the sum of potential exposures on each trade. <a href="http://alluve.wordpress.com/2009/11/02/exposures-are-not-additive-case-in-point/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alluve.wordpress.com&amp;blog=22234062&amp;post=123&amp;subd=alluve&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If we have a portfolio of vanilla trades (say, swaps), we can calculate EAD on each trade individually (<a href="http://alluve.blogetery.com/2009/10/03/exposure-at-default-calculation/#more-80">an example is discussed here</a>). Naturally, it is tempting to say that the exposure on the portfolio is the sum of the exposures on individual trades. That&#8217;s very wrong because <em>exposures are not additive.</em><span id="more-123"></span></p>
<p>Here is an example. Suppose we have a netting agreement with a certain counterparty, and at the moment we have a single trade with them: a semi-annual receiver swap of 6 month EURIBOR versus 4.08% fixed from 19 June 2009 to 19 June 2015. Below is the potential exposure profile of the swap at 95% confidence.</p>
<p><img class="alignnone size-full wp-image-128" src="http://alluve.files.wordpress.com/2009/11/20091102-pfe-old-swap1.png?w=640" alt="20091102-pfe-old-swap"   /></p>
<p>We see that the peak of the potential exposure profile is around 38. We want to add another trade to this portfolio: a semi-annual payer swap of 6 month EURIBOR versus 4.5% fixed from 19 June 2011 to 19 June 2017. Firstly, let us see the exposure profile of the new swap alone:</p>
<p><img class="alignnone size-full wp-image-129" src="http://alluve.files.wordpress.com/2009/11/20091102-pfe-new-swap11.png?w=640" alt="20091102-pfe-new-swap"   /></p>
<p>The peak exposure is around 34.</p>
<p>If we simply add the two peak exposures, we get 38+34 = 72. However, if we calculate exposure profile of the two netted swaps with a Monte Carlo simulation, we will see that the total exposure of the netted portfolio is much lower:</p>
<p><img class="alignnone size-full wp-image-130" src="http://alluve.files.wordpress.com/2009/11/20091102-pfe-total1.png?w=640" alt="20091102-pfe-total"   /></p>
<p>The peak is around 14, which is lower than each of the two swaps separately. Indeed, under the netting agreement the swaps partially compensate each other, so adding the second swap actually lowers our exposure to the counterparty.</p>
<p>Why would we have two trades that cancel each other out? It often happens in practice. Say, the receiver swap was done a while ago, and it still has a few years to go. Right now a trader needs a payer swap, so this swap is added to the portfolio.</p>
<p>To summarise: we have seen that <em>the sum of exposures on individual trades can be very far from the total exposure on these trades covered by a netting agreement</em>. The exposure profiles above are screenshots of <a href="http://alluve.com/products.html">MarketSimulator</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alluve.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alluve.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alluve.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alluve.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/alluve.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/alluve.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/alluve.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/alluve.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alluve.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alluve.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alluve.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alluve.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alluve.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alluve.wordpress.com/123/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alluve.wordpress.com&amp;blog=22234062&amp;post=123&amp;subd=alluve&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://alluve.wordpress.com/2009/11/02/exposures-are-not-additive-case-in-point/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/19c3aa182d6f8977d5b873bc8fe4c3f2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cyrilschmidt</media:title>
		</media:content>

		<media:content url="http://alluve.files.wordpress.com/2009/11/20091102-pfe-old-swap1.png" medium="image">
			<media:title type="html">20091102-pfe-old-swap</media:title>
		</media:content>

		<media:content url="http://alluve.files.wordpress.com/2009/11/20091102-pfe-new-swap11.png" medium="image">
			<media:title type="html">20091102-pfe-new-swap</media:title>
		</media:content>

		<media:content url="http://alluve.files.wordpress.com/2009/11/20091102-pfe-total1.png" medium="image">
			<media:title type="html">20091102-pfe-total</media:title>
		</media:content>
	</item>
		<item>
		<title>Counterparty risk calculation guide</title>
		<link>http://alluve.wordpress.com/2009/10/24/couterparty-risk-calculation-guide/</link>
		<comments>http://alluve.wordpress.com/2009/10/24/couterparty-risk-calculation-guide/#comments</comments>
		<pubDate>Sat, 24 Oct 2009 16:32:23 +0000</pubDate>
		<dc:creator>Cyril</dc:creator>
				<category><![CDATA[Finance]]></category>

		<guid isPermaLink="false">http://alluve.blogetery.com/?p=117</guid>
		<description><![CDATA[This paper by S.  Zhu and M. Pykhtin provides a blueprint for counterparty risk modelling framework.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alluve.wordpress.com&amp;blog=22234062&amp;post=117&amp;subd=alluve&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://ssrn.com/abstract=1032522">This paper by S.  Zhu and M. Pykhtin</a> provides a blueprint for counterparty risk modelling framework.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alluve.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alluve.wordpress.com/117/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alluve.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alluve.wordpress.com/117/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/alluve.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/alluve.wordpress.com/117/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/alluve.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/alluve.wordpress.com/117/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alluve.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alluve.wordpress.com/117/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alluve.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alluve.wordpress.com/117/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alluve.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alluve.wordpress.com/117/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alluve.wordpress.com&amp;blog=22234062&amp;post=117&amp;subd=alluve&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://alluve.wordpress.com/2009/10/24/couterparty-risk-calculation-guide/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/19c3aa182d6f8977d5b873bc8fe4c3f2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cyrilschmidt</media:title>
		</media:content>
	</item>
	</channel>
</rss>
