got rid of statsmodels dependency