Stepwise Regression
Stepwise Variable Selection in Multiple Regression · Also known as: stepwise selection, forward stepwise regression, backward stepwise regression, forward-backward selection, stepwise multiple regression
Stepwise regression is an automated variable selection procedure for multiple linear regression that adds or removes predictor variables one at a time according to a statistical criterion, typically the F-statistic or a p-value threshold. The forward-selection algorithm was formally described by Efroymson (1960) and the bidirectional variant was popularised by Draper and Smith in their landmark 1966 text Applied Regression Analysis. Despite widespread historical use, the method is now widely critiqued, making its documentation essential in any canonical methods library.
Read the full method
Sign in with a free account to read this section.
Method map
The neighbourhood of related methods — select a node to explore.
When to use it
Stepwise regression is applicable when the outcome is continuous, the candidate predictors are at least interval-scaled (or appropriately dummy-coded), and standard OLS assumptions hold — linearity, independence, homoscedasticity, approximate normality of residuals, and no severe multicollinearity. It is most defensible in purely predictive settings with a large ratio of observations to predictors, or in exploratory work where the goal is to shortlist variables for further confirmatory analysis. It should not be used as a substitute for theory-driven variable selection in causal research, and is inadvisable when n/p is small (fewer than 10–20 observations per candidate predictor). Modern penalised regression (LASSO, elastic net) should be preferred whenever sparse automatic selection is the primary goal.
Strengths & limitations
- Computationally simple and available in every major statistical package, making it accessible for applied researchers.
- Reduces model dimensionality automatically, which can improve prediction accuracy in moderate-n settings.
- Provides a useful starting point for variable shortlisting in large-scale exploratory research.
- Forward selection is efficient when p is very large relative to computing resources, because it avoids evaluating all 2^p subsets.
- Post-selection inference is invalid: p-values and confidence intervals reported for the final model are biased because the same data drove both selection and estimation (the 'winner's curse').
- The selected subset is highly unstable — small changes in the data can yield an entirely different model, a problem documented extensively by Harrell (2001) and others.
- Greedy search does not guarantee the globally optimal subset; the procedure can miss the best model.
- Stepwise selection inflates R-squared and underestimates standard errors in the final model when applied to the same dataset used for selection.
- Does not account for multiple comparisons across the many implicit tests performed during selection.
Frequently asked
What is the difference between forward selection, backward elimination, and stepwise (bidirectional) selection?
Forward selection begins with an empty model and adds the predictor with the highest F-to-enter at each step, stopping when no remaining variable clears the entry threshold. Backward elimination begins with all p predictors and removes the predictor with the lowest F-to-remove at each step, stopping when all retained variables exceed the removal threshold. Bidirectional stepwise selection combines both passes: after each addition it checks whether any previously included variable should be removed, and vice versa. Bidirectional selection is generally preferred over pure forward selection because it can correct early inclusions, but all three variants share the same post-selection inference problems.
Why are p-values from a stepwise-selected model not trustworthy?
Standard p-values assume the model structure was fixed before seeing the data. In stepwise regression the data are used to choose which predictors appear in the model and then again to estimate and test those predictors. This double-use inflates the apparent significance of retained variables — an effect sometimes called the 'winner's curse'. Simulation studies show that variables with true zero effect are regularly selected and appear significant when stepwise is applied to moderate samples. Correcting for this requires either data splitting, bootstrap-based validation, or penalised estimation methods that fold selection and estimation into a single regularised optimisation.
When is stepwise regression still acceptable to use?
Stepwise selection is most defensible in purely predictive applications where (a) the dataset is large relative to the number of candidates, (b) the resulting model will be validated on a held-out or prospective sample, and (c) inference about individual coefficients is not the goal. In exploratory work it can serve as a preliminary screening tool, provided the shortlisted variables are then evaluated in a pre-specified confirmatory model on new data. It should not be used for causal inference, hypothesis testing about specific predictors, or any setting where the reported p-values will be interpreted at face value.
What modern methods should I consider instead of stepwise regression?
For sparse variable selection with valid inference, LASSO (Tibshirani, 1996) and elastic net (Zou & Hastie, 2005) are the standard alternatives: they fold selection and estimation into a single penalised criterion, their tuning parameter is chosen by cross-validation, and bootstrap confidence intervals can be reported. Best-subset selection (examined systematically with modern algorithms) provides an exhaustive alternative when p is not too large. For confirmatory research, the correct approach is to specify the model on theoretical grounds before data collection, not to let the data choose the predictors.
Sources
- Efroymson, M. A. (1960). Multiple regression analysis. In A. Ralston & H. S. Wilf (Eds.), Mathematical Methods for Digital Computers (pp. 191–203). Wiley. link ↗
- Draper, N. R., & Smith, H. (1966). Applied Regression Analysis (1st ed.). Wiley. ISBN: 9780471221708
- Draper, N. R., & Smith, H. (1998). Applied Regression Analysis (3rd ed.). Wiley. ISBN: 9780471170822
How to cite this page
ScholarGate. (2026, June 3). Stepwise Variable Selection in Multiple Regression. ScholarGate. https://scholargate.app/en/statistics/stepwise-regression
Which method?
Set this method beside its closest kin and read them side by side — the library lays the books on the table; the choice is yours.
- Elastic NetMachine learning↔ compare
- Lasso RegressionMachine learning↔ compare
- Multiple Linear RegressionStatistics↔ compare
- Partial Least SquaresMachine learning↔ compare
- Ridge RegressionMachine learning↔ compare