How would you compare two nested linear regression models to decide whether the extra predictors are worth keeping?

Quick Overview

Asks how to decide whether the extra predictors in a larger nested linear regression model are worth keeping. It tests whether you can choose a formal test for nested models, read its result, and weigh it against penalized and out-of-sample comparisons.

How would you compare two nested linear regression models to decide whether the extra predictors are worth keeping?

Role: Data Scientist

Category: Machine Learning

Difficulty: medium

Interview Round: Other

How would you compare two nested linear regression models to decide whether the extra predictors are worth keeping? The smaller model's predictors are a subset of the larger model's, and both are candidate models for the same outcome. ```hint What to measure Look at how much the residual sum of squares drops per added parameter, and compare that with the noise left in the larger model. ``` ```hint Beyond significance Think about what you would use if the goal were prediction, or if the two models were not nested. ``` ### What a Strong Answer Covers - What makes two models nested, and the partial F-test with its statistic and degrees of freedom - How to read the test result and which assumptions the F distribution relies on - Penalized and out-of-sample alternatives (AIC, BIC, adjusted R-squared, cross-validation) and when each fits the goal - Practical checks, such as fitting both models on the same rows and separating statistical significance from predictive value ### Follow-up Questions - Why can a group of added predictors be jointly significant while none of their individual t-tests is? - How would you compare two models that are not nested? - What changes in the test if the residuals are heteroskedastic? - How does the partial F-test relate to a likelihood ratio test for a logistic regression?

Overview: Asks how to decide whether the extra predictors in a larger nested linear regression model are worth keeping. It tests whether you can choose a formal test for nested models, read its result, and weigh it against penalized and out-of-sample comparisons.

Nov 24, 2026
mediumData ScientistOtherMachine Learning
0
0

How would you compare two nested linear regression models to decide whether the extra predictors are worth keeping? The smaller model's predictors are a subset of the larger model's, and both are candidate models for the same outcome.

What a Strong Answer Covers Guidance

  • What makes two models nested, and the partial F-test with its statistic and degrees of freedom
  • How to read the test result and which assumptions the F distribution relies on
  • Penalized and out-of-sample alternatives (AIC, BIC, adjusted R-squared, cross-validation) and when each fits the goal
  • Practical checks, such as fitting both models on the same rows and separating statistical significance from predictive value

Follow-up Questions Guidance

  • Why can a group of added predictors be jointly significant while none of their individual t-tests is?
  • How would you compare two models that are not nested?
  • What changes in the test if the residuals are heteroskedastic?
  • How does the partial F-test relate to a likelihood ratio test for a logistic regression?