python statsmodels.api code example Example: import statsmodels.api as sm import statsmodels.api as sm model = OLS(X,y)