Fits the line y = ax + b that best matches the points by least squares. The slope is the covariance ÷ the variance of x, and the intercept is ȳ − a·x̄. R² measures how well the line fits.