Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
How does one point out mistakes in lectures? (Specifically https://www.quantopian.com/lectures/introduction-to-pairs-trading)

In the pair trading lesson the authors try to give an example of cointegration without covariance and end up taking two time series one of which is gaussian and the other a square wave and use statsmodel's coint to check for cointegration and claim due to a low pvalue that there is conintgration.

However, this is just plain wrong because the coint function work assuming that the time series are "Variables in y0 and y1 are
assumed to be integrated of order 1, I(1)." as can be seen in the documentation. Sure enough if one takes the cumsum of the Gausian the p-value is quite high.

I find it odd that lectures have such fundamental mistakes and was trying to see how to contact the authors but do not see any feedback place.

1 response

I have yet to recieve a response as to why their pairs trading lectures generate signals that trades completely opposite and doesn't conform to the zscore at all. You can see more at https://www.quantopian.com/posts/how-to-take-trades-according-to-the-rolling-zscore-of-a-pairs-trade
TL:DR spread doesn't move in the direction its supposed to based on the movement in the underlying (or perhaps it is but an answer confirming this is still wanted)