<?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 Anthony Maylath on Medium]]></title>
        <description><![CDATA[Stories by Anthony Maylath on Medium]]></description>
        <link>https://medium.com/@anthony.maylath?source=rss-e19d0a1b7af4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*cu0c3KdD0lHIMOif.jpg</url>
            <title>Stories by Anthony Maylath on Medium</title>
            <link>https://medium.com/@anthony.maylath?source=rss-e19d0a1b7af4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 03:22:20 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@anthony.maylath/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[Understanding Volatility Performance with PCA]]></title>
            <link>https://medium.com/quantitative-insights/understanding-volatility-performance-with-pca-b89f797f3237?source=rss-e19d0a1b7af4------2</link>
            <guid isPermaLink="false">https://medium.com/p/b89f797f3237</guid>
            <category><![CDATA[options-trading]]></category>
            <category><![CDATA[volatility]]></category>
            <category><![CDATA[principal-component]]></category>
            <category><![CDATA[pnl]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Anthony Maylath]]></dc:creator>
            <pubDate>Sun, 05 Jul 2020 02:56:31 GMT</pubDate>
            <atom:updated>2020-07-21T06:00:03.243Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BsvhAm_UXC5JjFkuhWaLWQ.png" /></figure><p>Historical profit and loss data (PnL) can be a useful tool to inform decision making. When traders or portfolio mangers analyze PnL data, they typically look for trends that drive the attribution. For instance, if a trader holds long positions in ten stocks, she may find that large losses come from one particular stock. Such performance could be a signal to reduce exposure on the non-performing stock. It’s easy to visualize the analysis as we could simply plot our cumulative PnL with the stock price. Most likely, the large PnL occurred on days when the stock saw sharp declines. We could go a step further by attributing performance by sector among several stocks. For instance, maybe performance over the Technology sector was particularly poor.</p><p>In contrast to a portfolio of simple stocks, consider a portfolio of option contracts and assume we are mainly interested in volatility performance. We could proceed in the same way, attempting to identify single contracts or underlying stocks which drove performance. However, this is not the most effective approach as there are strong relationships between the implied volatility of different option contracts on the same underlying stock. If we don’t leverage these relationships, we would have to deal with potentially hundreds of contracts for each underlying stock in our portfolio, significantly complicating the analysis.</p><p>In this Medium story, we will show how we can use the Machine Learning technique, PCA (Principal Component Analysis), to aggregate the volatility surface into a few easily interpretable factors which leverage the relationships between option contracts. The PCA factors can be used to attribute portfolio performance to systematic movements in the volatility surface. Such a performance attribution can then be used by portfolio mangers to inform future position allocation and risk management.</p><h3>What is Implied Volatility?</h3><p>A trader needs to specify the following three parameters to execute a transaction in an equity option: the strike price of the option, the maturity of the option, and the stock or index underlying the option. For instance, the trader could buy a put option on Apple stock with strike $280 and maturity June 20, 2020. While the trader pays a dollar price for the option, market makers generally quote options by their implied volatility. Implied volatility is the inverse of the Black-Scholes pricing formula with respect to volatility and is typically obtained with numerical methods.</p><p>To get a better sense of implied volatility, Figure 1 shows volatility quotes for S&amp;P 500 index options by strike and maturity. For instance, if you want to buy an option with strike 3225.52 and maturity July 2020, you will pay 31 volatility points.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/926/1*wb2fTGNmdvJutBKZt9hFcQ.png" /><figcaption><strong>Figure 1: Sample Volatilities for S&amp;P 500 as of 1/31/2020</strong></figcaption></figure><p>Moneyness is often used in lieu of strike to standardize volatility quotes. Moneyness is the ratio of strike price and spot price for put options and the ratio of spot price and strike price for call options. For this article, we will simplify and assume moneyness is strike divided by spot, which tends to be market convention. Figure 2a shows the implied volatility plotted against the moneyness for S&amp;P 500 index options with 30 days to maturity. Notice volatilities with lower strikes are higher, indicating traders are willing to pay a premium for out-of-the-money puts. This relationship is known as the volatility skew and occurs as there is large demand for low strike puts to protect traders from market declines.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*S35OOSjqU6wacG9KxZe45A.png" /><figcaption>Figure 2a: Volatility Plotted Against Moneyness</figcaption></figure><p>The relationship between implied volatilities and the time to maturity is also important. Figure 2b plots this relationship for at-the-money S&amp;P 500 options. The relationship is known as the <em>Volatility Term Structure. </em>Notice implied volatility slowly increases with larger time to maturity. This upward sloping term structure is the typical configuration for implied volatility and occurs as there is greater uncertainty over longer periods. In periods of large market volatility, such as the Financial Crisis of 2008 or the COVID-19 Crisis of 2020, the short term implied volatility can actually spike above long term levels.</p><p>The PCA methods that we present later in the article will leverage the relationships between volatility, moneyness, and time to maturity to arrive at simplified volatility factors.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1022/1*Atg4nyrrI7ES2lCpZRbzDA.png" /><figcaption>Figure 2b: The Volatility Term Structure</figcaption></figure><h3><strong>Motivation</strong></h3><p>Say you start trading options on the S&amp;P 500 Index. You decide to trade new contracts every day and hold some positions overnight. Recalling that options are sensitive to movements in volatility, you want to analyze how changes in the implied volatility surface affected your positions over the past year. How can we check this? One basic approach is to simply take the difference between each point on the volatility surface over the past year and compare these differences to your initial positions in each contract. Say you try that and find that volatilities are exactly the same as last year. Does this mean volatility did not impact your trading PnL? No. There are two reasons why.</p><p>Assume, you have a portfolio of long options that expire in one year and do not actively trade on those options. Then, you are more sensitive to the changes in volatility earlier in the year than later in the year because of vega decay (options with longer time to maturity are more sensitive to volatility). If volatilities decline in the first half year, but increase back to the original value in the second half, you will lose money. Active trading can also cause PnL. Say you are long options at the beginning while volatilities decline, but flip to short while volatilities recover. Again, you lose money when the year over year volatility change is zero. In both cases, to know your profit and loss from volatility, we need to measure how the daily difference of the volatility surface affect our positions for every day of the year. This is not exactly easy to visualize with simple methods. We need a better method to track volatility.</p><h3><strong>Aggregating Volatility</strong></h3><p>Let’s go through a simple example to understand better how we can track the volatility surface. Assume all options on S&amp;P 500 with less than 1 year maturity have the same implied volatility. Likewise, assume all S&amp;P 500 options with more than 1 year remaining have the same volatility. Hence, if the 6 month 2500 strike contract moves up by 10% in a given day, you know the 1 month 3500 strike contract also moves up by 10%. Say you want to apply PCA to find the driving factors in this example. Could you guess what those factors will be? Hint: there are two factors. The first factor would be all options with less than one year remaining and the second factor would be all options with two years remaining. If you want to understand better how the two factors drove performance, you can compute the portion of PnL from each factor.</p><p>Equation 1 shows how to compute the PnL from the short term factor in this simple example. You simply subtract yesterday’s portfolio value from the portfolio value with factor 1 at today’s value and factor 2 at yesterday’s value. Do this for both factors over a one year period and add up the totals across dates. If one factor has relatively large PnL, you know that factor drove performance. In our simple example, if we see factor 1 PnL was much larger than factor 2 PnL, we know short term volatility was the driver of our performance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ByMySfgUAaTfMd8yq9LywQ.png" /><figcaption>Equation 1: Factor PnL from Short Term Volatility</figcaption></figure><h3><strong>Principal Component Analysis</strong></h3><p>PCA is a method to more easily understand variations in data with many features. The method has been routinely used in the world of finance to better understand the interest rate term structure. The term structure application has become so widespread that there is even a <a href="https://www.coursera.org/learn/interest-rate-models">Coursera course</a> covering the topic. However, while the application of PCA on equity volatility has been somewhat active in academia, it tends to be less frequently used by practitioners compared to its application on interest rate term structures. This is perhaps because the term structure is only two dimensional while the volatility surface is three dimensional, complicating the analysis and making results harder to visualize. Recent interesting work on volatility PCA in the literature includes Avellaneda, Healy, Papanicolaou and Papanicolaou (2020) where the first principal factor is related to an open interest weighting of option returns. Dobi (2014) relates the first principal factor of options on single stocks to systemic risk, similar to the CAPM model. In contrast, this Medium article will highlight performance attribution applications of PCA on volatility portfolios. Additionally, we place an emphasis on intuition and visualization to make the approach more easily accessible.</p><p><strong>A PCA Refresher</strong></p><p>Say we have a historical dataset of 20 different indicators. The principal components of the dataset are then the eigenvectors of the covariance matrix of these indicators while the eigenvalues of the covariance matrix represent the significance of each eigenvector. The eigenvector related to the largest eigenvalue is the first principal component. The eigenvector with the second largest eigenvalue is the second principal component, and so on. The first principal component represents the direction of largest variance in feature space while the second principal component represents the direction of largest variance which is unrelated to the first direction, and so on. Put more simply, the first principal component is the most important factor in the dataset. Typically, the first few principal components explain over 90% of the variation in the data, effectively reducing the number of dimensions in our original data set!</p><p><strong>Applying PCA to Volatility</strong></p><p>A simple way to apply PCA to the volatility surface is by treating each contract as a input feature. For instance, we could start by arranging the volatility data so that each past date is in the rows and each column represents an option contract. Figure 3 represents how the data should look for SPX index options. Notice each contract represents a moneyness and maturity pair. Maturity is expressed in days. Note that I display the data in Figure 3 in volatility units; however, you should difference and standardize the data before performing further computation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EwbziNxNmDCpCH9BMPOMnw.png" /><figcaption>Figure 3: Volatility Data Cleaned for PCA</figcaption></figure><p>After cleaning your data to appear in the shape presented in Figure 3, you can apply PCA. For my application, I used the <em>sklearn</em> package in Python. sklearn has a nice PCA function which you can read about <a href="https://scikit-learn.org/stable/modules/generated/sklearn.decomposition.PCA.html">here</a>. The results of the PCA include the factors and the singular values which are represented in an sklearn PCA object by the <em>components_</em> and <em>singular_values_ </em>variables<em> </em>respectively. The factors represent weightings on the columns seen in Figure 3. If we reshape our data back to three dimensions, then a given factor represents a weighted shock on the volatility surface.</p><p>Figure 4 graphs the first 4 PCA factors for S&amp;P 500 implied volatility over most of 2019 and early 2020. Figure 5 plots the relative importance of each of the four factors. The factors in Figure 4 can be interpreted as changes in the volatility surface on a particular day. For instance, factor 1 shifts short term volatilities up while shifting long term volatilities down. For the short term, there is also a smile effect where out-of-the-money vols have more significant moves. Factors 2 and 4 rotate the volatility smile with a large impact on short term contracts. Factor 3 applies a convexity effect with the largest shocks on at-the-money options and smaller impacts for long term vols. Figure 5 reveals that the first two factors explain nearly 90% of the variability in the observed volatility data.</p><p>Note that the shapes of the factor surfaces depend on the historical volatility fed into the PCA computation. Figure 4 uses data from 2019–2020; however, data from different periods can lead to different surface shapes. In other time periods, the first factor will often be a flat plane which represents a uniform shift of all volatilities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BsvhAm_UXC5JjFkuhWaLWQ.png" /><figcaption>Figure 4: First 4 Principal Factors</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*XjRwfjo8UMtdgykCmnilqg.png" /><figcaption>Figure 5: Relative Importance for the First Four Factors</figcaption></figure><p>As an alternative to the factors in Figure 4, we could simply apply a 1 dimensional (1D) PCA to the vol surface while keeping either moneyness or maturity constant. Figure 6 shows the first two 1-dimensional PCA factors with time to maturity held constant at 30 days. Factor 1 clearly shows a rotation effect while factor 2 shows a convexity effect.</p><p>While 1D PCA factors might be easier to interpret, they have some serious drawbacks. 1D factors assume either a constant maturity or smile. Hence, we need to perform PCA numerous times on each slice of the data to understand how volatilities move across all contract terms. Interaction between moneyness and maturity will be difficult to observe.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QGnvKK2G8Ym8evcyAdUufA.png" /><figcaption>Figure 6: First Two Principal Factors with Time to Maturity Constant at 30 Days</figcaption></figure><p>By applying each factor to the daily volatility surface, we plot the daily movements of each of the four factors in Figure 7. Notice factors 1 and 2 are much more dynamic than factors 3 and 4. To understand the interpretation of the projected factors, we look at the surfaces in Figure 4 and compare to the evolution of the factors in Figure 7. For instance, factor 1 tends to decline between days 50 through 200. This would correspond to larger long term volatilities and a sharp decline in short term out-of-the-money vols. Likewise, around day 125, we see a big spike in factor 3 which would correspond to larger at-the-money vols and smaller vols for options with low or high moneyness.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*4ve7VSpTD2oVYVfJcmZUCg.png" /><figcaption>Figure 7: First 4 PCA Factors Projected onto the Vol Surface over 1 Year</figcaption></figure><h3><strong>Performance Attribution</strong></h3><p>We now use the PCA factors to identify drivers of performance in an option portfolio. If you have experience with option pricing, you may have in mind several risk factors that affect option values such as the stock price or dividend rate. Here, we will only focus on volatility as it is the most complicated and interesting risk factor to model.</p><p>Given exposures over a period of time, we can estimate volatility PnL as the vega scaled by the change in volatility. As a reminder, vega is the PnL gained from a 1 point increase in volatility from a particular contract. It is your sensitivity to volatility. For instance, if volatility increases by 3 points, we estimate PnL at 3*vega. We estimate volatility PnL as the change in volatility scaled by vega exposure. Since the option price is not linear in volatility, this is an approximation to the actual volatility PnL. While the real volatility performance will be slightly different from this approximation, our linear approximation is robust enough to fully demonstrate the PCA attribution.</p><p><strong>Generating Vega Positions</strong></p><p>For the purpose of the article, I will generate random daily vega exposures from February 2019 through January 2020. The generated vegas will have relatively high exposure to short term out-of-the-money and at-the-money contracts as these options tend to be more liquid. Meanwhile, long term and in-the-money contracts will be engineered to have less exposure in the simulation. The random fluctuations in positions are proportional to the size of the current position so that the exposure in a particular contract tends to follow a relatively stable trajectory. I also place constraints on the size of the exposure. Traders typically do the same in practice to limit risk. For the initial vega, I limit the total exposure across contracts to $1 million. Each simulation results in vega exposures for 153 different S&amp;P 500 index options over 251 trading days.</p><p><strong>Computing the PNL</strong></p><p>To demonstrate the PCA factor attribution, we will compare the total PnL for each day to the factor PnL. If the PnL from a particular factor is a large percentage of the total PnL, then we can say the factor was a driver of performance.</p><p>To obtain the total PnL for one day, take the sum product of vegas and volatility differences across contracts, as seen in Equation 2. Note that the PnL formula only considers positions held overnight from the previous trade date. To simplify the analysis, we do not consider intraday performance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_rIt-FPI5bewm9zBLP4_AA.png" /><figcaption>Equation 2: Formula for Total PNL</figcaption></figure><p>To obtain the factor PnL, we need a few more steps. Say the P is a matrix containing the PCA factors in its rows. Also say V is a matrix containing the daily differences in implied volatilities with each row representing a contract and each column representing a trading date. The result of the matrix multiplication, P*V, will yield a matrix with a factor size difference for each trade date. Here, each factor is reduced to one number per day. Figure 7 plots the cumulative amount of these daily factors.</p><p>We can use the differences in the daily factors to obtain the PnL attribution. For instance, if we want to know how much PnL factor 1 generated on date t, we could take the factor vector and scale it by the change in factor 1 obtained by P*V. Call the resulting vector F. This represents the shocks to each volatility contract from factor 1. Finally, we take the sum product of F and our weighted vegas to get the factor 1 PnL. The general factor PnL is expressed in Equation 3.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V07C4J0vym1T7grqRJyf9Q.png" /><figcaption>Equation 3: Factor pnl Formula</figcaption></figure><p><strong>Simulation Results</strong></p><p>To ensure fidelity of the factor PnL explanation we first run a regression with the factor PnLs acting as the explanatory variables and the total PnL the dependent variable. If the regression results are good, it suggests that the factors have good explanatory power. I simulate positions and record volatility PnL for 1,200 days to produce the regression data.</p><p>Figure 8 shows the regression results generated with the <a href="https://www.statsmodels.org/devel/index.html">statsmodel</a> package in Python. Most of the figures look good with a high Adjusted R squared of 0.874 and high statistical significance of the first five factors (represented by x1, x2, x3, x4, and x5). This suggests that there is a strong statistical link between the PCA factors and the daily PnL.</p><p>While the regression t-statistics and R squared values look promising, the Jarque-Bera value is large due to significant excess kurtosis of the residuals. This is a violation of the regression assumptions and indicates that errors between our model and the actual value can be significant.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rYpfqv566VecJApJM4Fh7g.png" /><figcaption>Figure 8: Regression Results</figcaption></figure><p>To visualize the income attribution coming from the PCA factors, we use stacked bar charts. Factors with positive PnL will have bars above the x-axis while factors with negative PnL are below. The sum between the positive and negative bars is the total factor PnL for the factors appearing on in the graph.</p><p>Figure 9 shows the cumulative PnL results of a simulated options portfolio. This is a good example of volatility PnL that’s well explained by the first four factors as the total PnL line is close to the net height of the bars. In the beginning of the period, the PnL is relatively noisy with the results driven by factor 1 with factors 2 and 3 contributing slightly. Factor 1 drives results for the second half of the period.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9bxeVlPlZVRXd3He-KA4lw.png" /><figcaption>Figure 9: Simulated PNL Results</figcaption></figure><p>While not obvious in the graph, the simulated positions tend to be long factor 1 which hurts performance as this factor tended to decline over the period (see Figure 7). Keeping in mind the factor surfaces in Figure 4, we know losses in factor 1 indicate we suffered from a steepening in the volatility term structure with large declines over short term out-of-the-money volatilities (a steepening occurs when short term volatilities decrease while long term volatilities increase). Perhaps the performance pattern in Figure 9 may influence a trading team to reduce exposure in short term out-of-the-money options or increase the average maturity of the book.</p><p>Figure 10 shows another simulation example where the factor PnL well explains total PnL. The total PnL of the first five factors is plotted with a grey line.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fwPXclyCtrCy7A7ZusFukA.png" /><figcaption>Figure 10: Second Simulation with Offsetting Performance</figcaption></figure><p>The results in Figure 10 differ from the results in Figure 9 in a few ways. First, we add factor 5. It turns out factor 5 drives performance in the beginning of the period. In the latter half of the period, we can see offsetting PnL between factor 1 and factors 2 and 3. While factor 1 alone overestimates the total PnL, the offsetting factors bring the net factor estimates close to the total PnL. We can see this in the graph as the grey line tends to track the black line well.</p><p>The simulated portfolio in Figure 10 tends to be long factor 1 for most of the period which causes losses similar to what is seen in Figure 9. Different from Figure 9, the Figure 10 simulation takes important positions in factor 2 and factor 3 that mitigate the factor 1 losses. A strategist may use this information to flatten positions on factor 1 while keeping open positions in factors 2 and 3. Due to its status as the largest principal component, smaller factor 1 positions would significantly reduce PnL fluctuations. Meanwhile, maintaining positions over factors 2 and 3 will carry smaller a risk profile. Given the positive performance over the second two factors during the period, it may also make sense to allocate more capital to factors 2 and 3 due to their relative outperformance.</p><p><strong>When Things Go Wrong</strong></p><p>While results in Figures 9 and 10 are desirable, the excess kurtosis seen in Figure 8 can result in large errors between the total PnL and the factor PnL. Large errors can also occur if the option positions we hold are independent from the principal factors. For instance, if the portfolio is concentrated in at-the-money options with maturity around 6 months, factor 1 won’t explain much PnL because its shock on these contracts is small.</p><p>If the PnL from the largest factors does not explain total PnL, we could simply check other PCA factors. After all, if we add enough PCA factors we can perfectly replicate the total PnL. A potential problem with this approach is that each additional factor yields diminishing marginal benefit and often results in too many factors. If we need 20 factors to explain performance, the results may not be easy to interpret.</p><p>If adding more PCA factors does not work well, we could try a slightly different methodology. For instance, if our positions don’t vary much across moneyness, we could perform a 1D PCA across maturities, keeping moneyness constant. Alternatively, we could use a method other than PCA to obtain the factors. For instance, Cont and da Fonseca (2002) use Karhunen-Loeve decompositions to obtain factors. The method is similar in principal to PCA, but can produce different results that may better explain total PnL.</p><h3><strong>Concluding Remarks</strong></h3><p>When forming a volatility strategy, it is often helpful to know the drivers of past performance. However, given the three dimensional structure of the volatility surface, it’s difficult to visualize drivers of performance by computing the daily PnL over a long period.</p><p>To improve performance attribution, we showed a relatively simple method practitioners can use to identify patterns of volatility that drive portfolio performance. The method involves a principal component decomposition to identify the largest factors impacting the volatility surface. Such factors usually have nice geometric shapes as seen in Figure 4 and are often easy to interpret. We can use the most significant factors to shock a portfolio of options, producing factor attribution. The factors that have large PnL can be classified as the drivers of performance and could be used to influence risk management and portfolio allocation.</p><p>To achieve the results in this article, I flatten the volatility surface into a vector of contracts and apply standard PCA. More sophisticated methods exists which can produce potentially superior results. Particularly, the work of Cont and da Fonseca (2002) comes to mind. In their paper, the duo uses the Karhunen-Loeve decomposition to find the dominant volatility factors.</p><p>The application of PCA to volatility PnL goes beyond the historical performance analysis discussed in this article. The method can also be useful in stress testing. Rather than applying a uniform volatility stress to a portfolio (such as shocking all volatilities by -10%), we can instead shock the largest principal factors observed in the volatility data. When calibrating such a stressed shock, it might be helpful to compute principal components using data from a stressed period to best mimic how volatility will evolve in such an event. For a follow up to this article, it might be interesting to compare the stressed PnL from uniform shocks to the stressed PnL from principal component shocks.</p><h3><strong>Acknowledgments</strong></h3><p>Thanks to <strong>Andrew Papanicolaou </strong>(New York University)<strong> </strong>for reviewing this article and providing inspiration with his research on PCA.</p><p>Thanks to <strong>Balazs Khoor</strong> (Guggenheim Partners) and <strong>Sandeep Saju</strong> (Société Générale) for reviewing this article and providing constructive feedback.</p><h3>References</h3><p>Volatility Data Resourced from <a href="https://www.ivolatility.com/">https://www.ivolatility.com/</a></p><p><strong>Marco Avellaneda, Brian Healy, Andrew Papanicolaou and George Papanicolaou</strong>, “<em>PCA for Implied Volatility Surfaces.” </em>arXiv, January 2020</p><p><strong>Doris Dobi</strong>, “<em>Modeling Systemic Risk in The Options Marke</em>t.” New York University, May 2014</p><p><strong>Rama Cont and Jose da Fonseca, </strong><em>“Dynamics of implied volatility surfaces.” </em>Quantitative Finance, Volume 2. Institute of Physics Publishing<em>, </em>Feburary, 2002</p><p><strong>Karl Polen</strong>, “<em>Brinson Attribution.</em>” <a href="https://karlp-asrs.github.io/Brinson-attribution/brinson-attribution.html">https://karlp-asrs.github.io/Brinson-attribution/brinson-attribution.html</a></p><p><strong>Dimitris Lianoudakis, </strong><em>“Statistical Analysis of Volatility Surfaces.” </em>Concordia University, September, 2012</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b89f797f3237" width="1" height="1" alt=""><hr><p><a href="https://medium.com/quantitative-insights/understanding-volatility-performance-with-pca-b89f797f3237">Understanding Volatility Performance with PCA</a> was originally published in <a href="https://medium.com/quantitative-insights">Quantitative Insights</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Option Gamma Made Easy]]></title>
            <link>https://medium.com/quantitative-insights/option-gamma-made-easy-e88742fba696?source=rss-e19d0a1b7af4------2</link>
            <guid isPermaLink="false">https://medium.com/p/e88742fba696</guid>
            <category><![CDATA[quant]]></category>
            <category><![CDATA[options]]></category>
            <category><![CDATA[finance]]></category>
            <category><![CDATA[equity]]></category>
            <category><![CDATA[options-trading]]></category>
            <dc:creator><![CDATA[Anthony Maylath]]></dc:creator>
            <pubDate>Sat, 14 Dec 2019 23:06:46 GMT</pubDate>
            <atom:updated>2019-12-14T23:06:46.200Z</atom:updated>
            <content:encoded><![CDATA[<p>Gamma is among the most basic option Greeks, but tends to be much harder to understand than delta or vega. Recall, delta is the change in an option value when the underlying stock moves by one unit. Likewise, vega is the change in your option value when implied volatility moves by one unit. How do we practically interpret gamma?</p><p>In this writing, I will assume the reader knows basic Calculus and the basics of Black Scholes theory. If you find yourself in need of review, John Hull’s chapter, “The Greek Letters,” in his <em>Options and Futures</em> book will serve as a great refresher.</p><h3>Unitary Gamma Basics</h3><p>We define the second derivative of an option price with respect to the spot price as the <em>unitary gamma</em>. The concept on unitary delta is similarly defined for the first derivative of an option. The gamma captures the curvature of option price variations. In other words, it represents how unitary delta evolves.</p><p>Say you are a trader tasked with hedging a short call option. Assuming you delta hedge by purchasing the underlying stock, you will find a small mismatch between your hedge and the option value if the underlying spot price changes. The option and the hedge diverge when the underlying spot price moves far in one direction. Gamma actually captures the difference between the option and the hedge as the spot moves. The impact can be seen in Figure 1. When the spot goes up, the trader will need to increase the size of the delta hedge to minimize risk. This increased size roughly corresponds to the gamma for the example below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/568/1*--cgevERBNjj-aYrn2Rx-A.png" /><figcaption>Figure 1: An Option Price Compared with a Delta Hedge</figcaption></figure><p>A second important feature of gamma is that it peaks when the option is <em>at the money </em>(ATM). When the option is ATM, there is high uncertainty if it will expire in the money. Hence, the exposure will be volatile given changes to the spot price. Meanwhile, if an option is far in the money, it is almost certain it will expire in the money. In this case, exposure is more stable. See Figure 2 for the dynamics of gamma as the spot price changes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/570/1*yW5QLCBQnXwbbK_LsHbPsA.png" /><figcaption>Figure 2: Unit Gamma for Different Levels of Spot</figcaption></figure><h3>Dollar Gamma and its Interpretation</h3><p>Before building an interpretation of gamma, let’s build the concept of dollar delta. Dollar delta is defined as the total exposure of the option to the underlying spot price. It is how much the trader loses when the spot price goes to zero. Dollar delta is defined mathematically as <strong>Q*Δ*S</strong> where <strong>Q</strong> is the number of options, <strong>Δ</strong> is the delta of the option, and<strong> S</strong> is the underlying spot price.</p><p>Gamma has a similar concept called Dollar Gamma. Figure 3 shows the definition of dollar gamma where <strong>V</strong> is the value of the option. The interpretation is roughly the change in the option’s exposure when the spot changes by one unit. However, this interpretation is very approximate and may not be informative in particular scenarios. While dollar gamma does not have a clean interpretation, it is useful for computing the spot PnL of an option from the Greeks. Figure 4 shows the second order spot PnL of an option computed with the dollar gamma and represents the mathematics behind the blue curve in Figure 1. Generally, the second order approximation is relatively accurate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/270/1*7fsUKonOF-hIFk47kBC5Bw.png" /><figcaption>Figure 3: Dollar Gamma</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/882/1*aqJkxKpeYwGVRZxYuHVg4w.png" /><figcaption>Figure 4: Spot PnL — Second Order Approximation</figcaption></figure><p>To get a better sense of how the gamma impacts the dollar delta, we will take a Taylor Series of the dollar delta in Figure 5. I will assume the quantity, <strong>Q</strong>, is 1 to make the logic more simple. <strong>Δ(S)</strong> and <strong>Γ(S)</strong> represent the unit delta and gamma evaluated at price <strong>S</strong> respectively. The “<strong>$</strong>” symbol indicates dollar delta/gamma.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-7BoCnhIeP6pQ6IXDhHLqQ.png" /><figcaption>Figure 5: Change in Dollar Delta</figcaption></figure><p>The logic shows how to obtain a first order approximation of the change in dollar delta when the spot increases by one unit. Line 2 drops higher order terms while line 3 evaluates the derivative with the product rule. We notice the dollar gamma does not even fully explain the first order approximation.</p><p>If an option is ATM, then the dollar gamma term will tend to dominate changes in dollar delta. This occurs as the unit delta is around 0.5 for ATM options while gamma is maximized ATM. However, this will not be the case if an option is far in the money as unit gamma rapidly declines while delta converges to 1.</p><p>To make the dollar gamma more practical, Figure 6 defines a new metric. We will call it the adjusted dollar gamma. Unlike the dollar gamma, the adjusted dollar gamma can be accurately interpreted as the approximate change in dollar delta when the spot changes by one unit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/430/1*ezQBdN3OCjNXdyk0zT--9Q.png" /><figcaption>Figure 6: Adjusted Dollar Gamma</figcaption></figure><p>With the adjusted dollar gamma, we now have good a idea of how exposure will change with spot. In the process of obtaining this metric, we saw that the dollar delta represents the portfolios exposure. Also, we introduced a concept similar to the dollar delta called dollar gamma. While dollar gamma is useful for computing spot PnL, its practical interpretation is somewhat limited. This lead us to derive the adjusted dollar gamma which has a more practical interpretation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e88742fba696" width="1" height="1" alt=""><hr><p><a href="https://medium.com/quantitative-insights/option-gamma-made-easy-e88742fba696">Option Gamma Made Easy</a> was originally published in <a href="https://medium.com/quantitative-insights">Quantitative Insights</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>