{"id":2113673,"date":"2019-09-26T20:56:50","date_gmt":"2019-09-26T15:26:50","guid":{"rendered":"http:\/\/stockviz.biz\/index.php\/?p=2113673"},"modified":"2019-09-26T20:57:03","modified_gmt":"2019-09-26T15:27:03","slug":"does-momentum-trend-or-mean-revert","status":"publish","type":"post","link":"https:\/\/stockviz.biz\/index.php\/2019\/09\/26\/does-momentum-trend-or-mean-revert\/","title":{"rendered":"Does Momentum Trend or Mean-Revert?"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">Outline<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">We consider long-only momentum returns to be composed of market returns <em>plus<\/em> excess returns.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If excess returns over a specified period, <em>n-days,<\/em> (say, 5- or 10-days) either trends or mean-reverts, then that can be used to trade the momentum portfolio.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">One way to check if a time-series is trending is to calculate the Hurst exponent (<strong>H<\/strong>) over a rolling window (say, 5-years) of <em>n-day <\/em>excess returns . If <strong>H<\/strong> &lt; 0.5, then the time-series is mean-reverting; if <strong>H<\/strong> &gt; 0.5, then it is trending, else it is random.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A simple strategy would be, for <strong>H<\/strong> &lt; 0.5 (mean-reverting), if excess returns is greater than its median, then exit <strong>or<\/strong> if excess returns is less than its median, then enter.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The problem boils down to specifying the excess-return calculation periods (<em>n-days<\/em>) and the Hurst exponent rolling windows so that it makes sense (avoid data-mining.)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Setup<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">We use the Barclays Euro-zone, UK, Japan and US momentum index data-sets to run our experiment. Since they provide both an excess-return index and a total-return index, we can use the former to time entries and exits in the latter.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We ran for two <em>n-day<\/em> configurations: 5 and 10. We set the Hurst (and median) rolling window at 5-years. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We expected to find <strong>H<\/strong> to be either consistently above or below 0.5. My personal expectation was that <strong>H<\/strong> would be above 0.5 (trend.)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Results<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Using the Hurst exponent did not improve momentum returns. In both <em>5-day<\/em> and <em>10-day<\/em> configurations, a strategy that went long if <em>n-day<\/em> returns were less than their median out-performed those that incorporated <strong>H<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The back-test using <em>5-day<\/em> returns mostly worked on Euro-zone and US momentum indices. So we are skeptical that this approach can be generalized and it will likely fall prey to data-mining.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The back-test using <em>10-day<\/em> returns saw buy-and-hold emerge a consistent winner.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The <em>5-day<\/em> <strong>H<\/strong> toggled between <em>trending<\/em> and <em>mean-reverting<\/em> but spent most of its time <em>trending<\/em>. The <em>10-day<\/em> <strong>H<\/strong> was consistently <em>trending<\/em>. For the specifications that we tested, <strong>momentum excess returns trends<\/strong>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Code and Charts<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The R code is here: <a rel=\"noreferrer noopener\" aria-label=\"5-day (opens in a new tab)\" href=\"https:\/\/nbviewer.jupyter.org\/github\/stockviz\/plutons\/blob\/e48d67af5e4a9ddb7dddab7028402638dc18e40e\/momentum-mean-reversion.ipynb\" target=\"_blank\">5-day<\/a> and <a rel=\"noreferrer noopener\" aria-label=\"10-day (opens in a new tab)\" href=\"https:\/\/nbviewer.jupyter.org\/github\/stockviz\/plutons\/blob\/59ac60e62837cf480d7a24b89d84dbd57536bd78\/momentum-mean-reversion.ipynb\" target=\"_blank\">10-day<\/a> config. You can login to <a rel=\"noreferrer noopener\" aria-label=\"pluto (opens in a new tab)\" href=\"https:\/\/lab.pluto.studio\" target=\"_blank\">pluto<\/a> and play around with the <em>lookback<\/em> and <em>statWindow<\/em> variables to see how H, median and back-test results change. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\nQuestions? Ask them over at our <a rel=\"noreferrer noopener\" href=\"https:\/\/join.slack.com\/t\/plutonation\/shared_invite\/enQtNzI5Njg3NTkzNzYwLWE2NzI0ODM5N2FjMDQ2ZjMwMWRlY2FmNWZkYzU1OGFhY2NhNzg3MDM0MjEwMmZjNWI2MThlMjZiNWJiMjEwYjM\" target=\"_blank\">slack <\/a>workspace. \n\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Hurst exponent of momentum excess returns can give some clues.<\/p>\n","protected":false},"author":2,"featured_media":2091073,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3471],"tags":[3491,2761],"class_list":["post-2113673","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-investing-insight","tag-momentum","tag-quant","entry","has-excerpt"],"_links":{"self":[{"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/posts\/2113673","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/comments?post=2113673"}],"version-history":[{"count":0,"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/posts\/2113673\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/media\/2091073"}],"wp:attachment":[{"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/media?parent=2113673"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/categories?post=2113673"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/tags?post=2113673"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}