Questions / Quant research, Regression & linear algebra

What an intercept guarantees

Foundation, about 6 minutes. Question R007.

Ordinary least squares is fitted with an intercept on its training sample. Ignoring numerical error, what is guaranteed about the training residuals?

  1. ATheir sum may be zero, but only for large samples.
  2. BTheir variance is zero on the fitting sample.
  3. CTheir sum is zero on the fitting sample.
  4. DTheir correlation with each other is zero in the population.

Answer it in the app It's free. You get hints, a second try if you miss, and a follow-up question.

Show the answer and worked solution

Answer: C. Their sum is zero on the fitting sample.

  1. The derivative of the squared-error objective with respect to the intercept is −2 times the sum of residuals.
  2. At an OLS optimum that derivative is zero. This forces the training residual sum to vanish, without making the residuals identical or independent.

Interview shortcut. With an intercept, OLS residuals sum to zero.

Takeaway. An intercept imposes a sample mean-residual condition.

Why the other choices fail

  • Their sum may be zero, but only for large samples. An intercept forces a zero sum at any sample size.
  • Their variance is zero on the fitting sample. Residuals can vary around zero; an intercept fits their average, not every observation individually.
  • Their correlation with each other is zero in the population. OLS normal equations concern training-sample orthogonality to design columns, not independence or population correlation among errors.

In the app this has a follow-up where one thing about the setup changes. Try the follow-up.

More regression & linear algebra questions