{"categories":["Fixed Income"],"contentHtml":"<h2>LMM</h2>\n<p>The <strong>LIBOR Market Model</strong> (or <strong>Brace-Gatarek-Musiela Model</strong>)</p>\n<p>is a model constructed in terms of the forward rates underlying caplet prices.</p>\n<p>HJM was defined as a process for the forwards.</p>\n<p>Basically the benefit was that it could model the entire term structure, as long as you input all the volatilities for the term structure.</p>\n<p>But the problem is the calibration.</p>\n<p>Notation</p>\n<p>\\(t_k\\) kth reset date</p>\n<p>So t would progress like t_0 = 0, t_1 = 0.25, t_2 = 0.5…</p>\n<p>\\(F_k\\) forward rate between k and k + 1</p>\n<p>m(t) index for next reset date at time t.</p>\n<p>So if t = 0.4, then m(t) = 0.5</p>\n<p>δ_k = t_k+1 - t_k</p>\n<p>So basically you can imagine that you have your forward curve,</p>\n<p>xi: ξ(t) = volatility of F_k(t) at time t</p>\n<p>Assume that we have only one factor</p>\n<p>This factor is the forward risk neutral process with respect to P(t, t_k+1)</p>\n<p>Then, our process</p>\n<p>$$\ndF_k(t) = \\xi_k (t) F_k(t) dW\n$$</p>\n<p>The change is driven by the volatility, existing forward rate, and Brownian motion.</p>\n<p>Applying some change of numeraire, skipping some steps, you get</p>\n<p>the rolling forward rate process (in notes)</p>\n<p>Price of a ZCB at time t_i which is discounted, the ratio of that to t_i+1</p>\n<p>$$\n\\frac{P(t, t_i)}{P(t, t_{i+1})} = 1 + \\delta_i F_i(t)\n$$</p>\n<p>If you apply the natural log, you get</p>\n<p>$$\n\\ln P(t, t_i) - \\ln P(t, t_{i+1}) = \\ln [1 + \\delta_i F_i(t)]\n$$</p>\n<p>This is the relationship between the ZCB and the forward.</p>\n<p>Then if you apply Ito’s lemma… and equate coefficient of dW</p>\n<p>something long…</p>\n<p>Then you can take the substitution of the forward process.</p>\n<p>$$\n\\frac{dF_k(t)}{F_k(t)} = \\sum_{i= m(t)}^k \\frac{\\delta_i F_i(t) \\xi_i(t) \\xi_k(t)}{1+\\delta_i F_i(t)} dt + \\xi_k(t) dW\n$$</p>\n<p>This is the process followed by the forward rate between t_k and t_k+1, in a risk-neutral world.</p>\n<p>In the limiting case, when this interval becomes smaller, this converges to HJM</p>\n<p>The idea is being able to calibrate this model.</p>\n<p>It can be simplified with:</p>\n<h2>Simplified Model</h2>\n<p>Assume that ξ_k(t) function only on the number of whole accrued periods between the next date and t_k.</p>\n<p>Define Λ_i as the value of ξ_k(t) (volatility of forward) when there are i such accrued periods.</p>\n<p>Then the volatility of the forward can be redefined as</p>\n<p>\\(\\xi_k(t) = \\Lambda_{k-m(t)}\\) which is a step function</p>\n<p>And such values like Λ_i can be estimated from the volatilities used to value caplets in Black’s model.</p>\n<p>Recall that to value a caplet, we have</p>\n<p>$$\nL\\delta_k P(0, t_{k+1}) [F_k N(d_1) - R_k N(d_2)]\n$$</p>\n<p>blah blah blah d_1 and d_2</p>\n<p>If we equate the variances between Black’s model and this, we get</p>\n<p>$$\n\\sigma_k^2 t_k = \\sum_{i=1}^k \\Lambda_{k-i}^2 \\delta_{i-1}\n$$</p>\n<p>Example in the slides for converting Black volatilities to Lambda, use to check</p>\n<h2>Implementation</h2>\n<p>How would I use this model to price a bond. If you observe the volatility, then you can price a bond under this?</p>\n<p>This would be done via Monte Carlo simulation</p>\n<p>$$\n\\frac{dF_k(t)}{F_k(t)} = \\sum_{i=m(t)}^k \\frac{\\delta_i F_i(t) \\Lambda_{i - m(t)}\\Lambda_{k-m(t)}}{1 + \\delta_i F_i(t)} dt + \\Lambda_{k-m(t)} dW\n$$</p>\n<p>Then, by Ito’s lemma,</p>\n<p>$$\nd\\ln F_k(t) = \\left[\\sum_{i=m(t)}^k \\frac{\\delta_i F_i(t) \\Lambda_{i-m(t)} \\Lambda_{k-m(t)}}{1 + \\delta_i F_i(t)}\\right]dt + \\text{same thing as above}\n$$</p>\n<p>Then we can approximate the drift by approximating \\(F_i(t)\\) and \\(t\\)</p>\n<p>Then,</p>\n<p>$$\nF_k(t_{j+1}) = F_k(t) \\exp\\left[\\biggl(\\sum_{i=j+1}^k \\frac{\\delta_i F_i(t_j) \\Lambda_{i-j-1}}{1 + \\delta_i F_i (t_j)} - \\frac{\\Lambda^2_{k-j-1}}{2}\\biggr) \\delta_j + \\Lambda_{k-j-1} \\epsilon \\sqrt{d_j}\\right]\n$$</p>\n<p>Slide 8 has more calculations that I can use for testing.</p>\n<p>ipynb file is provided</p>\n<p>Each approximation of the drift the forward rate remains constant.</p>\n<p>If we define the rolling forward in the risk neutral world, it allows us to discount bond from one date to the next one.</p>\n<p>In terms of simulation, what’s happening in the code is that if you assume that we want to simulate a zero curve with N accrued periods.</p>\n<p>On each trial, we start with the forward rate at time 0, which is calculated from the initial zero curve.</p>\n<p>F_0(0), F_1(0), … F_N-1(0)</p>\n<p>Then we can use an approximation formula (described above) to calculate F_1(t_1), F_2(t_1)...</p>\n<p>Limitations of the theoretical model</p>\n<h2>Credit Risk</h2>\n<p>LMM is a little complicated, this is just an introduction to the topic.</p>\n<p>Credit risk is the probability that a debtor will default on their debts. We have always assumption that the cash flow is 100% likely i.e. with treasury bonds.</p>\n<p>For single-name derivatives, we will look at CDS and CDOs. Then we will look at portfolios. We are interested in expected loss, with a discrete number of names in the portfolio, to estimate the losses in order to price the portfolio correctly.</p>\n<p>Rating agencies will rate the credit risk of bonds.</p>\n<p>S&amp;P says AAA, AA, A, BBB, BB, B, CCC, CC, C</p>\n<p>Moody’s has Aaa, Aa, A, Baa, Ba, B, Caa, Ca and C</p>\n<p>Bonds with ratings of BBB and above are investment grade</p>\n<p>These are measured as bands of probabilities.</p>\n<h3>Question about Diversification</h3>\n<p>By diversifying your portfolio into multiple assets, you decrease the credit risk. Then you can securitize the portfolio by splitting it into tranches, and then get the CDO.</p>\n<p>And then payment in the bonds</p>\n<p>You can have nonlinear dependence between variables, and tail dependence between variables which is conditional. Then the probability of default, what is the likelihood of this house being on fire if this other house is on fire? If the answer is not 0, then you have tail dependence.</p>\n<p>We will look at different models that measure this.</p>\n<h3>Hazard Rates</h3>\n<p>Also known as default intensity, this is the probability of default for  a certain time period conditional on no earlier default.</p>\n<p>Unconditional default probability is from 0.</p>\n<p>We are given a table that has cumulative default rates.</p>\n<p>In order to calculate the probability that A defaults in the first year, you take the actual probability. Then if it’s the second year, we’re concerned with the cdf(2) - cdf(1).</p>\n<p>Then the probability of survival is 1 - this</p>\n<p>This is all unconditional default probability.</p>\n<p>Then the conditional probabilities are known as default intensities or hazard rates</p>\n<p>The unconditinal probability of default within a certain default vs the survival probability.</p>\n<p>The survival probability is V(t)</p>\n<p>$$\\lambda(t) \\Delta t = \\frac{V(t) - V(t + \\Delta t)}{V(t)}$$</p>\n<p>Then you get the ODE</p>\n<p>$$\\frac{dV(t)}{dt} = -\\lambda(t) V(t)$$</p>\n<p>$$V(t) = e^{-\\int_0^t \\lambda(t) dt}$$</p>\n<p>Then the survival probability can be found by integrating over the hazard rate. So if you have a specification of the hazard rate, you can find the cumulative survival probability.</p>\n<p>Then we can also discuss the cumulative default probability.</p>\n<p>We can use the CDS to determine the piecewise constant hazard rates and then construct the survival probabilities.</p>\n<p>So this is a calibration in which we can price the risk of default through CDS.</p>\n<p>First we will look at bonds.</p>","contentMarkdown":"## LMM\n\nThe **LIBOR Market Model** (or **Brace-Gatarek-Musiela Model**)\n\nis a model constructed in terms of the forward rates underlying caplet prices.\n\nHJM was defined as a process for the forwards.\n\nBasically the benefit was that it could model the entire term structure, as long as you input all the volatilities for the term structure.\n\nBut the problem is the calibration.\n\n\n\nNotation\n\n\\\\(t_k\\\\) kth reset date\n\nSo t would progress like t\\_0 \\= 0, t\\_1 \\= 0.25, t\\_2 \\= 0.5…\n\n\\\\(F_k\\\\) forward rate between k and k \\+ 1\n\nm(t) index for next reset date at time t.\n\nSo if t \\= 0.4, then m(t) \\= 0.5\n\n\n\nδ\\_k \\= t\\_k+1 \\- t\\_k\n\nSo basically you can imagine that you have your forward curve,\n\n\n\nxi: ξ(t) \\= volatility of F\\_k(t) at time t\n\n\n\nAssume that we have only one factor\n\nThis factor is the forward risk neutral process with respect to P(t, t\\_k+1)\n\nThen, our process\n\n$$\ndF_k(t) = \\\\xi_k (t) F_k(t) dW\n$$\n\nThe change is driven by the volatility, existing forward rate, and Brownian motion.\n\n\n\nApplying some change of numeraire, skipping some steps, you get\n\nthe rolling forward rate process (in notes)\n\n\n\nPrice of a ZCB at time t\\_i which is discounted, the ratio of that to t\\_i+1\n\n$$\n\\\\frac{P(t, t_i)}{P(t, t_{i+1})} = 1 + \\\\delta_i F_i(t)\n$$\n\nIf you apply the natural log, you get\n\n$$\n\\\\ln P(t, t_i) - \\\\ln P(t, t_{i+1}) = \\\\ln [1 + \\\\delta_i F_i(t)]\n$$\n\nThis is the relationship between the ZCB and the forward.\n\nThen if you apply Ito’s lemma… and equate coefficient of dW\n\n\n\nsomething long…\n\n\n\nThen you can take the substitution of the forward process.\n\n$$\n\\\\frac{dF_k(t)}{F_k(t)} = \\\\sum_{i= m(t)}^k \\\\frac{\\\\delta_i F_i(t) \\\\xi_i(t) \\\\xi_k(t)}{1+\\\\delta_i F_i(t)} dt + \\\\xi_k(t) dW\n$$\n\nThis is the process followed by the forward rate between t\\_k and t\\_k+1, in a risk-neutral world.\n\nIn the limiting case, when this interval becomes smaller, this converges to HJM\n\n\n\nThe idea is being able to calibrate this model.\n\nIt can be simplified with:\n\n## Simplified Model\n\nAssume that ξ\\_k(t) function only on the number of whole accrued periods between the next date and t\\_k.\n\n\n\nDefine Λ\\_i as the value of ξ\\_k(t) (volatility of forward) when there are i such accrued periods.\n\nThen the volatility of the forward can be redefined as\n\n\\\\(\\\\xi_k(t) = \\\\Lambda_{k-m(t)}\\\\) which is a step function\n\nAnd such values like Λ\\_i can be estimated from the volatilities used to value caplets in Black’s model.\n\nRecall that to value a caplet, we have\n\n$$\nL\\\\delta_k P(0, t_{k+1}) [F_k N(d_1) - R_k N(d_2)]\n$$\n\nblah blah blah d\\_1 and d\\_2\n\nIf we equate the variances between Black’s model and this, we get\n\n$$\n\\\\sigma_k^2 t_k = \\\\sum_{i=1}^k \\\\Lambda_{k-i}^2 \\\\delta_{i-1}\n$$\n\n\n\nExample in the slides for converting Black volatilities to Lambda, use to check\n\n\n\n## Implementation\n\nHow would I use this model to price a bond. If you observe the volatility, then you can price a bond under this?\n\n\n\nThis would be done via Monte Carlo simulation\n\n\n\n$$\n\\\\frac{dF_k(t)}{F_k(t)} = \\\\sum_{i=m(t)}^k \\\\frac{\\\\delta_i F_i(t) \\\\Lambda_{i - m(t)}\\\\Lambda_{k-m(t)}}{1 + \\\\delta_i F_i(t)} dt + \\\\Lambda_{k-m(t)} dW\n$$\n\nThen, by Ito’s lemma,\n\n$$\nd\\\\ln F_k(t) = \\\\left[\\\\sum_{i=m(t)}^k \\\\frac{\\\\delta_i F_i(t) \\\\Lambda_{i-m(t)} \\\\Lambda_{k-m(t)}}{1 + \\\\delta_i F_i(t)}\\\\right]dt + \\\\text{same thing as above}\n$$\n\nThen we can approximate the drift by approximating \\\\(F_i(t)\\\\) and \\\\(t\\\\)\n\nThen,\n\n$$\nF_k(t_{j+1}) = F_k(t) \\\\exp\\\\left[\\\\biggl(\\\\sum_{i=j+1}^k \\\\frac{\\\\delta_i F_i(t_j) \\\\Lambda_{i-j-1}}{1 + \\\\delta_i F_i (t_j)} - \\\\frac{\\\\Lambda^2_{k-j-1}}{2}\\\\biggr) \\\\delta_j + \\\\Lambda_{k-j-1} \\\\epsilon \\\\sqrt{d_j}\\\\right]\n$$\n\n\n\nSlide 8 has more calculations that I can use for testing.\n\nipynb file is provided\n\n\n\nEach approximation of the drift the forward rate remains constant.\n\nIf we define the rolling forward in the risk neutral world, it allows us to discount bond from one date to the next one.\n\nIn terms of simulation, what’s happening in the code is that if you assume that we want to simulate a zero curve with N accrued periods.\n\nOn each trial, we start with the forward rate at time 0, which is calculated from the initial zero curve.\n\nF\\_0(0), F\\_1(0), … F\\_N-1(0)\n\nThen we can use an approximation formula (described above) to calculate F\\_1(t\\_1), F\\_2(t\\_1)...\n\n\n\nLimitations of the theoretical model\n\n## Credit Risk\n\nLMM is a little complicated, this is just an introduction to the topic.\n\nCredit risk is the probability that a debtor will default on their debts. We have always assumption that the cash flow is 100% likely i.e. with treasury bonds.\n\n\n\nFor single-name derivatives, we will look at CDS and CDOs. Then we will look at portfolios. We are interested in expected loss, with a discrete number of names in the portfolio, to estimate the losses in order to price the portfolio correctly.\n\n\n\nRating agencies will rate the credit risk of bonds.\n\nS\\&P says AAA, AA, A, BBB, BB, B, CCC, CC, C\n\nMoody’s has Aaa, Aa, A, Baa, Ba, B, Caa, Ca and C\n\nBonds with ratings of BBB and above are investment grade\n\nThese are measured as bands of probabilities.\n\n\n\n### Question about Diversification\n\nBy diversifying your portfolio into multiple assets, you decrease the credit risk. Then you can securitize the portfolio by splitting it into tranches, and then get the CDO.\n\nAnd then payment in the bonds\n\nYou can have nonlinear dependence between variables, and tail dependence between variables which is conditional. Then the probability of default, what is the likelihood of this house being on fire if this other house is on fire? If the answer is not 0, then you have tail dependence.\n\nWe will look at different models that measure this.\n\n\n\n### Hazard Rates\n\nAlso known as default intensity, this is the probability of default for  a certain time period conditional on no earlier default.\n\nUnconditional default probability is from 0\\.\n\nWe are given a table that has cumulative default rates.\n\nIn order to calculate the probability that A defaults in the first year, you take the actual probability. Then if it’s the second year, we’re concerned with the cdf(2) \\- cdf(1).\n\nThen the probability of survival is 1 \\- this\n\nThis is all unconditional default probability.\n\n\n\nThen the conditional probabilities are known as default intensities or hazard rates\n\n\n\nThe unconditinal probability of default within a certain default vs the survival probability.\n\nThe survival probability is V(t)\n\n$$\\\\lambda(t) \\\\Delta t \\= \\\\frac{V(t) \\- V(t \\+ \\\\Delta t)}{V(t)}$$\n\nThen you get the ODE\n\n$$\\\\frac{dV(t)}{dt} \\= \\-\\\\lambda(t) V(t)$$\n\n$$V(t) \\= e^{-\\\\int\\_0^t \\\\lambda(t) dt}$$\n\nThen the survival probability can be found by integrating over the hazard rate. So if you have a specification of the hazard rate, you can find the cumulative survival probability.\n\n\n\nThen we can also discuss the cumulative default probability.\n\n\n\nWe can use the CDS to determine the piecewise constant hazard rates and then construct the survival probabilities.\n\nSo this is a calibration in which we can price the risk of default through CDS.\n\nFirst we will look at bonds.","dataUrl":"https://sharifhsn.dev/api/posts/advanced-derivatives-week-08.json","date":"2025-03-20","datePublished":"2025-03-20","description":"The LIBOR Market Model (or Brace-Gatarek-Musiela Model)","site":"https://sharifhsn.dev","slug":"advanced-derivatives-week-08","source":"Advanced Derivatives","sourceUrl":null,"tags":["Fixed Income","LIBOR Market Model","Interest Rate Models","Hazard Rates"],"title":"LIBOR Market Model and Hazard Rates","url":"https://sharifhsn.dev/blog/advanced-derivatives-week-08/","version":"1","wordCount":1135}