Why residual equals to zero in linear regression?

165 Views Asked by At

I'm trying to solve a simple linear regression problem. considering that my line is "best fit", why the sum of the residuals always equals zero? what is the mathematical solution to this?