libb.linear_regression

linear_regression(x, y)[source]

Compute the least-squares linear regression line for the set of points. Returns the slope and y-intercept.