Macro: Using Currencies to Predict NIFTY, Part III

Please read Part I and Part II for an introduction.

In Parts I and II, we saw how a polynomial kernel was probably a good way to tune an SVM. Also, there was no single degree parameter that was necessarily better than the others. In this post, we train three different polynomial kernel SVMs on two other dollar indices (DTWEXB and DTWEXO) and USDINR (DEXINUS) and tabulate their returns over the two different datasets and across different degree parameters.

To recap, The FRED publishes the following indices along with USDINR (DEXINUS):

  1. DTWEXB: Trade Weighted U.S. Dollar Index: Broad
  2. DTWEXM: Trade Weighted U.S. Dollar Index: Major Currencies
  3. DTWEXO: Trade Weighted U.S. Dollar Index: Other Important Trading Partners

We modeled DTWEXM in Parts I and II. Here, we model the rest.

Results

2000-2018

DEXINUS.NIFTY SVM
DTWEXB.NIFTY SVM
DTWEXO.NIFTY SVM

2005-2018

DEXINUS.NIFTY SVM
DTWEXB.NIFTY SVM
DTWEXO.NIFTY SVM

Given the results above, we can ignore DTWEXO going forward. Surprisingly, DEXINUS (USDINR) does not predict the 2018 correction. In fact, the DEXINUS model using the 2005-2018 dataset replicates buy&hold. Hence, we will ignore DEXINUS as well. The SVM modeled on the 2005-2008 dataset using DTWEXB with degrees 5, 6 and 8 seem to have side-stepped the 2016 and 2018 corrections. Furthermore, degree 8 seems to have produced the best cumulative returns on the test set.

DTWEXB.NIFTY SVM

Next steps

Our observation from Part II was that a 2005-2018 dataset is probably a better set than 2000-2018. This is confirmed from the DTWEXB model above. In the next post, we will combine the DTWEXB(8) and DTWEXM(4) SVM models using the 2005-2018 datasets.

Code and charts are on github.

Comments are closed, but trackbacks and pingbacks are open.