Estimate error of least squares with gradient descent