{"id":7440,"date":"2012-06-04T10:19:58","date_gmt":"2012-06-04T09:19:58","guid":{"rendered":"https:\/\/www.portfolioprobe.com\/?p=7440"},"modified":"2012-07-04T08:35:53","modified_gmt":"2012-07-04T07:35:53","slug":"variability-in-maximum-drawdown","status":"publish","type":"post","link":"https:\/\/www.portfolioprobe.com\/2012\/06\/04\/variability-in-maximum-drawdown\/","title":{"rendered":"Variability in maximum drawdown"},"content":{"rendered":"<p>Maximum drawdown is blazingly variable.<\/p>\n<h2>Psychology<\/h2>\n<p>Probably the most salient feature that an investor notices is the amount lost since the peak: that is, the maximum drawdown.<\/p>\n<p>Just because drawdown is noticeable doesn&#8217;t mean it is best to notice.<\/p>\n<h2>Statistics<\/h2>\n<p>The paper <a href=\"http:\/\/papers.ssrn.com\/sol3\/papers.cfm?abstract_id=2049584\" target=\"_blank\">&#8220;About the statistics of the maximum drawdown in financial time series&#8221;<\/a> explores drawdown analytically.\u00a0 The interesting part for me is Figures 14 onwards (which start on page 14).\u00a0 The pictures imply that the maximum drawdown could have been pretty much anything.<\/p>\n<p>In the post <a href=\"https:\/\/www.portfolioprobe.com\/2012\/02\/29\/a-minimum-variance-portfolio-in-2011\/\">&#8220;A minimum variance portfolio in 2011&#8221;<\/a> we explored a particular portfolio. Figure 1 shows its value through 2011.\u00a0 We&#8217;ll use this as our example.<\/p>\n<p>Figure 1: The value of the portfolio throughout 2011. <a href=\"https:\/\/www.portfolioprobe.com\/2012\/06\/04\/variability-in-maximum-drawdown\/minvarval-2\/\" rel=\"attachment wp-att-7442\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7442\" title=\"minvarval\" src=\"https:\/\/www.portfolioprobe.com\/wp-content\/uploads\/2012\/06\/minvarval.png\" alt=\"\" width=\"512\" height=\"480\" srcset=\"https:\/\/www.portfolioprobe.com\/wp-content\/uploads\/2012\/06\/minvarval.png 512w, https:\/\/www.portfolioprobe.com\/wp-content\/uploads\/2012\/06\/minvarval-250x234.png 250w\" sizes=\"(max-width: 512px) 100vw, 512px\" \/><\/a><\/p>\n<p>The maximum drawdown of this portfolio is 11.1%.<\/p>\n<p>It is almost true that we shouldn&#8217;t care what order the returns arrive in as long as we get the same set of returns over the year.\u00a0 In other words, we should be just as happy with each permutation of the order of the returns of our portfolio.<\/p>\n<p>Figure 2 shows the maximum drawdown distribution for random permutations of the returns of our portfolio.\u00a0 Remember that the return over the year is precisely the same for all the portfolios with these drawdowns.<\/p>\n<p>Figure 2: Distribution of maximum drawdown from permutations of the portfolio returns, with 95% confidence interval (gold lines). <a href=\"https:\/\/www.portfolioprobe.com\/2012\/06\/04\/variability-in-maximum-drawdown\/maxdrawden\/\" rel=\"attachment wp-att-7453\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7453\" title=\"maxdrawden\" src=\"https:\/\/www.portfolioprobe.com\/wp-content\/uploads\/2012\/06\/maxdrawden.png\" alt=\"\" width=\"512\" height=\"480\" srcset=\"https:\/\/www.portfolioprobe.com\/wp-content\/uploads\/2012\/06\/maxdrawden.png 512w, https:\/\/www.portfolioprobe.com\/wp-content\/uploads\/2012\/06\/maxdrawden-250x234.png 250w\" sizes=\"(max-width: 512px) 100vw, 512px\" \/><\/a>We can easily get maximum drawdowns from 7% to 17% <strong>using the exact same returns<\/strong>.<\/p>\n<p>Given the big drop at the beginning of August, we might be led to think that the real maximum drawdown would be large relative to the possibilities over the permutations.\u00a0 Actually it is only slightly larger than the mean.<\/p>\n<p>What do worst-case and best-case profiles look like?\u00a0 Figure 3 shows a permutation that comes close to maximizing the drawdown and Figure 4 shows one that comes close to minimizing drawdown.<\/p>\n<p>Figure 3: Permutation of the portfolio returns that produces a large drawdown. <a href=\"https:\/\/www.portfolioprobe.com\/2012\/06\/04\/variability-in-maximum-drawdown\/maxdrawmax\/\" rel=\"attachment wp-att-7456\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7456\" title=\"maxdrawmax\" src=\"https:\/\/www.portfolioprobe.com\/wp-content\/uploads\/2012\/06\/maxdrawmax.png\" alt=\"\" width=\"512\" height=\"480\" srcset=\"https:\/\/www.portfolioprobe.com\/wp-content\/uploads\/2012\/06\/maxdrawmax.png 512w, https:\/\/www.portfolioprobe.com\/wp-content\/uploads\/2012\/06\/maxdrawmax-250x234.png 250w\" sizes=\"(max-width: 512px) 100vw, 512px\" \/><\/a><\/p>\n<p>Figure 4: Permutation of the portfolio returns that produces a small drawdown. <a href=\"https:\/\/www.portfolioprobe.com\/2012\/06\/04\/variability-in-maximum-drawdown\/maxdrawmin\/\" rel=\"attachment wp-att-7457\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7457\" title=\"maxdrawmin\" src=\"https:\/\/www.portfolioprobe.com\/wp-content\/uploads\/2012\/06\/maxdrawmin.png\" alt=\"\" width=\"512\" height=\"480\" srcset=\"https:\/\/www.portfolioprobe.com\/wp-content\/uploads\/2012\/06\/maxdrawmin.png 512w, https:\/\/www.portfolioprobe.com\/wp-content\/uploads\/2012\/06\/maxdrawmin-250x234.png 250w\" sizes=\"(max-width: 512px) 100vw, 512px\" \/><\/a><\/p>\n<p>Large drawdowns occur when the negative returns are all bunched together.\u00a0 Small drawdowns happen when the negative returns are evenly spread.<\/p>\n<p>Above I said we should be <strong>almost<\/strong> indifferent to different permutations of the returns.\u00a0 The catch is that we need to believe that there is <a href=\"https:\/\/www.portfolioprobe.com\/2010\/12\/27\/the-tightrope-of-the-random-walk\/\">neither momentum nor mean-reversion<\/a>.\u00a0 In Figure 3 we have selected for momentum, and we have selected for mean-reversion in Figure 4.<\/p>\n<p>You may be wondering what the equivalent pictures to Figures 3 and 4 are when the overall return is negative.\u00a0 Obviously the maximum drawdown has to be at least as big as the overall loss.\u00a0 To get big drawdowns the strategy remains the same &#8212; push all the negative returns together.<\/p>\n<p>Figure 5 shows an example of\u00a0 minimizing the maximum drawdown when there is an overall loss &#8212; create multiple drawdowns of the same size.\u00a0 That is the strategy with overall gains as well, but less obvious on first sight.<\/p>\n<p>Figure 5: Permutation of the negative portfolio returns that produces a small drawdown. <a href=\"https:\/\/www.portfolioprobe.com\/2012\/06\/04\/variability-in-maximum-drawdown\/maxdrawneg\/\" rel=\"attachment wp-att-7482\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7482\" title=\"maxdrawneg\" src=\"https:\/\/www.portfolioprobe.com\/wp-content\/uploads\/2012\/06\/maxdrawneg.png\" alt=\"\" width=\"512\" height=\"480\" srcset=\"https:\/\/www.portfolioprobe.com\/wp-content\/uploads\/2012\/06\/maxdrawneg.png 512w, https:\/\/www.portfolioprobe.com\/wp-content\/uploads\/2012\/06\/maxdrawneg-250x234.png 250w\" sizes=\"(max-width: 512px) 100vw, 512px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<h2>Summary<\/h2>\n<p>While maximum drawdown is emotionally compelling, it is not statistically compelling at all.\u00a0 My guess is that trying to ignore it might lead to better investment decisions.\u00a0 Other opinions?<\/p>\n<h2>See also<\/h2>\n<p>It so happens that <strong>Timely Portfolio<\/strong> just had a <a href=\"http:\/\/timelyportfolio.blogspot.co.uk\/2012\/05\/conditional-drawdown-exploration.html\" target=\"_blank\">post on drawdown<\/a> as well.<\/p>\n<p><strong>Update (2012 July 04)<\/strong>: Slides from a talk on a theoretical analysis of drawdown are <a href=\"http:\/\/www.cs.rpi.edu\/~magdon\/talks\/mdd_NYU04.pdf\" target=\"_blank\">&#8220;An Analysis of the Maximum Drawdown Risk Measure&#8221;<\/a> by Malik Magdon-Ismail.<\/p>\n<h2>Epilogue<\/h2>\n<blockquote><p>I&#8217;m a poor wayfarin&#8217; stranger<br \/>\nI have nothin&#8217; left to lose<br \/>\nI have fallen down the mountain<br \/>\nWretched righteous, flesh for fools<\/p><\/blockquote>\n<p>from \u201cDown the Mountain\u201d by Robin E. Contreras<br \/>\n<object width=\"520\" height=\"293\" classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=6,0,40,0\"><param name=\"allowFullScreen\" value=\"true\" \/><param name=\"allowscriptaccess\" value=\"always\" \/><param name=\"src\" value=\"http:\/\/www.youtube.com\/v\/Oa0N202oYC8?version=3&amp;hl=en_GB\" \/><param name=\"allowfullscreen\" value=\"true\" \/><embed width=\"520\" height=\"293\" type=\"application\/x-shockwave-flash\" src=\"http:\/\/www.youtube.com\/v\/Oa0N202oYC8?version=3&amp;hl=en_GB\" allowFullScreen=\"true\" allowscriptaccess=\"always\" allowfullscreen=\"true\" \/><\/object><\/p>\n<h2>Appendix R<\/h2>\n<p>There were two <a href=\"https:\/\/www.portfolioprobe.com\/user-area\/some-hints-for-the-r-beginner\/\">R<\/a> functions written for this.\u00a0 The first computes the maximum drawdown given a wealth curve:<\/p>\n<pre>&gt; pp.maxdrawdown\r\nfunction (wealth)\r\n{\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 max(1 - wealth \/ cummax(wealth))\r\n}<\/pre>\n<p>If you have simple returns, then you can use the <code>maxDrawdown<\/code> function from the <code>PerformanceAnalytics<\/code> package.\u00a0 Note that the use of log returns is not supported &#8212; at least currently &#8212; in this function.<\/p>\n<p>The second function that was written collects the minimum and maximum of the maximum drawdowns over permutations of the returns:<\/p>\n<pre>&gt; pp.collectdd\r\nfunction (ret, trials=1e4)\r\n{\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 mind &lt;- Inf\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 maxd &lt;- -Inf\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 for(i in 1:trials) {\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 wealth &lt;- exp(c(0, cumsum(sample(ret))))\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 td &lt;- pp.maxdrawdown(wealth)\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 if(td &lt; mind) {\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 mind &lt;- td\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 minw &lt;- wealth\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 if(td &gt; maxd) {\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 maxd &lt;- td\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 maxw &lt;- wealth\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 list(min.drawdown=mind, min.wealth=minw,\r\n                max.drawdown=maxd, max.wealth=maxw)\r\n}<\/pre>\n<p>There was not much sense in writing a function to get the distribution of maximum drawdowns from permutations &#8212; just a couple lines of code sufficed:<\/p>\n<pre>&gt; op2.mv.mddd &lt;- numeric(1e4)\r\n&gt; for(i in 1:1e4) op2.mv.mddd[i] &lt;- pp.maxdrawdown(\r\n+     exp(cumsum(c(0, sample(op2.mv.logret)))))\r\n&gt; plot(density(op2.mv.mddd * 100))<\/pre>\n<p><a href=\"http:\/\/feedburner.google.com\/fb\/a\/mailverify?uri=PortfolioProbe&amp;loc=en_US\" target=\"_blank\">Subscribe to the Portfolio Probe blog by Email<\/a><\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>Maximum drawdown is blazingly variable. Psychology Probably the most salient feature that an investor notices is the amount lost since the peak: that is, the maximum drawdown. Just because drawdown is noticeable doesn&#8217;t mean it is best to notice. Statistics The paper &#8220;About the statistics of the maximum drawdown in financial time series&#8221; explores drawdown &hellip; <a href=\"https:\/\/www.portfolioprobe.com\/2012\/06\/04\/variability-in-maximum-drawdown\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,6],"tags":[248],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.portfolioprobe.com\/wp-json\/wp\/v2\/posts\/7440"}],"collection":[{"href":"https:\/\/www.portfolioprobe.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.portfolioprobe.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.portfolioprobe.com\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.portfolioprobe.com\/wp-json\/wp\/v2\/comments?post=7440"}],"version-history":[{"count":0,"href":"https:\/\/www.portfolioprobe.com\/wp-json\/wp\/v2\/posts\/7440\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.portfolioprobe.com\/wp-json\/wp\/v2\/media?parent=7440"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.portfolioprobe.com\/wp-json\/wp\/v2\/categories?post=7440"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.portfolioprobe.com\/wp-json\/wp\/v2\/tags?post=7440"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}