<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by John Jones on Medium]]></title>
        <description><![CDATA[Stories by John Jones on Medium]]></description>
        <link>https://medium.com/@john-jones-18839?source=rss-a18253c4d31d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*k_zMNcDcvpAWFG3cVBoxKg.jpeg</url>
            <title>Stories by John Jones on Medium</title>
            <link>https://medium.com/@john-jones-18839?source=rss-a18253c4d31d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 18:43:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@john-jones-18839/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Intro to Hedging: Python and Excel Examples]]></title>
            <link>https://john-jones-18839.medium.com/intro-to-hedging-python-and-excel-examples-805617469cab?source=rss-a18253c4d31d------2</link>
            <guid isPermaLink="false">https://medium.com/p/805617469cab</guid>
            <category><![CDATA[quantitative-finance]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[excel]]></category>
            <category><![CDATA[hedging]]></category>
            <category><![CDATA[finance]]></category>
            <dc:creator><![CDATA[John Jones]]></dc:creator>
            <pubDate>Wed, 16 Jun 2021 17:47:48 GMT</pubDate>
            <atom:updated>2021-06-16T20:41:47.007Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mgfeZOuhS-PdnZfc" /><figcaption>Photo by <a href="https://unsplash.com/@jeffreyblum?utm_source=medium&amp;utm_medium=referral">Jeffrey Blum</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><blockquote>Hi there! My name is <a href="https://www.linkedin.com/in/john-jones-5b8912a1/">John</a> and this is an intro to hedging using options and futures. I am writing this article to help me learn and solidify major concepts.</blockquote><h3>Hedging — Background</h3><p>Hedging is a mechanism by which risk associated with adverse fluctuations in the market can be reduced or made obsolete. The applications for hedging are far reaching.</p><p>Examples can be found across industries:</p><ul><li><strong>Financial Institutions</strong> can reduce risk from interest rate or inflationary fluctuations.</li><li><strong>Manufactures</strong> can hedge against changes in commodity prices by taking a long position in futures contracts.</li><li>An<strong> investor </strong>can hedge their equity portfolio by taking a short position.</li></ul><p>In this article, I will explain several methods to hedge with <strong>future contracts</strong> and <strong>options</strong>. Central to my article is the use of Python and Excel to develop basic hedging tools.</p><p>The following topics will be discussed:</p><h4>Options vs. Futures</h4><ul><li>Differences</li><li>Market Size</li></ul><h4><strong>Hedging with Futures</strong></h4><ul><li>Basis Risk</li><li>Minimum-Variance Hedge</li></ul><h4><strong>Hedging with Options</strong></h4><ul><li>Black-Scholes-Merton Intro</li><li>Delta Hedging</li></ul><h4>Options vs. Futures</h4><p>There are critical differences between options and futures derivatives, differences that affect their use cases and hedging applications. Options are Exchange Traded, meaning that they can be bought or sold through a broker and are standardized. Forwards are traded Over-The-Counter (OTC) because they are designed to meet the specific needs of both parties.</p><p>When an individual purchases an option, they have the right but not the obligation to execute the contract. This means that the holder of the option has the choice to use the option on its expiration date (if it’s a European style option), or at any point in time (if it’s an American style option).</p><p>Futures contacts, however, are free to enter into but the purchaser (or seller) of the contract must buy (or sell) the underlying asset.</p><p><strong>Differences between Options and Futures</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ahTUfR9dwPrkP8fa-97LxA.png" /></figure><p>The market for futures is substantially larger than the market for options, as shown by the graph below.</p><figure><img alt="df" src="https://cdn-images-1.medium.com/max/850/1*mQLnUHU6oKAqOvjFZF8g3w.png" /><figcaption><a href="https://www.researchgate.net/figure/10-Year-Growth-of-the-Global-OTC-Market-and-Exchange-Traded-Derivatives-Market_fig1_46440571">https://www.researchgate.net/figure/10-Year-Growth-of-the-Global-OTC-Market-and-Exchange-Traded-Derivatives-Market_fig1_46440571</a></figcaption></figure><p>In interpreting these numbers it is important to note that the market value of the contract may be substantially less than the contract’s notional value, which is the value of the underlying asset being hedged. As of 2019, the market value of OTC derivatives is $11.2 trillion while the notional value is $558.5 trillion (ISDA).</p><h4>Hedging with Futures</h4><p>Although options are more commonly used for hedging than futures are, futures are still useful for hedging depending on the situation.</p><p><strong>Short hedge</strong>: A short hedge is appropriate when the hedger already owns an asset and expects to sell it at some time in the future.</p><p><strong>Long hedge</strong>: A long hedge is appropriate when a company knows it will have to purchase a certain asset in the future and wants to lock in a price now.</p><p><strong>Example:</strong> Suppose that it is January 15 and a manufacturer knows it will need 100,000 pounds of copper on May 15. The spot price (market price) of copper is $3.4 per pound, and the futures price for May delivery is $3.2 per pound. Each contract is for the delivery of 25,000 pounds of copper.</p><p>The company can enter a <strong>long hedge</strong>, and assuming that the spot price on May 15 is $3.2 per pound, the company will gain approximately</p><p>$100,000 * ($3.25 -$3.2) = $5,000</p><p>However, if the spot price is $3.15, then the company will lose</p><p>$100,000 * ($3.15-$3.2) = -$5,000</p><h4><strong>Basis Risk — Futures</strong></h4><p>The above example, particularly the one in which the hedger gains $5,000, is a fairly ideal situation. There are some nuances that make hedging with futures more complex.</p><ol><li>The price of the asset being hedged may be different than the asset that is underlying the futures contract.</li><li>The hedger may not known the exact date when an asset will be bought or sold.</li><li>The hedge may require the futures contract to be closed before its delivery month.</li></ol><p>These problems give rise to <strong>Basis Risk.</strong></p><p>The basis of a hedge is a measures of the difference between the spot price of the hedged asset and the futures price for the contact. Overtime, the basis will fluctuate and be zero at the future’s expiration date, assuming that the assets are the same.</p><p><em>Basis = (Spot price of asset to be hedged)-(Futures price of contract used)</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H9Mo6gku6QfJCZBUDH86Kg.png" /></figure><p>Here’s a graph illustrating how the basis will fluctuate throughout the duration of the hedge and converge to zero at the expiration date (assuming the assets are the same).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/739/1*d2zQLsYC32oQo447PuYQUQ.png" /></figure><p>If the assets are not the same, the formula for basis can be easily modified,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1009/1*LphV0fpwx0SCWdtN2DR0EA.png" /></figure><p><strong>Given that the assets are different, the basis may not converge to zero at the expiration date</strong>. We will talk more about this later when discussing the minimum-variance hedge and cross-hedging.</p><p>Below is a table that illustrates how basis changes can affect the overall position of the hedge.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1014/1*uDCVpAiuMLGHZBzAQW05Ew.png" /></figure><h4>Minimum-Variance Hedge — Futures</h4><p>Given the presence of<strong> basis risk</strong>, the <strong>minimum-variance hedge</strong> is a means to hedge if the assets are different, as in a cross-hedge. When a trader enters a cross-hedge, they are using different assets to hedge. For example, a trader may use German marks to hedge Danish kroner, or heating oil futures to hedge the price of jet fuel. In light of basis risk, we will need to find an optimal hedge that minizines variance.</p><p>Let’s first construct a cash flow for a hedge.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/954/1*CU7z6rJqgaAae86uWYSkTg.png" /><figcaption>Luenberger 283</figcaption></figure><p>We can then find when the variance of the cashflow is minimized.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OoRQoLfljj8g5I7DmTKChw.png" /></figure><p>We can use beta, the correlation coefficient, instead of the equation above if the obligation has is for a fixed notional hedge amount. Effectively,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/967/1*7K3x3KPXmVDZk4vvcVX5Gg.png" /><figcaption>Luenberger 284</figcaption></figure><p>Once we have found the optimal hedge ratio, we can find the number of futures contracts to purchase.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/950/1*_vVAfS1Z5UwfCHO3Ri5_9w.png" /><figcaption>Hull 58</figcaption></figure><p><strong>Example: </strong>An airline company expects to<em> purchase 2 million gallons of jet fuel in 1 month</em> and plans to hedge using heating oil futures, which cost $43,000 per contract (Hull 59).</p><ul><li>We are given the data on the monthly price change in jet oil and futures contracts on heating oil.</li><li>We can calculate the minimum variance hedge when using heating oil futures to hedge the purchase of jet fuel.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B5GG0NJrpN-EG_m8mod6vw.png" /><figcaption>Hull 59</figcaption></figure><p>A simple minimum variance hedge can be made in Excel…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x0NFLHrGFXxUspaYvFdCbQ.png" /></figure><ul><li>Using the minimum variance hedge, the company should purchase <strong>36.17 heating oil futures</strong>.</li><li>The minimum variance hedge will<strong> reduce the risk by a factor of 0.63, </strong>as <strong>sqrt(1–H*²)= 0.63</strong>. By using an asset that is more correlated with jet fuel, the risk could be reduced further.</li></ul><h4>Black-Scholes-Merton Intro— Options</h4><p>Options are extensively used in hedging. Central to hedging with options are the solutions to the Black-Scholes-Merton differential equations, which are used to price European call and put options. The variables that affect the options premiums are not only the price of the underlying asset, whether it is a stock, currency, etc., but also interest rates, time, and volatility.</p><p>The solution to the Black-Scholes-Merton differential equation for the prices of European call and put options is the following.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/987/1*Y9-sTVpBDeYLq5nQjgBf4A.png" /></figure><ul><li>K — Strike price</li><li>S_0 — spot price at Time 0</li><li>sigma— implied volatility</li><li>T — time until expiration</li><li>r — risk free rate</li><li><strong>NOTE</strong>: c is the price of a call option and p is the price of a put option.</li></ul><p>In order to discern how the variables for the options pricing equation affect the price of the options, the partial derivates of the variables can be found. The partial derivatives of the solution to the Black-Scholes-Merton equation are called the Greeks. We will use the Greeks to hedge, extensively. It is important to note, however, that because the Greeks are first-order linear approximations of the non-linear options pricing function, the Greeks should be regularly calculated to ensure that they are accurate.</p><p><strong>The Five Greeks</strong></p><p><strong>Delta — </strong>The rate of change of the option price with respect to the price of the underlying asset. In other words, it is the slope of curve that relates the option price of the underlying asset price.</p><ul><li>Delta is between 0.0 and 1.0 for call options.</li><li>Delta is between 0.0 and -1.0 for put options.</li></ul><p><strong>Gamma</strong> — The rate of change of the portfolio’s <strong>delta </strong>with respect to the price of the underlying asset, or the second derivative.</p><p><strong>Theta — </strong>The rate of change of the value of the portfolio with respect to the passage of time, being commonly referred to as time decay.</p><p><strong>Vega — </strong>The rate of change of the value of the portfolio with respect to implied volatility, which is the expected volatility of the underlying asset over the duration of the hedge.</p><p><strong>Rho — </strong>The rate of change of the value of the portfolio with respect to the risk free rate.</p><h4><strong>Python Application</strong></h4><p>Here is an example of a python script to find the Greeks as well as the prices Euro put and call options…</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f0f471f92742d9d93625fa0c2a1f1b65/href">https://medium.com/media/f0f471f92742d9d93625fa0c2a1f1b65/href</a></iframe><h4>Delta Hedging — Options</h4><p>Given that delta measures how much the price of an option will change for every $1 dollar movement in the stock price, the purchase or sale of the underlying asset will limit exposure.</p><p>Let’s say we have a short call option on a stock and the option portfolio’s delta is -0.50. Assuming that each option covers 100 stocks, by purchasing 50 stocks our delta exposure can be made effectively zero. This is because each stock has a delta of 1 or -1 depending on whether it is bought or sold, respectively.</p><p>It may be necessary to adjust our delta hedge as our delta value may change throughout the duration of the hedge. We should look at gamma to discern how our delta hedge may need to be adjusted.</p><p>Using python, we can construct a simple delta hedge.</p><ul><li>Let’s say we have a put option on Boeing (BA) that covers 100 shares…</li></ul><blockquote>Strike price = $250</blockquote><blockquote>Market Price (spot price) = 245.39</blockquote><blockquote>Risk free rate = 1.5%</blockquote><blockquote>Time to expiration is 30/365 (1 month)</blockquote><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/947c2e809f6c48d76536dec67f91015a/href">https://medium.com/media/947c2e809f6c48d76536dec67f91015a/href</a></iframe><blockquote>Price of option: 245.39</blockquote><blockquote>Delta: -0.56</blockquote><ul><li>In this basic example, the delta is -0.56 and assuming that each option cover 100 stocks, we should purchase 56 shares of Boeing.</li><li>However, this delta hedge may need to be adjusted as the market changes with the purchase or sale of Boeing stock.</li></ul><h4>Sources</h4><ul><li>Luenberger, David. Investment Science</li><li>Hull, John. Options Futures and Other Derivatives</li><li><a href="https://inference-review.com/article/trading-volatility">https://inference-review.com/article/trading-volatility</a></li><li><a href="https://www.isda.org/2018/05/25/uses-of-notional-amount-in-derivatives-regulation/">https://www.isda.org/2018/05/25/uses-of-notional-amount-in-derivatives-regulation/</a></li><li><a href="https://towardsdatascience.com/algorithmic-portfolio-hedging-9e069aafff5a">https://towardsdatascience.com/algorithmic-portfolio-hedging-9e069aafff5a</a> (<a href="https://medium.com/u/ba54f7458d02">Roman Paolucci</a>)</li><li><a href="https://www.youtube.com/watch?v=p-bBbdvy7r8">https://www.youtube.com/watch?v=p-bBbdvy7r8</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=805617469cab" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Thoughts on data as labor]]></title>
            <link>https://john-jones-18839.medium.com/thoughts-on-data-as-labor-109c7192cbb2?source=rss-a18253c4d31d------2</link>
            <guid isPermaLink="false">https://medium.com/p/109c7192cbb2</guid>
            <category><![CDATA[data-as-labor]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[economics]]></category>
            <dc:creator><![CDATA[John Jones]]></dc:creator>
            <pubDate>Wed, 02 Jun 2021 01:05:09 GMT</pubDate>
            <atom:updated>2021-06-02T01:05:09.064Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nrTFWNHdBPJLB5Qn" /><figcaption>Photo by <a href="https://unsplash.com/@sakulich?utm_source=medium&amp;utm_medium=referral">Sergei Akulich</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Jaron Lanier is the father of virtual reality and Tim Berners-Lee invented the World Wide Web in the late 80s. Although both of these individuals helped establish the table stakes for the technologies and services that tech companies provide, both Lanier and Berners-Lee have expressed concerns with the nature of the tech industry.</p><p>During a <a href="https://www.bing.com/videos/search?q=lanier+ted+talk&amp;docid=608055300632945137&amp;mid=05F358BE69F93E21FEE905F358BE69F93E21FEE9&amp;view=detail&amp;FORM=VIRE&amp;adlt=strict">2019 TED Talk</a>, Lanier said that “we cannot have a society in which if two people wish to communicate, the only way that can happen is if its financed by a third person who wishes to manipulate them.” Lanier believes that tech companies’ manipulation and re-wiring of their users’ brains is a threat to human agency and creativity. In a similar vein, Berners-Lee, as the leader of the <a href="https://theodi.org/">Open Data Institute</a>, has demonstrated his apprehension with how individual’s data have been monotonized in ways that promote inequalities.</p><p>Although neither Lanier nor Berners-Lee attempt to villainize tech companies or insinuate that firms are inherently exploitative, they contend that aspects of the web must be reimagined so that both firms and users can flourish.</p><p>The concept of data as labor, which was first proposed by Lanier in his 2013 publication, <em>Who Owns the Future, </em>is being applied to help re-design how data are warehoused and potentially monetized. Currently, Lanier is working on <a href="https://pulse2.com/microsoft-data-dignity-team/#:~:text=Microsoft%20is%20putting%20together%20a%20%E2%80%9CData%20Dignity%E2%80%9D%20team,users%20gain%20better%20controls%20over%20their%20personal%20data.">Microsoft’s Data Dignity projec</a>t, which hopes to reimagine how data are collected and used in ways that are in line with data as labor. Additionally, Berners-Lee is leading the development of a startup at MIT called Solid, which hopes to decouple applications from the data that they produce.</p><p>The concept of data as labor has been popularized through Posner and Weyl’s <em>Radical Markets</em>. Although Posner and Weyl propose several brilliant ideas in their book, the policy that they propose for data as labor is problematic. There is a very similar policy that is currently being considered by California Governor Gavin Newsome. Essentially, Newsom calls for the creation of a data divided. Companies such as Google or Facebook would pay users a fraction of the revenue derived from the user’s data. The problem with this plan, and by extension Posner and Weyl’s plan, is that it does not treat data as labor. <strong>It treats data as a commodity.</strong></p><p>Posner and Weyl suggest that companies pay users for their data and Newsom calls for companies to pay users based on the revenue they generate from data. The scope of these policies parallels the dividend model of the Alaska State Permanent Fund, which provides dividend payments to state residents from oil revenues. In this model, the state taxes oil companies and leases oil rich land and uses those revenues to pay state residents. The reason why the Permanent Fund model works is partly because oil is a commodity that has an exchange-based price that is fungible. Data, however, do not have an exchange-based price and are far from being fungible.</p><p>Data is not like oil, and policies that attempt to reform the tech industry by treating data as if it were a commodity that is fungible and has a clear market value are extremely unhelpful. There does not exist a Black-Scholes-type of model that prices data given all of the uncertainties associated with its contribution to value generation. Therefore, paying users for the data that they generate becomes extremely problematic. Although an argument could be made for devising new methods to measure the value of data, I believe that due to the lack of visibility, dividend-based reform policies are the wrong policy direction.</p><p>Despite my criticism of Posner and Weyl’s plan, they do highlight how users are having their privacies intruded upon and their data used in ways that they may not approve of. There are many examples of companies extracting and using data in problematic ways. Target’s product recommendation function suggested that a teenage girl was pregnant before she or her parents knew of the pregnancy. Amazon’s products, Echo and Ring, collect personal data from our homes that users do not have much control over. Data collected from these products have been used against users in lawsuits and there are reports of Amazon employees listening in on users’ private conversations.</p><p>My frustration with how Posner, Weyl, and Gov Newsom have applied data as labor is based on their assumption that the primary injustice is monetary. Google’s failure to pay you for the data that you provided to train their autonomous vehicles violates labor law, goes the mantra. However, the bigger issue that Jaron Lanier was highlighting when he proposed data as labor was that the web needs to be reimagined, completely.</p><p>Berners-Lee’s <a href="https://solidproject.org/">Solid</a> is a good example of an attempt to reimagine the web in light of Lanier’s hope for data as labor. Solid provides each user with a data pod that saves all of the data that they generate using applications. Google or Facebook would no longer have unlimited access to a user’s data. Essentially, a pod functions as a social security number for all of an individual’s data. Companies who want to use these data to create products or provide tailored ads must ask the user(s) for access to their pod, giving the user(s)agency and limiting the latitude that companies have. This direction is far more equitable than a data dividend policy or a variation of it as in Posner and Weyl’s suggestion. Individuals who want to sell their data would have a platform to do so, and tech companies would have a smaller window into the privacy of individuals who want to opt out of selling their data.</p><p>Ultimately, I believe that it is not enough to adopt the principal of data as labor without first reimaging the nature of the web. Failure to do this will result in treating data as if it were a commodity such as oil, wheat, or copper. These policies have no foundation to accurately price a user’s individual data contribution to value. I believe that Solid’s reimagining of the web is the better direction and will lead to a digital environment that supports the concept of data as labor in the way that Lanier intended.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=109c7192cbb2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>