msardelich
Newbie
- Messages
- 2
- Likes
- 0
Co-integration and pairs trading
I am backtesting some pair trading systems using Welath-lab.
The metric that I implemented to choose the best pairs is the minimum deviation from normalised spreads, considering 2 years (the same metric of Goetzmann paper).
Things are going fine but I would do it in a more scientific way. I mean to choose the best pairs based on co-integration.
The idea is to run a Dickey-Fuller test or, in other words, regressions of type:
Delta (spread) = a + b * (spread) + {White noise}, and test the null hypothesis that b=0 (with 99% confidence interval).
Anyway, other regressions will be necessary in other to guarantee beta neutrality between the co-integrated pairs.
I understand that WL is not able to support the pairs selector module, the regression computation, so the idea is to develop the regressions in a more sophisticated numerical package.
My question is: What´s is the best software to implement regressions: MATLAB or Mathematica ?
I am backtesting some pair trading systems using Welath-lab.
The metric that I implemented to choose the best pairs is the minimum deviation from normalised spreads, considering 2 years (the same metric of Goetzmann paper).
Things are going fine but I would do it in a more scientific way. I mean to choose the best pairs based on co-integration.
The idea is to run a Dickey-Fuller test or, in other words, regressions of type:
Delta (spread) = a + b * (spread) + {White noise}, and test the null hypothesis that b=0 (with 99% confidence interval).
Anyway, other regressions will be necessary in other to guarantee beta neutrality between the co-integrated pairs.
I understand that WL is not able to support the pairs selector module, the regression computation, so the idea is to develop the regressions in a more sophisticated numerical package.
My question is: What´s is the best software to implement regressions: MATLAB or Mathematica ?