Quantopian,
I ran the PCA method from sklearn on both Quantopian and on my local PC using Python 2.7. The resulting factors have the sign flipped for every second value. Can you please shed light on why this might be happening? I'm assuming Quantopian is still using Python 2.7
statTS = numpy.array....... (stationary time series)
factors = PCA(0.8, whiten=False).fit_transform(statTS)
Quantopian results: factors
array([[-0.17741941, -0.03666197, -0.02030477, 0.07525749, -0.05066121, -0.03248473],.......
Local PC results: factors
array([[0.17741941, -0.03666197, 0.02030477, 0.07525749, 0.05066121, -0.03248473],.......
Thanks