I am trying to figure out how regression residuals are calculated using the specific example in the attached graphic.
Would I simply B-A (Red letters in graphic) to get C so: 22-30 = - 8 in this case? Would I do this for all data points and add the + and - values to get a residual value?
Additionally, for D, if I had another data set would I compute the residual for all data points for 2 predictors and the line of best fit?
Source: http://www.bisolutions.us/A-Brief-Introduction-to-Spatial-Regression.php