Try this:
X = sm.add_constant(X)
sm.OLS(y,X)
as in the documentation:
An intercept is not included by default and should be added by the user
statsmodels.tools.tools.add_constant
Try this:
X = sm.add_constant(X)
sm.OLS(y,X)
as in the documentation:
An intercept is not included by default and should be added by the user
statsmodels.tools.tools.add_constant