relation to least squares