Topics
Multiple regression and stepwise regression are not competing model families. Multiple regression is a model class; stepwise regression is a search algorithm for choosing a subset of predictors within that class.
That distinction matters because the main weaknesses of stepwise procedures come from data-dependent model search.
The baseline linear model
A multiple linear regression can be written as
Once a set of predictors is specified, ordinary least squares estimates beta by minimizing residual sum of squares.
The scientific meaning of each coefficient depends on the model specification. Adding or removing covariates changes the conditional estimand.
What stepwise selection does
Forward selection starts from a small model and adds variables. Backward elimination starts from a large model and removes them. Bidirectional stepwise procedures alternate between both operations.
Selection may use p-values, AIC, BIC, or another score. Regardless of criterion, the algorithm repeatedly looks at the same data while deciding which model to retain.
Why p-values after stepwise selection are misleading
Classical p-values and confidence intervals assume the model was specified independently of the random noise being tested. Stepwise selection violates that assumption.
After searching many candidate models, selected coefficients tend to look larger and more significant than they would under a prespecified model. Standard errors usually ignore the uncertainty introduced by the search itself.
This is a form of selection bias.
Stepwise selection does not reliably prevent overfitting
Removing variables can reduce nominal parameter count, but repeated search can overfit noise. Small perturbations to the data can produce a different selected set.
Predictive performance must therefore be evaluated with the entire selection procedure inside resampling. Selecting variables once on the full dataset and then cross-validating only the final formula leaks information.
Collinearity makes selection unstable
If two predictors carry similar information, a stepwise procedure may select one and drop the other. A small sample change can reverse that choice.
This does not mean one variable is truly important and the other irrelevant. It often reflects the geometry of correlated predictors.
Prediction and explanation need different strategies
For prediction, the question is out-of-sample loss. Regularization methods such as ridge regression, lasso, and elastic net can shrink or select coefficients while tuning complexity through validation.
Ridge regression solves
Lasso uses
These methods still require validation, but they usually behave more smoothly than discrete stepwise inclusion and exclusion.
For explanatory or causal work, variable selection should follow the estimand and causal structure. Removing a confounder because its p-value is large can increase bias. Including a collider because it improves AIC can also distort a causal effect.
Information criteria are not magic
AIC and BIC can be useful model-comparison tools, but plugging them into an unrestricted automated search does not remove selection uncertainty. Their theoretical properties depend on the candidate set and objective.
AIC targets predictive Kullback-Leibler performance asymptotically under particular conditions. BIC has a different large-sample motivation related to model identification under a true-model framework.
Neither criterion turns arbitrary search into guaranteed scientific discovery.
Pre-specification can be more important than parsimony
If the goal is a treatment effect, a scientifically justified adjustment set may be more important than finding the smallest regression formula.
If the goal is forecasting, a larger regularized model may outperform a smaller selected model.
Parsimony is useful when it improves stability, interpretation, cost, or transportability. It is not an end in itself.
A practical workflow
- Define whether the goal is prediction, description, or causal inference.
- Pre-specify variables required by design or subject-matter knowledge.
- Represent nonlinear effects and interactions when scientifically plausible.
- Use regularization or principled dimensionality reduction for high-dimensional prediction.
- Put every tuning and selection step inside cross-validation.
- Evaluate stability across resamples.
- Report the selection process, not only the final model.
Conclusion
Stepwise regression is attractive because it produces a small formula automatically. The price is instability and invalid naive inference after selection.
The better alternative depends on the target: theory-driven specification for explanatory and causal work, and regularized, fully validated model selection for prediction.
References
- Harrell, F. E. (2015). Regression Modeling Strategies.
- Hastie, T., Tibshirani, R., & Friedman, J. (2009). The Elements of Statistical Learning.
- Tibshirani, R. (1996). Regression shrinkage and selection via the lasso.
- Steyerberg, E. W. (2019). Clinical Prediction Models.
Embed interactive plots, widgets, and demos using <figure>, <iframe>, or <div class="interactive-embed"> containers. Ensure each embed includes descriptive captions for accessibility.
How to cite
Use the quick export buttons to save citations for reference managers or copy the formatted text directly.
Diogo Ribeiro (2023). Stepwise Regression: Why Automatic Selection Is Fragile. Faculty of Media Arts and Design, Technical University of Porto. https://diogoribeiro7.github.io/statistics/multiple_regression_vs_stepwise_regression/.

