{"categories":["Credit"],"contentHtml":"<h2>Credit Default Swaps</h2>\n<p>We discussed the mechanics of CDS a bit, and then started on the valuation. So let’s discuss the valuation in more details.</p>\n<p>We have two legs. The premium leg is the buyer, who buys protection against default for the underlying company. They have to make scheduled payments throughout the life of the CDS. So that if there is a credit event, there is a payment on the premium which has accrued. If there is a default in this period, you still have to pay the accrual.</p>\n<p>In case of default, the protection leg will purchase the underlying bond at face value. That’s the other leg.</p>\n<h2>Valuation of the Premium Leg (O’Kane 6.5)</h2>\n<p>So we want to determine the spread of the CDS. That represents the percentage of the principal that we have to pay to purchase the CDS.</p>\n<p>Let’s review a little bit what we did last time.</p>\n<p>We defined the present value of $1 to be paid at t_m which cancels with zero recovery on default before t_m</p>\n<p>This is a <em>risky</em> ZCB as opposed to riskless.</p>\n<p>$$\n\\tilde{P}(t, t_n) = \\mathbb{E}[e^{-\\int_t^{t_n} r(s) ds} \\cdot \\mathbb{I}_{\\tau &gt; t_n}]\n$$</p>\n<p>Furthermore, if you assume independence between short rate process and the time of default τ, which is a reasonable assumption,</p>\n<p>then the expectation can be separated as a product because the joint expectation can be written in such a way.</p>\n<p>We can take the survival probability:</p>\n<p>$$\n\\tilde{P}(t, t_n) = P(t, t_n) Q(t, t_n)\n$$</p>\n<p>Then you can write the present value of premium leg as</p>\n<p>$$\nS_0 \\sum_{n=1}^N \\Delta (t_{n-1}, t_n) Q(t, t_n) P(t, t_n)\n$$</p>\n<p>where Q(t, T) is the survival probability at time t of the reference entity to T.</p>\n<p>The Δ(t, T) is the day count fraction between T and t.</p>\n<p>This is applied to some principal.</p>\n<p>This is the expected payment.</p>\n<h2>Premium Accrual</h2>\n<p>Another component of the premium leg is the premium accrued.</p>\n<p>The amount of premium accrued at default is <em>contingent</em>. The price today of $1 paid at default which occurs at \\[s, s+ds\\] is given by</p>\n<p>$$\nP(t, s)[-dQ(t, s)]\n$$</p>\n<p>I want to calculate the accrued premium for an infinitesimal amount, then integrate, because we don’t actually know when the default is going to happen.</p>\n<p>So what is such premium accrued?</p>\n<p>This is the expected such contingent payment, so it is equivalent to the expected default in that particular interval. So we’re going to get an amount with some probability of default, then we multiply the probability of default in that small interval. So that survival probability is decreasing, an infinitesimal change in Q will correspond to the probability of default between t and s.</p>\n<p>Then we discount such contingent payment back to time t.</p>\n<p>So then you start with CDS Spread S_0, from the time of previous payment to time s (default).</p>\n<p>That is the amount accrued on expectation.</p>\n<p>$$\n\\text{Accrual} = S_0 \\Delta (t_{n-1}, s)\n$$</p>\n<p>Then the expected present value of premium accrued due to a default in \\[s, s + ds\\] in the nth premium period is…</p>\n<p>The amount is</p>\n<p>$$\n\\text{Accrual} P(t, s) [-dQ(t, s)]\n$$</p>\n<p>Note that default can happen any time during the coupon period. So the value of accrual is integrated.</p>\n<p>$$\nS_0 \\int_{t_{n-1}}^{t_n} \\Delta(t_{n-1}, s) P(t, s)[-dQ(t, s)]\n$$</p>\n<p>This is a quantity such that expected accrual in case of default between t_n-1 and s. You can sum this over the life of the CDS. Then you will have a sum of such integrals, over each payment period.</p>\n<p><strong>This is the exact formula:</strong></p>\n<p>Sum over all the premium payment periods to calculate <strong>the expected present value of the premium accrued</strong></p>\n<p>$$\nPA = S_0 \\sum_{n=1}^N \\int_{t_{n-1}}^{t_n} \\Delta(t_{n-1}, s) P(t, s) [-dQ(t, s)]\n$$</p>\n<p><strong>The present value of the premium leg</strong> therefore becomes</p>\n<p>$$\nPV_{\\text{premium}} = S_0 \\left[\\sum_{n=1}^N \\Delta(t_{n-1}, t_n) P(t, t_n) Q(t, t_n) + PA / S_0\\right]\n$$</p>\n<h2>Approximation of Protection Leg</h2>\n<p>This is an exact expression. But there’s a problem with integration. You need the survival probability at each point.</p>\n<p>You can do an approximation,</p>\n<p>by valuing the function at the end of the interval and taking an average.</p>\n<p>Important assumption: the payment happens at the end, when default occurs.</p>\n<p>$$\nPA/S_0 \\approx \\frac{1}{2} \\Delta(t_{n-1}, t_n) P(t, t_n) [Q(t, t_{n-1}) - Q(t, t_n)]\n$$</p>\n<p>Basically, the change in survival probability represents the probability of default in that interval.</p>\n<p>Sometimes, it’s difficult to have information about the survival probability. If we look at bonds, we make the assumption that every year has the same probability of default. In terms of the formula, it’s exact, but the approximation is more useful.</p>\n<p>Here we assume that on average, default will happen halfway.</p>\n<h2>Valuation of Protection Leg (O’Kane 6.6)</h2>\n<p>The protection leg is a contingent payment of par minus recovery on the face value of credit following a credit event.</p>\n<p>We have an uncertain quantity which is paid at default.</p>\n<p>We have an assumption that we have a certain recovery rate, but we don’t know exactly how much can be recovered (depends on the restructuring process).</p>\n<p>The price of a security which pays an uncertain amount (φ(τ)) at time of default:</p>\n<p>$$\n\\tilde{D}(t, T) = \\mathbb{E}[e^{-\\int_t^{\\tau} r(s) ds} \\cdot \\phi(\\tau) \\cdot \\mathbb{I}_{\\tau \\leq T} ]\n$$</p>\n<p>This is a more general expression, but in general in the problems, we assume</p>\n<p>$$\n\\mathbb{E}[\\phi(\\tau)] = 1 - R\n$$</p>\n<p>If you recover nothing, the payment is the full principal. So we assume this is a fixed number, depending on the type of loan. This is independent of interest rates and default time.</p>\n<p>Then the present value of the protection leg is..</p>\n<p>$$\nPV_{\\text{protection}} = (1 - R) \\int_t^T P(t, s) [-dQ(t, s)]\n$$</p>\n<p>You have one payment but you don’t know when you’ll get it. So you take the expectation.</p>\n<p>The infinitesimal here is the probability of default for each infinitesimal, then discount it.</p>\n<p>This is the general formula, which is complex to use.</p>\n<h2>Approximation of Protection Leg</h2>\n<p>One simpler approach is to discretize the time between t and T into k intervals:\n$$\n\\epsilon = \\frac{T - t}{k}\n$$</p>\n<p>Then we can turn this integral into a sum over discrete intervals.</p>\n<p>$$\nPV_{\\text{protection}} = (1 - R) \\sum_{k=1}^K P(t, k\\epsilon) [Q(t, (k-1)\\epsilon) - Q(t, k\\epsilon)]\n$$</p>\n<p>Another approximation:</p>\n<p>We know that P(t, T) is a monotonically decreasing function of T, so we can define bounds</p>\n<p>lower:</p>\n<p>$$\nL = (1 - R) \\sum_{k=1}^K P(t, t_k) [Q(t, t_{k-1}) - Q(t, t_k)]\n$$</p>\n<p>Basically, here we have a difference in survival probabilities, where one is discounted. The problem is that the cash flows have to be discounted, but right now it’s discounted at the end of the interval of kε. The discount depends on when the default happens, which can be at any time during the interval.</p>\n<p>$$\nU = (1 - R) \\sum_{k=1}^K P(t, t_k) [Q(t, t_{k-1}) - Q(t, t_k)]\n$$</p>\n<p>The lower bound is for large value of T, upper bound is for smaller value</p>\n<p>Then we take an average to get:</p>\n<p>$$\nPV_{\\text{protection}} \\approx \\frac{1}{2} (L + U)\n$$</p>\n<p>And then for a fair value of a CDS, based on no-arbitrage argument</p>\n<p>$$\nPV_{\\text{premium}} = PV_{\\text{protection}}\n$$</p>\n<p><strong>SPREAD FORMULA:</strong></p>\n<p>Then we can finally solve for the spread \\(S_0\\)</p>\n<p>$$\nS_0 = \\frac{(1-R) \\sum_{k=1}^K [P(t, t_k) + P(t, t_{k-1})] [Q(t, t_{k-1}) - Q(t, t_k)]}{\\sum_{n=1}^N \\Delta(t_{n-1}, t_n) P(t, t_n)[Q(t, t_{n-1}) + Q(t, t_n)]}\n$$</p>\n<p>Therefore, we need the full discount curve, the survival curve, this information.</p>\n<h2>Example</h2>\n<p>S = spread</p>\n<p>We assume that payment occurs at the end of the year. We have the survival probability that the name survives, then we have an expected payment which is discounted to the present. Let’s do one calculation:</p>\n<p>If we have a static probability of default, probability of default in second period is Q*(1-Q), probability of survival in second period is Q^2.</p>\n<p>Expected payment in 3rd year is Q^3 * S.</p>\n<p>PV of expected payment is Q^3 * S * e^{-r * T}</p>\n<p>The PV of accrual payment in event of default:</p>\n<p>The more general formula is on the average of default happens halfway, so our time of default is 1.5, 2.5, etc.</p>\n<p>If during third year, the probability of default (from table) is 0.0192.</p>\n<p>Then the coupon is halved, and the accrual payment is 0.5S. If it’s every month, then you divide that by 12 as well.</p>\n<p>Expected accrual payment at t = 2.5 iii</p>\n<p>With the CDS rate on the market, you can make an inference about the implied probability of default.</p>\n<p>If mid market spread for a 5 year CDS is 100bps per year, then the conditional default probability is 1.61%.</p>\n<h2>Implied Hazard Rates from CDS Spreads</h2>\n<p>For the problem of estimation of default probabilities and corresponding hazard rates, we will used the so-called <strong>JPMorgan model</strong>. This is the credit curve, the “term structure” of probabilities of default.</p>\n<h2>Review of Hazard Rates</h2>\n<p>τ = time to default</p>\n<p>CDF of probability of default is F(t) = P(τ ≤ t)</p>\n<p>For the purpose of this, we will take survival probabilities, which are 1 - F(t)</p>\n<p>The hazard rate is either h or λ by convention:</p>\n<p>The survival probability is equal to the</p>\n<p>$$\nS(t) = e^{-\\int_0^t h(u) du}\n$$</p>\n<p>If the hazard rate is constant, you have e-ht function. But this doesn’t have to be constant. Typically, we will assume it’s piecewise constant, depends on how we estimate it.</p>\n<p>If S(t) is differentiable, then</p>\n<p>$$\nh(t) = -\\frac{d}{dt} \\ln S(t) = \\frac{F'(t)}{1-F(t)}\n$$</p>\n<p>This is the relationship between the hazard rate, survival, and default probabilities.</p>\n<p>If you have a risky ZCB with zero recovery that pays $1 at T:</p>\n<p>$$\n\\tilde{P}(0, T) = \\mathbb{E}[P(0, T) * \\mathbb{I}_{\\tau &gt; T}]\n$$</p>\n<p>where</p>\n<p>$$\nP(0, T) = e^{-\\int_0^T r(u) du}\n$$</p>\n<p>Then,</p>\n<p>survival probabilities are</p>\n<p>$$\nS(t) = \\frac{\\tilde{P}(0, T)}{P(0, T)}\n$$</p>\n<p>We can also note that the risky ZCB value must be less than the riskless ZCB..</p>\n<p>average of hazard rates will be time 0</p>\n<p>Sometimes it’s easier to calculate an average hazard rate for some maturity, then afterwards compute the piecewise constant hazard rate.</p>\n<p>We can determine h_i from successive survival probabilities.</p>\n<p>We have the survival probability, but to express in terms of hazard rates.</p>\n<p>If you assume hazard rates are known</p>","contentMarkdown":"## Credit Default Swaps\n\nWe discussed the mechanics of CDS a bit, and then started on the valuation. So let’s discuss the valuation in more details.\n\n\n\nWe have two legs. The premium leg is the buyer, who buys protection against default for the underlying company. They have to make scheduled payments throughout the life of the CDS. So that if there is a credit event, there is a payment on the premium which has accrued. If there is a default in this period, you still have to pay the accrual.\n\n\n\nIn case of default, the protection leg will purchase the underlying bond at face value. That’s the other leg.\n\n## Valuation of the Premium Leg (O’Kane 6.5)\n\nSo we want to determine the spread of the CDS. That represents the percentage of the principal that we have to pay to purchase the CDS.\n\n\n\nLet’s review a little bit what we did last time.\n\n\n\nWe defined the present value of $1 to be paid at t\\_m which cancels with zero recovery on default before t\\_m\n\nThis is a *risky* ZCB as opposed to riskless.\n\n$$\n\\\\tilde{P}(t, t_n) = \\\\mathbb{E}[e^{-\\\\int_t^{t_n} r(s) ds} \\\\cdot \\\\mathbb{I}_{\\\\tau > t_n}]\n$$\n\nFurthermore, if you assume independence between short rate process and the time of default τ, which is a reasonable assumption,\n\nthen the expectation can be separated as a product because the joint expectation can be written in such a way.\n\nWe can take the survival probability:\n\n$$\n\\\\tilde{P}(t, t_n) = P(t, t_n) Q(t, t_n)\n$$\n\nThen you can write the present value of premium leg as\n\n$$\nS_0 \\\\sum_{n=1}^N \\\\Delta (t_{n-1}, t_n) Q(t, t_n) P(t, t_n)\n$$\n\nwhere Q(t, T) is the survival probability at time t of the reference entity to T.\n\nThe Δ(t, T) is the day count fraction between T and t.\n\nThis is applied to some principal.\n\n\n\nThis is the expected payment.\n\n## Premium Accrual\n\nAnother component of the premium leg is the premium accrued.\n\nThe amount of premium accrued at default is *contingent*. The price today of $1 paid at default which occurs at \\[s, s+ds\\] is given by\n\n$$\nP(t, s)[-dQ(t, s)]\n$$\n\nI want to calculate the accrued premium for an infinitesimal amount, then integrate, because we don’t actually know when the default is going to happen.\n\nSo what is such premium accrued?\n\nThis is the expected such contingent payment, so it is equivalent to the expected default in that particular interval. So we’re going to get an amount with some probability of default, then we multiply the probability of default in that small interval. So that survival probability is decreasing, an infinitesimal change in Q will correspond to the probability of default between t and s.\n\nThen we discount such contingent payment back to time t.\n\n\n\nSo then you start with CDS Spread S\\_0, from the time of previous payment to time s (default).\n\nThat is the amount accrued on expectation.\n\n$$\n\\\\text{Accrual} = S_0 \\\\Delta (t_{n-1}, s)\n$$\n\nThen the expected present value of premium accrued due to a default in \\[s, s \\+ ds\\] in the nth premium period is…\n\nThe amount is\n\n$$\n\\\\text{Accrual} P(t, s) [-dQ(t, s)]\n$$\n\n\n\nNote that default can happen any time during the coupon period. So the value of accrual is integrated.\n\n$$\nS_0 \\\\int_{t_{n-1}}^{t_n} \\\\Delta(t_{n-1}, s) P(t, s)[-dQ(t, s)]\n$$\n\nThis is a quantity such that expected accrual in case of default between t\\_n-1 and s. You can sum this over the life of the CDS. Then you will have a sum of such integrals, over each payment period.\n\n\n\n**This is the exact formula:**\n\nSum over all the premium payment periods to calculate **the expected present value of the premium accrued**\n\n$$\nPA = S_0 \\\\sum_{n=1}^N \\\\int_{t_{n-1}}^{t_n} \\\\Delta(t_{n-1}, s) P(t, s) [-dQ(t, s)]\n$$\n\n\n\n**The present value of the premium leg** therefore becomes\n\n$$\nPV_{\\\\text{premium}} = S_0 \\\\left[\\\\sum_{n=1}^N \\\\Delta(t_{n-1}, t_n) P(t, t_n) Q(t, t_n) + PA / S_0\\\\right]\n$$\n\n\n\n## Approximation of Protection Leg\n\nThis is an exact expression. But there’s a problem with integration. You need the survival probability at each point.\n\nYou can do an approximation,\n\nby valuing the function at the end of the interval and taking an average.\n\nImportant assumption: the payment happens at the end, when default occurs.\n\n$$\nPA/S_0 \\\\approx \\\\frac{1}{2} \\\\Delta(t_{n-1}, t_n) P(t, t_n) [Q(t, t_{n-1}) - Q(t, t_n)]\n$$\n\nBasically, the change in survival probability represents the probability of default in that interval.\n\nSometimes, it’s difficult to have information about the survival probability. If we look at bonds, we make the assumption that every year has the same probability of default. In terms of the formula, it’s exact, but the approximation is more useful.\n\nHere we assume that on average, default will happen halfway.\n\n\n\n## Valuation of Protection Leg (O’Kane 6.6)\n\nThe protection leg is a contingent payment of par minus recovery on the face value of credit following a credit event.\n\n\n\nWe have an uncertain quantity which is paid at default.\n\nWe have an assumption that we have a certain recovery rate, but we don’t know exactly how much can be recovered (depends on the restructuring process).\n\n\n\nThe price of a security which pays an uncertain amount (φ(τ)) at time of default:\n\n$$\n\\\\tilde{D}(t, T) = \\\\mathbb{E}[e^{-\\\\int_t^{\\\\tau} r(s) ds} \\\\cdot \\\\phi(\\\\tau) \\\\cdot \\\\mathbb{I}_{\\\\tau \\\\leq T} ]\n$$\n\nThis is a more general expression, but in general in the problems, we assume\n\n$$\n\\\\mathbb{E}[\\\\phi(\\\\tau)] = 1 - R\n$$\n\nIf you recover nothing, the payment is the full principal. So we assume this is a fixed number, depending on the type of loan. This is independent of interest rates and default time.\n\nThen the present value of the protection leg is..\n\n$$\nPV_{\\\\text{protection}} = (1 - R) \\\\int_t^T P(t, s) [-dQ(t, s)]\n$$\n\nYou have one payment but you don’t know when you’ll get it. So you take the expectation.\n\nThe infinitesimal here is the probability of default for each infinitesimal, then discount it.\n\nThis is the general formula, which is complex to use.\n\n\n\n## Approximation of Protection Leg\n\nOne simpler approach is to discretize the time between t and T into k intervals:\n$$\n\\\\epsilon = \\\\frac{T - t}{k}\n$$\n\nThen we can turn this integral into a sum over discrete intervals.\n\n$$\nPV_{\\\\text{protection}} = (1 - R) \\\\sum_{k=1}^K P(t, k\\\\epsilon) [Q(t, (k-1)\\\\epsilon) - Q(t, k\\\\epsilon)]\n$$\n\n\n\nAnother approximation:\n\nWe know that P(t, T) is a monotonically decreasing function of T, so we can define bounds\n\nlower:\n\n$$\nL = (1 - R) \\\\sum_{k=1}^K P(t, t_k) [Q(t, t_{k-1}) - Q(t, t_k)]\n$$\n\nBasically, here we have a difference in survival probabilities, where one is discounted. The problem is that the cash flows have to be discounted, but right now it’s discounted at the end of the interval of kε. The discount depends on when the default happens, which can be at any time during the interval.\n\n$$\nU = (1 - R) \\\\sum_{k=1}^K P(t, t_k) [Q(t, t_{k-1}) - Q(t, t_k)]\n$$\n\nThe lower bound is for large value of T, upper bound is for smaller value\n\n\n\nThen we take an average to get:\n\n$$\nPV_{\\\\text{protection}} \\\\approx \\\\frac{1}{2} (L + U)\n$$\n\nAnd then for a fair value of a CDS, based on no-arbitrage argument\n\n$$\nPV_{\\\\text{premium}} = PV_{\\\\text{protection}}\n$$\n\n\n\n**SPREAD FORMULA:**\n\nThen we can finally solve for the spread \\\\(S_0\\\\)\n\n$$\nS_0 = \\\\frac{(1-R) \\\\sum_{k=1}^K [P(t, t_k) + P(t, t_{k-1})] [Q(t, t_{k-1}) - Q(t, t_k)]}{\\\\sum_{n=1}^N \\\\Delta(t_{n-1}, t_n) P(t, t_n)[Q(t, t_{n-1}) + Q(t, t_n)]}\n$$\n\nTherefore, we need the full discount curve, the survival curve, this information.\n\n\n\n## Example\n\nS \\= spread\n\nWe assume that payment occurs at the end of the year. We have the survival probability that the name survives, then we have an expected payment which is discounted to the present. Let’s do one calculation:\n\nIf we have a static probability of default, probability of default in second period is Q\\*(1-Q), probability of survival in second period is Q^2.\n\n\n\nExpected payment in 3rd year is Q^3 \\* S.\n\nPV of expected payment is Q^3 \\* S \\* e^{-r \\* T}\n\n\n\n\n\nThe PV of accrual payment in event of default:\n\nThe more general formula is on the average of default happens halfway, so our time of default is 1.5, 2.5, etc.\n\nIf during third year, the probability of default (from table) is 0.0192.\n\nThen the coupon is halved, and the accrual payment is 0.5S. If it’s every month, then you divide that by 12 as well.\n\nExpected accrual payment at t \\= 2.5 iii\n\n\n\nWith the CDS rate on the market, you can make an inference about the implied probability of default.\n\nIf mid market spread for a 5 year CDS is 100bps per year, then the conditional default probability is 1.61%.\n\n\n\n## Implied Hazard Rates from CDS Spreads\n\nFor the problem of estimation of default probabilities and corresponding hazard rates, we will used the so-called **JPMorgan model**. This is the credit curve, the “term structure” of probabilities of default.\n\n\n\n## Review of Hazard Rates\n\nτ \\= time to default\n\nCDF of probability of default is F(t) \\= P(τ ≤ t)\n\nFor the purpose of this, we will take survival probabilities, which are 1 \\- F(t)\n\n\n\nThe hazard rate is either h or λ by convention:\n\nThe survival probability is equal to the\n\n$$\nS(t) = e^{-\\\\int_0^t h(u) du}\n$$\n\nIf the hazard rate is constant, you have e-ht function. But this doesn’t have to be constant. Typically, we will assume it’s piecewise constant, depends on how we estimate it.\n\n\n\nIf S(t) is differentiable, then\n\n$$\nh(t) = -\\\\frac{d}{dt} \\\\ln S(t) = \\\\frac{F'(t)}{1-F(t)}\n$$\n\nThis is the relationship between the hazard rate, survival, and default probabilities.\n\n\n\nIf you have a risky ZCB with zero recovery that pays $1 at T:\n\n$$\n\\\\tilde{P}(0, T) = \\\\mathbb{E}[P(0, T) * \\\\mathbb{I}_{\\\\tau > T}]\n$$\n\nwhere\n\n$$\nP(0, T) = e^{-\\\\int_0^T r(u) du}\n$$\n\nThen,\n\nsurvival probabilities are\n\n$$\nS(t) = \\\\frac{\\\\tilde{P}(0, T)}{P(0, T)}\n$$\n\nWe can also note that the risky ZCB value must be less than the riskless ZCB..\n\n\n\naverage of hazard rates will be time 0\n\nSometimes it’s easier to calculate an average hazard rate for some maturity, then afterwards compute the piecewise constant hazard rate.\n\nWe can determine h\\_i from successive survival probabilities.\n\n\n\nWe have the survival probability, but to express in terms of hazard rates.\n\n\n\nIf you assume hazard rates are known","dataUrl":"https://sharifhsn.dev/api/posts/advanced-derivatives-week-10.json","date":"2025-04-03","datePublished":"2025-04-03","description":"We discussed the mechanics of CDS a bit, and then started on the valuation. So let’s discuss the valuation in more details.","site":"https://sharifhsn.dev","slug":"advanced-derivatives-week-10","source":"Advanced Derivatives","sourceUrl":null,"tags":["Credit","Credit Default Swaps","CDS Valuation","Premium Leg","Protection Leg"],"title":"Credit Default Swap Valuation","url":"https://sharifhsn.dev/blog/advanced-derivatives-week-10/","version":"1","wordCount":1715}