common way is to take each distance [y-y'], square each one of these and then sum the squared values. that will give you some number called the sum of square errors. the smaller that number is, the better the approximated line is to the actual.
other methods include taking absolute value of the distances |y-y'| or attaching weights to the square errors.





Reply With Quote