added ordinary least squares function to util module so that statsmodels is not a dependency