Why the residuals do not sum to 0 when we don't have the intercept in simple linear regression?

Aryanna Fisher

Aryanna Fisher

Answered question

2022-11-02

Why the residuals do not sum to 0 when we don't have the intercept in simple linear regression?

Answer & Explanation

tiulowyn9v

tiulowyn9v

Beginner2022-11-03Added 7 answers

Recall in the case with an intercept, we get the least squares regressor by minimizing
L = i ( y i ( b 1 x i + b 0 ) ) 2
in terms of b 1 and b 0 . We can do this in the usual way by taking partial derivatives with respect to b 0 and b 1 , setting to zero and solving.
The fact that the residuals sum to zero comes directly from setting the partial derivative with respect to the interception coefficient b 0 to zero. Taking the derivative with respect to b 0 gives
L b 0 = 2 i ( y i ( b 1 x i + b 0 ) ) .
But the residuals are exactly
ϵ ^ i = ( y i ( b ^ 1 x i + b ^ 0 ) )
so setting the derivative to zero gives the condition
i ϵ ^ i = 0.
Notice that when you take the derivative with respect to b 1 you get a factor of x i out front, so it's a different kind of condition and not one that guarantees the residuals sum to zero.
Also, there was nothing specific to simple linear regression here, this generalizes immediately to the case where there are multiple regressors. The only important thing is that there is a constant term whose minimization equation gives us the condition. If there is no constant term, there is no such condition and thus no guarantee that the residuals sum to zero.

Do you have a similar question?

Recalculate according to your conditions!

New Questions in High school statistics

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?