Least squares linear fit for numpy library of Python