{"id":15824,"date":"2021-10-29T14:44:26","date_gmt":"2021-10-29T12:44:26","guid":{"rendered":"https:\/\/quantpedia.com\/?p=15824"},"modified":"2025-06-04T14:28:14","modified_gmt":"2025-06-04T12:28:14","slug":"an-introduction-to-value-at-risk-methodologies","status":"publish","type":"post","link":"https:\/\/vvv.quantpedia.com\/es\/an-introduction-to-value-at-risk-methodologies\/","title":{"rendered":"An Introduction to Value at Risk Methodologies"},"content":{"rendered":"<p class=\"wp-block-paragraph\"><strong>Understanding the risks of any <a href=\"https:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/how-it-works\/\">quantitative trading strategy<\/a> is one of the pillars of successful <a href=\"https:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/theory-of-portfolio-management\/\">portfolio management<\/a>. Of course, we can hope for good future performance, but to survive market whipsaws, we must have tools for sound risk management. The &#8220;Value at Risk&#8221; measure is such a standard tool used to assess the riskiness of trading and investment strategies over time. We plan to unveil our new &#8220;Value at Risk&#8221; report for <a href=\"https:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/pricing-pro\/\">Quantpedia Pro<\/a> clients next week, and this article is our introduction to different methodologies that can be used for VaR calculation.<\/strong><\/p>\n\n\n\n<h2><span style=\"font-size: 18pt;\">Introduction<\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Value at Risk (VaR) is defined as the maximum loss with a given probability, in a set time period (such as a day), with an assumed probability distribution and under standard market conditions. In other words, it is a measure of the risk of loss for an investment. The most significant mathematical problem is that the true probability distribution of this loss (and underlying returns) is unknown.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">VaR mathematical definition:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"258\" height=\"37\" src=\"https:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/wp-content\/uploads\/2021\/05\/obr1-vzorec-general.png\" alt=\"VaR formula\" class=\"wp-image-12783\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The formula tells us what is the maximum loss we can expect tomorrow, with normal market conditions, or what amount of loss should we not exceed with a given level of probability (e.g. 95%).<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img fetchpriority=\"high\" decoding=\"async\" width=\"750\" height=\"370\" src=\"https:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/wp-content\/uploads\/2021\/05\/obr2-bell.curve_.png\" alt=\"bell curve\" class=\"wp-image-12784\" srcset=\"https:\/\/vvv.quantpedia.com\/wp-content\/uploads\/2021\/05\/obr2-bell.curve_.png 750w, https:\/\/vvv.quantpedia.com\/wp-content\/uploads\/2021\/05\/obr2-bell.curve_-300x148.png 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Let\u2019s say <em>a<\/em>=95% and VaR<sub>95%<\/sub>=3%, this tells us there is a 5% chance to <u>lose 3% or more<\/u> of a portfolio value in a given day. In other words, there is a 95% chance we will <u>not lose more than 3%<\/u> of portfolio value in a given day, under standard market conditions.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The main pros of VaR are the reaction time, it is easy to use, and it is widely spread, mostly in risk management. However, when looking at tail events (i.e. really negative days), it is less accurate and gives a less precise approximation of a risk compared to the e.g. CVaR (which we will talk about in the next section). To sum up, VaR doesn\u2019t model what happens in the tail, i.e. doesn\u2019t model the tail itself, only the threshold \u201cwhere the tail begins\u201d.<\/p>\n\n\n\n<h2><span style=\"font-size: 18pt;\">Calculation<\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Firstly, there are two main choices to make \u2013 the choice of the return distribution model and the choice of the model for volatility. We will examine 3 different models for the distribution of returns and 2 for the volatility. Secondly, we choose 1-day as our loss prediction horizon and 500 days (~2 years) as our historical lookback window. Thirdly, we will be calculating VaR for <em>a<\/em>=95%.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To make things a little simpler, our portfolio consists of only one asset: SPY ETF. As mentioned, there are many different ways to calculate VaR. We decided to analyse four of the widely used methods:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Historical simulation<\/li><li>Parametric Method (assuming Normal distribution)<\/li><li>Parametric Method combined with GARCH model for volatility<\/li><li>Monte Carlo simulation combined with GARCH model for volatility<\/li><\/ol>\n\n\n\n<h2><span style=\"font-size: 18pt;\">Historical Simulation<\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The main assumption of this model is that the probability distribution is the same as it was in the previous time period. Then, the calculation is pretty simple and we don\u2019t even need a model for volatility.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this case, we simply calculate VaR<sub>95% <\/sub>as 5<sup>th<\/sup>-quantile of the daily returns from the previous period (in our case, previous period = 500 days).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The main benefit of this method is the simplicity and no assumption about the distribution of the risk factors. However, the slow reaction and \u201cjumps\u201d in the case of market turbulence can be a great disadvantage.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The following figure presents daily returns and VaR calculated by this method. We can see the delayed response during times of heightened volatility and also vice versa, when these times end.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"750\" height=\"500\" src=\"https:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/wp-content\/uploads\/2021\/05\/obr3-VaR.Hist_.png\" alt=\"VaR calculated using Historical Method\" class=\"wp-image-12785\" srcset=\"https:\/\/vvv.quantpedia.com\/wp-content\/uploads\/2021\/05\/obr3-VaR.Hist_.png 750w, https:\/\/vvv.quantpedia.com\/wp-content\/uploads\/2021\/05\/obr3-VaR.Hist_-300x200.png 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/figure><\/div>\n\n\n\n<h3><span style=\"font-size: 14pt;\"><strong>Parametric Method<\/strong><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The baseline assumption of all parametric methods is that asset returns do follow a specific distribution. We used Normal distribution in our calculations combined with simple historical volatility, as a model for the volatility. Alternatively, Student\u2019s t-distribution is also widely used (and there are several additional ones as well).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The VaR<sub>95%<\/sub> is calculated as a mean return from the previous period (in our case 500 days) plus volatility of the daily returns from the previous period (in our case 500 days) multiplied by 5<sup>th<\/sup>-quantile of N(0,1) distribution:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"274\" height=\"42\" src=\"https:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/wp-content\/uploads\/2021\/05\/obr4-vzorec-Param.png\" alt=\"Formula for VaR using Parametric method\" class=\"wp-image-12786\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The assumption of a specific distribution is, naturally, never entirely realistic, which is one of the disadvantages of the method. Other disadvantages include slow reaction in turbulent times and the fact that calculating the average value of the past returns is not robust in terms of the selection of the time window.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">On the other hand, simplicity is the most significant advantage of this method and, compared to the historical simulation, it\u2019s generally quicker, smoother and more precise.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The following figure presents daily returns and VaR calculated by the parametric method using Normal distribution and historical volatility. Again, we can see the late response during times of a heightened volatility (although it\u2019s quicker compared to the historical simulation).&nbsp;&nbsp;<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"500\" src=\"https:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/wp-content\/uploads\/2021\/05\/obr5-VaR.Param_.png\" alt=\"VaR calculated using Parametric Method\" class=\"wp-image-12787\" srcset=\"https:\/\/vvv.quantpedia.com\/wp-content\/uploads\/2021\/05\/obr5-VaR.Param_.png 750w, https:\/\/vvv.quantpedia.com\/wp-content\/uploads\/2021\/05\/obr5-VaR.Param_-300x200.png 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/figure><\/div>\n\n\n\n<h3><span style=\"font-size: 14pt;\"><strong>Parametric Method combined with GARCH model for volatility<\/strong><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The third method we applied combines the previous parametric approach with the GARCH model for volatility. As a first step, for each day, we calculate past 20-day GARCH volatility. Then the process is almost identical to the previous method, with the only difference being that instead of using the historical volatility of the daily returns, we use the past 20-day GARCH volatility.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The VaR<sub>95% <\/sub>is then calculated as mean return from the previous period (in our case 500 days) plus past 20-day GARCH volatility multiplied by 5<sup>th<\/sup>-quantile of N(0,1) distribution:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"38\" src=\"https:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/wp-content\/uploads\/2021\/05\/obr6-vzorec-GARCH-300x38.png\" alt=\"Formula for VaR using Parametric method and GARCH volatility\" class=\"wp-image-12788\" srcset=\"https:\/\/vvv.quantpedia.com\/wp-content\/uploads\/2021\/05\/obr6-vzorec-GARCH-300x38.png 300w, https:\/\/vvv.quantpedia.com\/wp-content\/uploads\/2021\/05\/obr6-vzorec-GARCH.png 331w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The main advantage of this method is the GARCH process itself, which depends on past squared returns and past variances to model current variance. As the name suggests, this method is Auto-Regressive and assumes Conditional Heteroskedasticity. This is especially useful because volatility tends to vary in time and is dependent on past variance, making a homoscedastic model suboptimal.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The following figure presents daily returns and VaR calculated by the parametric method using Normal distribution combined with the GARCH model for volatility. This figure shows the fast response to times of heightened volatility.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"500\" src=\"https:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/wp-content\/uploads\/2021\/05\/obr7-VaR.Param_.GARCH_.png\" alt=\"VaR calculated using Parametric Method and GARCH volatility\" class=\"wp-image-12789\" srcset=\"https:\/\/vvv.quantpedia.com\/wp-content\/uploads\/2021\/05\/obr7-VaR.Param_.GARCH_.png 750w, https:\/\/vvv.quantpedia.com\/wp-content\/uploads\/2021\/05\/obr7-VaR.Param_.GARCH_-300x200.png 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/figure><\/div>\n\n\n\n<h3><span style=\"font-size: 14pt;\"><strong>Monte Carlo simulation combined with GARCH model for volatility<\/strong><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The last method we applied is similar to the previous method, however, instead of using 5<sup>th<\/sup>-quantile of N(0,1) distribution we, use Monte Carlo simulations. Each time we generate 500 realizations of a random variable from N(0,1), and subsequently calculate 5<sup>th<\/sup>-quantile of these simulations.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The VaR<sub>95%<\/sub> is then calculated as mean return from the previous period (in our case 500 days) plus past 20-day GARCH volatility multiplied by 5<sup>th<\/sup>-quantile of the generated variables:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"35\" src=\"https:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/wp-content\/uploads\/2021\/05\/obr8-vzorec-MonteCarlo-300x35.png\" alt=\"Formula for VaR using MonteCarlo method and GARCH volatility\" class=\"wp-image-12790\" srcset=\"https:\/\/vvv.quantpedia.com\/wp-content\/uploads\/2021\/05\/obr8-vzorec-MonteCarlo-300x35.png 300w, https:\/\/vvv.quantpedia.com\/wp-content\/uploads\/2021\/05\/obr8-vzorec-MonteCarlo.png 337w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The figure below presents daily returns and VaR calculated by this method. It is evident that the reaction time to the periods of heightened volatility is fast. Nevertheless, a difference between Monte Carlo method and usage of a standard z-score is only marginal, because simulations tend to converge to z-score with the growing number of runs.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"500\" src=\"https:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/wp-content\/uploads\/2021\/05\/obr9-VaR.MC_.GARCH_.png\" alt=\"VaR calculated using MonteCarlo Method and GARCH volatility\" class=\"wp-image-12791\" srcset=\"https:\/\/vvv.quantpedia.com\/wp-content\/uploads\/2021\/05\/obr9-VaR.MC_.GARCH_.png 750w, https:\/\/vvv.quantpedia.com\/wp-content\/uploads\/2021\/05\/obr9-VaR.MC_.GARCH_-300x200.png 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/figure><\/div>\n\n\n\n<h2><span style=\"font-size: 18pt;\">Conclusion<\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The following figure compares the VaRs calculated by the four different methods. We can clearly see that the methods that use GARCH volatility track the actual loss risk development most closely. Additionally, the difference between the historical method and the parametric method that uses N(0,1) is not that huge. The same applies to parametric method using GARCH compared to the Monter Carlo simulations with GARCH, which are almost identical.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"500\" src=\"https:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/wp-content\/uploads\/2021\/05\/obr10-VaR.porovnanie.png\" alt=\"Comparison of VaR calculated by all four methods\" class=\"wp-image-12792\" srcset=\"https:\/\/vvv.quantpedia.com\/wp-content\/uploads\/2021\/05\/obr10-VaR.porovnanie.png 750w, https:\/\/vvv.quantpedia.com\/wp-content\/uploads\/2021\/05\/obr10-VaR.porovnanie-300x200.png 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">The same chart for the period 2-year period 2019-2021:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"500\" src=\"https:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/wp-content\/uploads\/2021\/05\/obr11-VaR.porovnanieZOOM.png\" alt=\"Comparison of VaR calculated by all four methods for the period form 2019 to 2021\" class=\"wp-image-12793\" srcset=\"https:\/\/vvv.quantpedia.com\/wp-content\/uploads\/2021\/05\/obr11-VaR.porovnanieZOOM.png 750w, https:\/\/vvv.quantpedia.com\/wp-content\/uploads\/2021\/05\/obr11-VaR.porovnanieZOOM-300x200.png 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/figure><\/div>\n\n\n\n<table style=\"height: 10px; width: 99.99999999999999%; border-collapse: collapse; background-color: #bdced5; border-color: #bdced5; border-style: solid;\" border=\"10\">\n<tbody>\n<tr style=\"height: 43px;\">\n<td style=\"width: 570px; text-align: center; height: 10px;\"><span style=\"font-size: inherit; font-family: inherit;\">What about Data? Look at Quantpedia\u2019s <\/span><strong><a style=\"font-size: inherit; font-family: inherit;\" href=\"https:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/links-tools\/?category=algo-trading-discounts\">Algo Trading Discounts<\/a><\/strong><span style=\"font-size: inherit; font-family: inherit;\">.<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n\n\n\n<p class=\"wp-block-paragraph\">Furthermore, VaR can be used to analyse a whole portfolio, not just one asset. The historical and the parametric method work in a very similar manner also in multiple-assets case. However, things get more complicated with multidimensional GARCH and Monte Carlo. We will not cover the multi-asset case, to keep the report brief and clear.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Additionally, there is the possibility to evaluate how well VaR predicts the 5% (or 1-<em>a<\/em>) probability loss. What we use for such an analysis is the so-called backtesting. The backtesting works on the principle of checking how many times the real loss crossed (was bigger than) the VaR threshold. Numerous statistical tests analyse this, such as Kupiec\u2019s test based on Likelihood Ratio or Christoffersen\u2019s test.<\/p>\n\n\n\n<h2><strong><span style=\"font-size: 18pt;\">Conditional Value at Risk<\/span><\/strong><\/h2>\n\n\n\n<h2><span style=\"font-size: 18pt;\">Introduction<\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Conditional Value at Risk (CVaR), also known as the expected shortfall, is defined as a risk assessment measure that quantifies the amount of tail risk an investment portfolio has with a given probability distribution and standard market conditions. In other words \u2013 what will be the loss, if the \u201c5% probability loss\u201d occurs? &nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example, let\u2019s say <em>a<\/em>=95% and CVaR<sub>95%<\/sub>=4.5%. This tells us that in the worst 5% of the cases, the average loss is 4.5% of the asset value.<\/p>\n\n\n\n<h2><span style=\"font-size: 18pt;\">Calculation<\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Just like with VaR, there are multiple ways to calculate CVaR. We analyse the same four methods:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Historical simulation<\/li><li>Parametric Method (assuming Normal distribution)<\/li><li>Parametric Method combined with GARCH model for volatility<\/li><li>Monte Carlo simulation combined with GARCH model for volatility<\/li><\/ol>\n\n\n\n<h2><span style=\"font-size: 18pt;\">Historical Simulation<\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Assuming that the probability distribution is the same as it was in the previous time period, the calculation is pretty simple. CVaR is the average of the daily returns (in our case, from the past 500 days) that are lower than the VaR value.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The following figure shows the difference between VaR and CVaR calculated by the historical method. Once again, we can see a lag in the reaction to the more volatile time periods.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"500\" src=\"https:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/wp-content\/uploads\/2021\/05\/obr12-VaRCVaR.Hist_.png\" alt=\"VaR and CVaR calculated using Historical method\" class=\"wp-image-12794\" srcset=\"https:\/\/vvv.quantpedia.com\/wp-content\/uploads\/2021\/05\/obr12-VaRCVaR.Hist_.png 750w, https:\/\/vvv.quantpedia.com\/wp-content\/uploads\/2021\/05\/obr12-VaRCVaR.Hist_-300x200.png 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/figure><\/div>\n\n\n\n<h3><strong><span style=\"font-size: 14pt;\">Parametric Method<\/span><\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">There are two ways to approach this method. The first one uses just a simple average below VaR threshold, just like the historical method \u2013 but the VaR threshold is calculated according to the parametric method. The second approach involves an exact formula. Let us briefly explain both methods.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The first approach calculates CVaR as the average of the daily returns (in our case, from the past 500 days) that are lower than the VaR value calculated using the parametric method.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The second approach calculates CVaR as a mean daily return (from past 500 days) plus volatility of the returns, times <em>Z<\/em>:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"266\" height=\"38\" src=\"https:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/wp-content\/uploads\/2021\/05\/obr13-vzorec-CVaR.png\" alt=\"formula for CVaR\" class=\"wp-image-12795\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Where<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"155\" height=\"54\" src=\"https:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/wp-content\/uploads\/2021\/05\/obr14-vzorec-Z.png\" alt=\"formula for Z\" class=\"wp-image-12796\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">and <em>z <\/em>is (1-<em>a<\/em>)<sup>th<\/sup>-quantile of N(0,1) distribution.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The following figure compares CVaR calculated by both of the methods and VaR calculated using the parametric method. For the sake of brevity, we will be using only CVaR calculated as the average of the values that are lower than the VaR threshold in all further calculations.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"500\" src=\"https:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/wp-content\/uploads\/2021\/05\/obr15-VaRCVaR.Param_.png\" alt=\"VaR and CVaR calculated using Parametric method\" class=\"wp-image-12797\" srcset=\"https:\/\/vvv.quantpedia.com\/wp-content\/uploads\/2021\/05\/obr15-VaRCVaR.Param_.png 750w, https:\/\/vvv.quantpedia.com\/wp-content\/uploads\/2021\/05\/obr15-VaRCVaR.Param_-300x200.png 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/figure><\/div>\n\n\n\n<h3><strong><span style=\"font-size: 14pt;\">Parametric Method combined with GARCH model for volatility<\/span><\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The third method we applied combines the approach from the previous method with the GARCH model for calculating volatility. Everything is the same as in VaR calculations for this method.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We calculate CVaR as the average of the daily returns (in our case, from the past 500 days) that are lower than the VaR value calculated using the parametric method combined with the GARCH model.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The figure below shows the difference between VaR and CVaR calculated using the parametric method with the GARCH model for volatility.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"500\" src=\"https:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/wp-content\/uploads\/2021\/05\/obr16-VaRCVaR.Param_.GARCH_.png\" alt=\"VaR and CVaR calculated using Parametric method and GARCH volatility\" class=\"wp-image-12798\" srcset=\"https:\/\/vvv.quantpedia.com\/wp-content\/uploads\/2021\/05\/obr16-VaRCVaR.Param_.GARCH_.png 750w, https:\/\/vvv.quantpedia.com\/wp-content\/uploads\/2021\/05\/obr16-VaRCVaR.Param_.GARCH_-300x200.png 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/figure><\/div>\n\n\n\n<h3><strong><span style=\"font-size: 14pt;\">Monte Carlo simulation combined with GARCH model for volatility<\/span><\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Once again, the last method we applied uses Monte Carlo simulations instead of using (1-<em>a<\/em>)<sup>th<\/sup>-quantile of N(0,1) distribution. Each time we generate 500 realizations of random variable N(0,1) and calculate (1-<em>a<\/em>)<sup>th<\/sup>-quantile of the results.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The CVaR<sub>(1-<\/sub><sub>\u03b1)<\/sub><sub>&nbsp; <\/sub>is then calculated as the average of the daily returns (in our case, from the past 500 days) that are lower than the VaR value calculated using the same method.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The figure below presents daily returns, VaR and CVaR calculated by this method.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"500\" src=\"https:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/wp-content\/uploads\/2021\/05\/obr17-VaRCVaR.MC_.GARCH_.png\" alt=\"VaR and CVaR calculated using MonteCarlo method and GARCH volatility\" class=\"wp-image-12799\" srcset=\"https:\/\/vvv.quantpedia.com\/wp-content\/uploads\/2021\/05\/obr17-VaRCVaR.MC_.GARCH_.png 750w, https:\/\/vvv.quantpedia.com\/wp-content\/uploads\/2021\/05\/obr17-VaRCVaR.MC_.GARCH_-300x200.png 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/figure><\/div>\n\n\n\n<h2><span style=\"font-size: 18pt;\">Conclusion<\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The following figure compares four different CVaR methods. For calculation we use a simple average of the values below correspondent VaR threshold. GARCH volatility seems to be the main deal breaker when it comes to the faster reaction time during volatile periods.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"500\" src=\"https:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/wp-content\/uploads\/2021\/05\/obr18-CVaR.porovnanie.png\" alt=\"Comparison of CVaR calculated by all four methods\" class=\"wp-image-12800\" srcset=\"https:\/\/vvv.quantpedia.com\/wp-content\/uploads\/2021\/05\/obr18-CVaR.porovnanie.png 750w, https:\/\/vvv.quantpedia.com\/wp-content\/uploads\/2021\/05\/obr18-CVaR.porovnanie-300x200.png 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/figure><\/div>\n\n\n\n<h2><span style=\"font-size: 18pt;\"><strong>Conditional Drawdown at Risk<\/strong><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Conditional Drawdown at Risk (CDaR) is defined as the average drawdown for all the occurrences in which the drawdown exceeds a certain threshold. The logic is very similar to CVaR, we\u2019re just using drawdowns instead.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The key assumption is that the probability distribution is the same as in the previous period (in our case, the time period is 500 days). Then the calculation is pretty simple. Firstly, we set a significance level <em>a<\/em> (in our case <em>a<\/em><em>=95%<\/em>). Secondly, we calculate CDaR<sub>95%<\/sub> as the average of the drawdowns from the previous period that are lower than the 5<sup>th<\/sup>-quantile of the drawdowns from the previous period.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So, for example, if <em>a<\/em>=95% and CDaR<sub>95%<\/sub> = -16%, this tells us that in the worst 5% of the cases, the average drawdown is -16%.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The following figure shows the drawdowns and the CDaR.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"500\" src=\"https:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/wp-content\/uploads\/2021\/05\/obr19-CDaR.png\" alt=\"CDaR calculated using Historical Method\" class=\"wp-image-12801\" srcset=\"https:\/\/vvv.quantpedia.com\/wp-content\/uploads\/2021\/05\/obr19-CDaR.png 750w, https:\/\/vvv.quantpedia.com\/wp-content\/uploads\/2021\/05\/obr19-CDaR-300x200.png 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Author:<br><\/strong><strong>Daniela Hanicova, Quant Analyst, Quantpedia<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"wp-block-paragraph\" id=\"block-854363cc-8450-4dc0-a06a-c737766e9431\"><strong>Are you looking for more strategies to read about? <a href=\"https:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/sign-up-for-our-newsletter\/\">Sign up for our newsletter<\/a> or visit our <a href=\"https:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/blog\/\">Blog<\/a> or <a href=\"http:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/Screener\">Screener<\/a><\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\" id=\"block-65925002-6290-4d3b-b5cd-f3a277851ec8\"><strong>Do you want to learn more about Quantpedia Premium service? Check <a href=\"https:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/how-it-works\/\">how Quantpedia works<\/a>, <a href=\"http:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/Home\/About\">our mission<\/a> and <a href=\"https:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/pricing\/\">Premium pricing offer<\/a>.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\" id=\"block-34bf63ae-5a22-40a3-aeb4-769374e833d8\"><strong>Do you want to learn more about Quantpedia Pro service? Check its <a href=\"https:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/how-it-works\/quantpedia-pro\/\">description<\/a>, watch <a href=\"https:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/how-it-works\/quantpedia-explains\/\">videos<\/a>, review <a href=\"https:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/how-it-works\/quantpedia-pro-reports\/\">reporting capabilities<\/a> and visit our <a href=\"https:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/pricing-pro\/\">pricing offer<\/a>.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\" id=\"block-21942b3a-14d9-4c0f-b8ef-04d64675e253\"><strong>Are you looking for historical data or backtesting platforms? Check our list of&nbsp;<a href=\"https:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/links-tools\/?category=algo-trading-discounts\">Algo Trading Discounts<\/a><\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Would you like free access to <a href=\"https:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/pricing\/\" title=\"\">our services<\/a>? Then, <a href=\"https:\/\/lightspeed.com\/lp\/quantpedia-lightspeed-financial-services-group-one-free-year-promotion\" title=\"\">open an account with Lightspeed<\/a> and enjoy one year of Quantpedia Premium at no cost.<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"wp-block-paragraph\" id=\"block-4c45d6c9-c8dd-4283-8743-bf573cfa4d45\"><strong>Or follow us on:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\" id=\"block-476e95ed-31a5-4c4d-b701-5203f9fb2e24\"><strong>Facebook <a href=\"https:\/\/www.facebook.com\/groups\/quantstrategies\">Group<\/a>, Facebook <a href=\"https:\/\/www.facebook.com\/quantpedia\/\">Page<\/a>, <a href=\"https:\/\/twitter.com\/quantpedia\">Twitter<\/a>, <a href=\"https:\/\/www.linkedin.com\/company\/quantpedia\">Linkedin<\/a>, <a href=\"https:\/\/quantpedia.medium.com\/\">Medium<\/a> or <a href=\"https:\/\/www.youtube.com\/channel\/UC_YubnldxzNjLkIkEoL-FXg\">Youtube<\/a><\/strong><\/p>","protected":false},"excerpt":{"rendered":"<p><strong>Understanding the risks of any <a href=\"https:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/how-it-works\/\">quantitative trading strategy<\/a> is one of the pillars of successful <a href=\"https:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/theory-of-portfolio-management\/\">portfolio management<\/a>. Of course, we can hope for good future performance, but to survive market whipsaws, we must have tools for sound risk management. The &#8220;Value at Risk&#8221; measure is such a standard tool used to assess the riskiness of trading and investment strategies over time. We plan to unveil our new &#8220;Value at Risk&#8221; report for <a href=\"https:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/pricing-pro\/\">Quantpedia Pro<\/a> clients next week, and this article is our introduction to different methodologies that can be used for VaR calculation.<\/strong><\/p>","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[159,182],"class_list":["post-15824","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-own-research","tag-theory-of-portfolio-management"],"_links":{"self":[{"href":"https:\/\/vvv.quantpedia.com\/es\/wp-json\/wp\/v2\/posts\/15824","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vvv.quantpedia.com\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vvv.quantpedia.com\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vvv.quantpedia.com\/es\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/vvv.quantpedia.com\/es\/wp-json\/wp\/v2\/comments?post=15824"}],"version-history":[{"count":0,"href":"https:\/\/vvv.quantpedia.com\/es\/wp-json\/wp\/v2\/posts\/15824\/revisions"}],"wp:attachment":[{"href":"https:\/\/vvv.quantpedia.com\/es\/wp-json\/wp\/v2\/media?parent=15824"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vvv.quantpedia.com\/es\/wp-json\/wp\/v2\/categories?post=15824"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vvv.quantpedia.com\/es\/wp-json\/wp\/v2\/tags?post=15824"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}