In this recipe, we will implement Deming regression (total regression), which means we will need a different way to measure the distance between the model line and data points.

If least squares linear regression minimizes the vertical distance to the line, Deming regression minimizes the total distance to the line. This type of regression minimizes the error in the y values and the x values. See the following figure for a comparison:

Start Free Trial

No credit card required