{"categories":["Risk Management"],"contentHtml":"<h5>Linear Risk Management</h5><p>Let’s say I’m trading futures. What is the log return of this?</p><p>The futures contract at time 1 is worth <math><msub><mi>𝑆</mi><mn>0</mn></msub><msup><mi>𝑒</mi><mi>𝑟</mi></msup></math>, then at time 2 is <math><msub><mi>𝑆</mi><mn>0</mn></msub><msup><mi>𝑒</mi><mrow><mn>2</mn><mi>𝑟</mi></mrow></msup></math>, etc.</p><p>If you look at log returns, then it’s simply a linear function of the underlying returns.</p><p>I can use a futures contract to hedge my <math><mi>𝛽</mi></math> (systematic risk)</p><h5>Foreign Exchange Rates</h5><p>If I have a 1 year change Q, you can calculate this as</p><p>Everything will get more expensive when Trump goes into office, making the dollar weaker relative to the euro. Tariffs will have an inflationary effect.</p><h5>Unitary Hedge</h5><p>If you’re going to trade futures on Japanese yen, each future is ¥12.5 million, which is about $80,000.</p><p>We have a risky asset called JPY, and 125 million worth. We have promised to get this payment. If someone pays me today, I will get this inventory. But they’re going to give me ¥125 million in 7 months, so I’m not sure what will happen. If we think about this under no-arbitrage pricing, or GBM, we could end up anywhere from the best case to the worst case. In the best case, JPY will become stronger, so the yen you receive is worth more. The worst case is the opposite.</p><p>International companies are getting paid in the currency for each place they are located in, so they are sensitive to currencies. How do you hedge this?</p><p>Sell a futures contract at the time you receive the payment for the export. That way you can lock in the exchange rate right now.</p><p>However, there’s a potential loss if the yen <em>doesn’t</em> weaken. You could have made more money, but you chose to lock in at a weaker price. This is <strong>basis risk</strong>.</p><p>To calculate the PnL for basis risk, you need Q as the amount of yen transacted and S and F as spot and future rates:</p><p><math><mi>𝑄</mi><msub><mi>𝑆</mi><mi>𝑇</mi></msub><mo>−</mo><mi>𝑄</mi><msub><mi>𝑆</mi><mn>0</mn></msub><mo>=</mo><mi>𝑄</mi><mo lspace=\"0.2222222222222222em\" rspace=\"0.2222222222222222em\">×</mo><mo form=\"prefix\" stretchy=\"false\">(</mo><msub><mi>𝑆</mi><mn>2</mn></msub><mo>−</mo><msub><mi>𝑆</mi><mn>1</mn></msub><mo stretchy=\"false\">)</mo></math></p><p>If you plug these into the equations for the forward rates, you get</p><p><math><msub><mi>𝑆</mi><mn>0</mn></msub><mo form=\"prefix\" stretchy=\"false\">[</mo><msup><mi>𝑒</mi><mrow><mi mathvariant=\"normal\">Θ</mi><mi>𝑡</mi></mrow></msup><mo>−</mo><mn>1</mn><mo form=\"postfix\" stretchy=\"false\">]</mo><mo>−</mo><msub><mi>𝑆</mi><mn>0</mn></msub><mo form=\"prefix\" stretchy=\"false\">[</mo><msup><mi>𝑒</mi><mrow><mi mathvariant=\"normal\">Θ</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑇</mi><mo lspace=\"0em\" rspace=\"0em\">−</mo><mi>𝑡</mi><mo stretchy=\"false\">)</mo></mrow></msup><mo>−</mo><mn>1</mn><mo stretchy=\"false\">]</mo></math></p><p>You can think of the hedge position as something called “trading the basis”, the difference between the underlying and the futures is the basis, and then the difference is between those two times.</p><h3>Week 12</h3><h4>Lecture Notes</h4><h5>Federal Reserve</h5><p>His friend worked for the OCC at the Fed, they make a lot of money when they need to fix problems. He says, Trump will keep Fed more employed. Results from politics take a long time to show up.</p><h5>Unitary Hedge (continued)</h5><p>We say that we’re going to get a delivery of ¥125 million in a few months. And if we map out the change in exchange rate between now and then, there becomes a risk in our GBM that the exchange rate weakens and the yen loses value. The value at risk is <math><mo>−</mo><msub><mi>𝑆</mi><mn>0</mn></msub><mo>+</mo><msub><mi>𝑆</mi><mi>𝑡</mi></msub></math>.</p><p>Why does technical analysis work? It’s because everyone uses it.</p><p>Hedging is trying to eliminate uncertainty. We need to compare apples to apples, so we want the underlying and hedge vehicle to be 100% correlated with equal volatilities. The underlying goes like</p><h5>Optimal Hedge</h5><p>The best?</p><p>Let’s say for each million dollars on stocks, bonds, whatever, how do I come up with the decision to hedge apples with oranges? Optimal means that it minimizes the objective function.</p><p>A unit hedge has the quantities transacted as being identical. But in general, how do we decide to transact.</p><p>The example is jet fuel and heating oil. These will actually move together, and this is lab 4. Let’s imagine you’re an airline company that wants to manage liability for jet fuel and minimize the cost to pay.</p><p>Now we’re adding a futures contract. Let <math><mi mathvariant=\"normal\">Δ</mi><mi>𝑆</mi></math> be the change in dollar value of inventory, and <math><mi mathvariant=\"normal\">Δ</mi><mi>𝐹</mi></math> be the change in dollar value of the futures contract. The change in value of portfolio is</p><p><math><mi mathvariant=\"normal\">Δ</mi><mi>𝑉</mi><mo>=</mo><mi mathvariant=\"normal\">Δ</mi><mi>𝑆</mi><mo>+</mo><mi>𝑁</mi><mo lspace=\"0.2222222222222222em\" rspace=\"0.2222222222222222em\">×</mo><mi mathvariant=\"normal\">Δ</mi><mi>𝐹</mi></math></p><p>What is the optimal N?</p><p>We can either think about <math><mi>𝑉</mi></math> as the whole value of the portfolio, and also the change in the value of the portfolio. I’m buying today, selling tomorrow, what is the difference? That’s my unhedged <math><mi mathvariant=\"normal\">Δ</mi><mi>𝑆</mi></math>. For <math><mi mathvariant=\"normal\">Δ</mi><mi>𝐹</mi></math>, we have to know how much we’re going to sell today and buy tomorrow to balance these out. Let’s calculate variance: <math><mi>𝕍</mi><mo form=\"prefix\" stretchy=\"false\">[</mo><mi mathvariant=\"normal\">Δ</mi><mi>𝑉</mi><mo form=\"postfix\" stretchy=\"false\">]</mo><mo>=</mo><mi>𝕍</mi><mo form=\"prefix\" stretchy=\"false\">[</mo><mi mathvariant=\"normal\">Δ</mi><mi>𝑆</mi><mo form=\"postfix\" stretchy=\"false\">]</mo><mo>+</mo><msup><mi>𝑁</mi><mn>2</mn></msup><mi>𝕍</mi><mo form=\"prefix\" stretchy=\"false\">[</mo><mi mathvariant=\"normal\">Δ</mi><mi>𝐹</mi><mo form=\"postfix\" stretchy=\"false\">]</mo><mo>+</mo><mn>2</mn><mi>𝑁</mi><mspace width=\"0.2222em\"></mspace><mtext>Cov</mtext><mo form=\"prefix\" stretchy=\"false\">(</mo><mi mathvariant=\"normal\">Δ</mi><mi>𝑆</mi><mo>,</mo><mi mathvariant=\"normal\">Δ</mi><mi>𝐹</mi><mo stretchy=\"false\">)</mo></math></p><p>Now how do you optimize this function?</p><p>We actually want this equate this to 0.</p><p>How would we determine the effectiveness of the hedge? By a decrease in portfolio volatility.</p><p><math><msubsup><mi>𝜎</mi><mrow><mi mathvariant=\"normal\">Δ</mi><mi>𝑉</mi></mrow><mn>2</mn></msubsup><mo form=\"prefix\" stretchy=\"false\">(</mo><msup><mi>𝑁</mi><mo>∗</mo></msup><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>=</mo><msubsup><mi>𝜎</mi><mrow><mi mathvariant=\"normal\">Δ</mi><mi>𝑆</mi></mrow><mn>2</mn></msubsup><mo>−</mo><mfrac><msubsup><mi>𝜎</mi><mrow><mi>𝑆</mi><mo rspace=\"0em\">,</mo><mi>𝐹</mi></mrow><mn>2</mn></msubsup><msubsup><mi>𝜎</mi><mrow><mi mathvariant=\"normal\">Δ</mi><mi>𝐹</mi></mrow><mn>2</mn></msubsup></mfrac></math></p><p>What happens in a regression?</p><p>volatility of y is</p><p>The optimal hedge ratio is</p><p><math><msup><mi>𝑁</mi><mo>∗</mo></msup><mo>=</mo><mo form=\"prefix\">−</mo><msub><mi>𝛽</mi><mrow><mi>𝑠</mi><mo rspace=\"0em\">,</mo><mi>𝑓</mi></mrow></msub><mfrac><mrow><mi>𝑄</mi><mo lspace=\"0em\" rspace=\"0em\">×</mo><mi>𝑠</mi></mrow><mrow><msub><mi>𝑄</mi><mi>𝑓</mi></msub><mo lspace=\"0em\" rspace=\"0em\">×</mo><mi>𝑓</mi></mrow></mfrac></math></p><p>in the long position, and negative for the short position.</p><p><math><mi>𝑄</mi></math> is the inventory being hedged, in this case ¥125M. <math><msub><mi>𝑄</mi><mi>𝑓</mi></msub></math> is how many contracts you’re actually getting, in this case 12.5M.</p><p>So what is <math><mi>𝛽</mi></math> actually? It’s estimated from the price time series on the underlying and the futures. We’re trying to explain the movement of the underlying as a result of the futures contract, and we will regress one on the other. That <math><mi>𝛽</mi></math> is the coefficient of the futures contracts in question.</p><p>If you hedge a liability, then you go long, because you want the upside.</p><p>For an asset you short, for a liability you long.</p><p>A famous example will be used for lab 4.</p><p>Working with real data, all you have to do is figure out the <math><mi>𝛽</mi></math> between the two (regression) and then hedge the liability (go long).</p><p>Amal says that Srinath says that in 610</p>","contentSourceFormat":"typst","contentTypst":"==== Linear Risk Management\n<linear-risk-management>\nLet's say I'm trading futures. What is the log return of this?\n\nThe futures contract at time 1 is worth $S_0 e^r$, then at time 2 is $S_0 e^(2 r)$, etc.\n\nIf you look at log returns, then it's simply a linear function of the underlying returns.\n\nI can use a futures contract to hedge my $beta$ (systematic risk)\n\n==== Foreign Exchange Rates\n<foreign-exchange-rates>\nIf I have a 1 year change Q, you can calculate this as\n\nEverything will get more expensive when Trump goes into office, making the dollar weaker relative to the euro. Tariffs will have an inflationary effect.\n\n==== Unitary Hedge\n<unitary-hedge>\nIf you're going to trade futures on Japanese yen, each future is ¥12.5 million, which is about \\$80,000.\n\nWe have a risky asset called JPY, and 125 million worth. We have promised to get this payment. If someone pays me today, I will get this inventory. But they're going to give me ¥125 million in 7 months, so I'm not sure what will happen. If we think about this under no-arbitrage pricing, or GBM, we could end up anywhere from the best case to the worst case. In the best case, JPY will become stronger, so the yen you receive is worth more. The worst case is the opposite.\n\nInternational companies are getting paid in the currency for each place they are located in, so they are sensitive to currencies. How do you hedge this?\n\nSell a futures contract at the time you receive the payment for the export. That way you can lock in the exchange rate right now.\n\nHowever, there's a potential loss if the yen #emph[doesn't] weaken. You could have made more money, but you chose to lock in at a weaker price. This is #strong[basis risk].\n\nTo calculate the PnL for basis risk, you need Q as the amount of yen transacted and S and F as spot and future rates:\n\n$Q S_T - Q S_0 = Q times\\(S_2 - S_1\\)$\n\nIf you plug these into the equations for the forward rates, you get\n\n$S_0\\[e^(Theta t) - 1\\]- S_0\\[e^(Theta\\(T - t\\)) - 1\\]$\n\nYou can think of the hedge position as something called \"trading the basis\", the difference between the underlying and the futures is the basis, and then the difference is between those two times.\n\n== Week 12\n<week-12>\n=== Lecture Notes\n<lecture-notes>\n==== Federal Reserve\n<federal-reserve>\nHis friend worked for the OCC at the Fed, they make a lot of money when they need to fix problems. He says, Trump will keep Fed more employed. Results from politics take a long time to show up.\n\n==== Unitary Hedge (continued)\n<unitary-hedge-continued>\nWe say that we're going to get a delivery of ¥125 million in a few months. And if we map out the change in exchange rate between now and then, there becomes a risk in our GBM that the exchange rate weakens and the yen loses value. The value at risk is $- S_0 + S_t$.\n\nWhy does technical analysis work? It's because everyone uses it.\n\nHedging is trying to eliminate uncertainty. We need to compare apples to apples, so we want the underlying and hedge vehicle to be 100% correlated with equal volatilities. The underlying goes like\n\n==== Optimal Hedge\n<optimal-hedge>\nThe best?\n\nLet's say for each million dollars on stocks, bonds, whatever, how do I come up with the decision to hedge apples with oranges? Optimal means that it minimizes the objective function.\n\nA unit hedge has the quantities transacted as being identical. But in general, how do we decide to transact.\n\nThe example is jet fuel and heating oil. These will actually move together, and this is lab 4. Let's imagine you're an airline company that wants to manage liability for jet fuel and minimize the cost to pay.\n\nNow we're adding a futures contract. Let $Delta S$ be the change in dollar value of inventory, and $Delta F$ be the change in dollar value of the futures contract. The change in value of portfolio is\n\n$Delta V = Delta S + N times Delta F$\n\nWhat is the optimal N?\n\nWe can either think about $V$ as the whole value of the portfolio, and also the change in the value of the portfolio. I'm buying today, selling tomorrow, what is the difference? That's my unhedged $Delta S$. For $Delta F$, we have to know how much we're going to sell today and buy tomorrow to balance these out. Let's calculate variance: $bb(V)\\[Delta V\\]= bb(V)\\[Delta S\\]+ N^2 bb(V)\\[Delta F\\]+ 2 N \"Cov\"\\(Delta S\\,Delta F\\)$\n\nNow how do you optimize this function?\n\nWe actually want this equate this to 0.\n\nHow would we determine the effectiveness of the hedge? By a decrease in portfolio volatility.\n\n$sigma_(Delta V)^2\\(N^(*)\\)= sigma_(Delta S)^2 - sigma_(S\\,F)^2 / sigma_(Delta F)^2$\n\nWhat happens in a regression?\n\nvolatility of y is\n\nThe optimal hedge ratio is\n\n$N^(*) = - beta_(s\\,f) frac(Q times s, Q_f times f)$\n\nin the long position, and negative for the short position.\n\n$Q$ is the inventory being hedged, in this case ¥125M. $Q_f$ is how many contracts you're actually getting, in this case 12.5M.\n\nSo what is $beta$ actually? It's estimated from the price time series on the underlying and the futures. We're trying to explain the movement of the underlying as a result of the futures contract, and we will regress one on the other. That $beta$ is the coefficient of the futures contracts in question.\n\nIf you hedge a liability, then you go long, because you want the upside.\n\nFor an asset you short, for a liability you long.\n\nA famous example will be used for lab 4.\n\nWorking with real data, all you have to do is figure out the $beta$ between the two (regression) and then hedge the liability (go long).\n\nAmal says that Srinath says that in 610","dataUrl":"https://sharifhsn.dev/api/posts/linear-hedging.json","date":"2024-11-21","datePublished":"2024-11-21","description":"Let’s say I’m trading futures. What is the log return of this? The futures contract at time 1 is worth 𝑆 0 𝑒 𝑟 , then at time 2 is 𝑆 0 𝑒 2 𝑟 , etc. If you look at log returns,…","site":"https://sharifhsn.dev","slug":"linear-hedging","source":"FE-535 | Risk Management","sourceUrl":null,"tags":["Risk Management","Hedging","Linear Risk"],"title":"Linear Hedging","url":"https://sharifhsn.dev/blog/linear-hedging/","version":"1","wordCount":1032}