Why is stepwise variable selection considered problematic, and what are its dangers?

Quick Overview

Asks why stepwise variable selection in regression is considered harmful and what goes wrong when its output is trusted. It tests understanding of inference after selection, overfitting, model instability, bias in the kept coefficients, and better ways to choose predictors.

Why is stepwise variable selection considered problematic, and what are its dangers?

Role: Data Scientist

Category: Machine Learning

Difficulty: medium

Interview Round: Other

Why is stepwise variable selection considered problematic, and what are its dangers? Stepwise selection here means forward, backward or bidirectional procedures that add or drop regression predictors one at a time based on p-values or a criterion such as AIC. ```hint Count the decisions Think about how many tests the procedure runs before it reports a final model, and whether the reported p-values account for any of them. ``` ```hint Which estimates survive Ask which coefficient estimates make it into the final model and how they compare with the true effects behind them. ``` ### What a Strong Answer Covers - Explains how forward, backward and bidirectional stepwise selection work. - Explains why p-values, confidence intervals and R-squared reported after selection are too optimistic. - Covers instability across samples and the bias of the retained coefficients. - Discusses correlated predictors and domain knowledge, and proposes alternatives matched to a prediction goal or an inference goal. ### Follow-up Questions - How would you show a stakeholder that a stepwise-selected model is unstable? - Does the lasso fix the inference problem? What would you do if you need valid p-values after selection? - How do you set up cross-validation so it gives an honest error estimate for a model that includes a selection step? - When, if ever, is stepwise selection acceptable?

Overview: Asks why stepwise variable selection in regression is considered harmful and what goes wrong when its output is trusted. It tests understanding of inference after selection, overfitting, model instability, bias in the kept coefficients, and better ways to choose predictors.

General logo
General
Nov 25, 2026
mediumData ScientistOtherMachine Learning
0
0

Why is stepwise variable selection considered problematic, and what are its dangers?

Stepwise selection here means forward, backward or bidirectional procedures that add or drop regression predictors one at a time based on p-values or a criterion such as AIC.

What a Strong Answer Covers Guidance

  • Explains how forward, backward and bidirectional stepwise selection work.
  • Explains why p-values, confidence intervals and R-squared reported after selection are too optimistic.
  • Covers instability across samples and the bias of the retained coefficients.
  • Discusses correlated predictors and domain knowledge, and proposes alternatives matched to a prediction goal or an inference goal.

Follow-up Questions Guidance

  • How would you show a stakeholder that a stepwise-selected model is unstable?
  • Does the lasso fix the inference problem? What would you do if you need valid p-values after selection?
  • How do you set up cross-validation so it gives an honest error estimate for a model that includes a selection step?
  • When, if ever, is stepwise selection acceptable?