The residual is defined as the difference between the actual value of x and the estimated value of x, the actual value of y and the estimated value of y, the actual value of x and the estimated value of y, and the actual value of y and the estimated value of y.