What is the linearity assumption in linear regression, and how would you recognise when it has been violated?

Quick Overview

Asks what the linearity assumption in linear regression requires and how to spot a violation in a fitted model. Tests residual diagnostics, partial residual plots, and knowing which changes restore a correctly specified mean.

What is the linearity assumption in linear regression, and how would you recognise when it has been violated?

Role: Data Scientist

Category: Machine Learning

Difficulty: easy

Interview Round: Other

In linear regression, what is the linearity assumption, and how would you recognise when it has been violated? ```hint Look at what is left over If the model's mean structure were right, what pattern would the residuals show across the range of the fitted values and of each predictor? ``` ### What a Strong Answer Covers - A precise statement of the assumption in terms of the conditional mean of the response and the coefficients, including what it allows for transformed terms. - What a correctly specified mean implies for the residuals. - Diagnostic plots and at least one formal check, and how to tell curvature apart from other problems such as unequal variance. - What goes wrong in estimates and predictions when the assumption fails, and how to fix it. ### Follow-up Questions - The residuals vs fitted plot shows a funnel that widens to the right but no curve. Which assumption is in question, and is linearity still fine? - With 30 predictors, how would you find the one whose effect is nonlinear? - When would you log-transform the response instead of adding a polynomial term for a predictor? - Can a missing interaction term look like a linearity violation? How would you tell them apart?

Overview: Asks what the linearity assumption in linear regression requires and how to spot a violation in a fitted model. Tests residual diagnostics, partial residual plots, and knowing which changes restore a correctly specified mean.

Nov 25, 2026
easyData ScientistOtherMachine Learning
0
0

In linear regression, what is the linearity assumption, and how would you recognise when it has been violated?

What a Strong Answer Covers Guidance

  • A precise statement of the assumption in terms of the conditional mean of the response and the coefficients, including what it allows for transformed terms.
  • What a correctly specified mean implies for the residuals.
  • Diagnostic plots and at least one formal check, and how to tell curvature apart from other problems such as unequal variance.
  • What goes wrong in estimates and predictions when the assumption fails, and how to fix it.

Follow-up Questions Guidance

  • The residuals vs fitted plot shows a funnel that widens to the right but no curve. Which assumption is in question, and is linearity still fine?
  • With 30 predictors, how would you find the one whose effect is nonlinear?
  • When would you log-transform the response instead of adding a polynomial term for a predictor?
  • Can a missing interaction term look like a linearity violation? How would you tell them apart?