In this recipe, we will implement deming regression, which means we will need a different way to measure the distance between the model line and data points.
Deming regression goes by several names. It is also known as total regression, orthogonal distance regression (ODR), and shortest-distance regression.