{"id":2091053,"date":"2018-11-02T14:30:27","date_gmt":"2018-11-02T09:00:27","guid":{"rendered":"http:\/\/stockviz.biz\/index.php\/?p=2091053"},"modified":"2018-11-05T14:39:51","modified_gmt":"2018-11-05T09:09:51","slug":"usdinr-and-dollar-indices-part-i","status":"publish","type":"post","link":"https:\/\/stockviz.biz\/index.php\/2018\/11\/02\/usdinr-and-dollar-indices-part-i\/","title":{"rendered":"USDINR and Dollar Indices, Part I"},"content":{"rendered":"<p>The St. Louis Fed publishes a number of economic and financial series on its Federal Reserve Economic Data (FRED) database. It is a treasure trove of information for quants. There are a number of currency related time-series in the database. In this post, we will plot the USDINR exchange rate with the trade-weighted indices available on FRED to explore any relationships that there might be between them.<\/p>\n<h3>Trade-weighted indices<\/h3>\n<p>A trade-weighted dollar index is simply the weighted average of the foreign exchange value of the U.S. dollar against the currencies of a group of U.S. trading partners. The FRED publishes the following such indices:<\/p>\n<ol>\n<li><strong>DTWEXB<\/strong>: Includes the Euro Area, Canada, Japan, Mexico, China, United Kingdom, Taiwan, Korea, Singapore, Hong Kong, Malaysia, Brazil, Switzerland, Thailand, Philippines, Australia, Indonesia, <em>India<\/em>, Israel, Saudi Arabia, Russia, Sweden, Argentina, Venezuela, Chile and Colombia.<\/li>\n<li><strong>DTWEXM<\/strong>: Includes the Euro Area, Canada, Japan, United Kingdom, Switzerland, Australia, and Sweden.<\/li>\n<li><strong>DTWEXO<\/strong>: Includes Mexico, China, Taiwan, Korea, Singapore, Hong Kong, Malaysia, Brazil, Thailand, Philippines, Indonesia, <em>India<\/em>, Israel, Saudi Arabia, Russia, Argentina, Venezuela, Chile and Colombia.<\/li>\n<\/ol>\n<p>Additionally, they also publish the DEXINUS series that is the USDINR exchange rate.<\/p>\n<p>These series go back to the mid-70&#8217;s and mid-90&#8217;s. However, India was a closed economy with a managed currency for the most parts. So for the rest of this post, we will consider data only from 2005 onward.<\/p>\n<p>Here is how the time-series looks:<br \/>\n<a href=\"https:\/\/github.com\/stockviz\/blog\/raw\/master\/usdinr%20beta\/part-1\/DEXINUS-DTWEXB-DTWEXM-DTWEXO.index.2005-01-03.2018-10-25.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/github.com\/stockviz\/blog\/raw\/master\/usdinr%20beta\/part-1\/DEXINUS-DTWEXB-DTWEXM-DTWEXO.index.2005-01-03.2018-10-25.png\" width=\"3600\" height=\"1800\" alt=\"FRED DEXINUS-DTWEXB-DTWEXM-DTWEXO indices\" class=\"alignnone size-full\" \/><\/a><\/p>\n<h3>Beta between USDINR and the rest<\/h3>\n<p>What we are interested in is the relationship between USDINR and the rest of the trade-weighted averages. DTWEXB and DTWEXO have India exposure with the latter made up predominantly of emerging markets. So we should expect a high beta between USDINR and those.<\/p>\n<p>To calculate the beta, we will fit a linear model through USDINR and each of the trade-weighted indices in turn. Also, we will force the intercept to be zero to force the fit.<\/p>\n<p>Here are the betas with a 20-day look-back:<br \/>\n<a href=\"https:\/\/github.com\/stockviz\/blog\/raw\/master\/usdinr%20beta\/part-1\/DEXINUS.DTWEXB-DTWEXM-DTWEXO.index.spread.20.2005-01-28.2018-10-25.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/github.com\/stockviz\/blog\/raw\/master\/usdinr%20beta\/part-1\/DEXINUS.DTWEXB-DTWEXM-DTWEXO.index.spread.20.2005-01-28.2018-10-25.png\" width=\"3600\" height=\"1800\" alt=\"20-day beta between USDINR and trade-weighted indices\" class=\"alignnone size-full\" \/><\/a><\/p>\n<p>Here are the betas with a 50-day look-back:<br \/>\n<a href=\"https:\/\/github.com\/stockviz\/blog\/raw\/master\/usdinr%20beta\/part-1\/DEXINUS.DTWEXB-DTWEXM-DTWEXO.index.spread.50.2005-03-11.2018-10-25.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/github.com\/stockviz\/blog\/raw\/master\/usdinr%20beta\/part-1\/DEXINUS.DTWEXB-DTWEXM-DTWEXO.index.spread.50.2005-03-11.2018-10-25.png\" width=\"3600\" height=\"1800\" alt=\"50-day beta between USDINR and trade-weighted indices\" class=\"alignnone size-full\" \/><\/a><\/p>\n<p>The 20-day chart shows that the beta oscillates within a tight band for the most part. This insight can be used to build a mean-reversion model for USDINR. <\/p>\n<p>In <a href=\"http:\/\/stockviz.biz\/index.php\/2018\/11\/05\/usdinr-and-dollar-indices-part-ii\/\">Part II<\/a>, we will explore the spread between USDINR and all three of the indices. Stay tuned!<\/p>\n<p>Code and charts are on <a href=\"https:\/\/github.com\/stockviz\/blog\/tree\/master\/usdinr%20beta\/part-1\" rel=\"noopener\" target=\"_blank\">github<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The St. Louis Fed publishes a number of economic and financial series on its Federal Reserve Economic Data (FRED) database. It is a treasure trove of information for quants. There are a number of currency related time-series in the database. In this post, we will plot the USDINR exchange rate with the trade-weighted indices available &hellip; <\/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":[2761,2721],"class_list":["post-2091053","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-investing-insight","tag-quant","tag-usdinr","entry"],"_links":{"self":[{"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/posts\/2091053","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=2091053"}],"version-history":[{"count":0,"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/posts\/2091053\/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=2091053"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/categories?post=2091053"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/tags?post=2091053"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}