Least squares regression