Variable selection is the process of choosing which predictors to keep in a regression. The aims are to include variables that matter for the problem, to drop variables that add noise or duplication, to reduce overfitting, and to keep the equation readable. More variables do not always improve the model.
Variable selection is the process of choosing which predictors to keep in a regression. The aims are to include variables that matter for the problem, to drop variables that add noise or duplication, to reduce overfitting, and to keep the equation readable. More variables do not always improve the model.
Daily demand might be considered with temperature, a holiday indicator, an advertising spend series, and a linear time index. Temperature and holidays may earn a place; a second temperature copy, or a weakly measured extra series, may not.
| Method | Idea |
|---|---|
| Forward selection | Start with no predictors; add the most useful remaining x one at a time |
| Backward elimination | Start with all candidates; drop the least useful x one at a time |
| Stepwise selection | Allow both adding and dropping as the search proceeds |
These searches are helpers, not proofs. Different paths can keep different sets. Always re-check residuals and the story of the variables after the search.
Ordinary R2 never falls when a variable is added, so it is a poor “more is better” score. Adjusted R2 penalises extra predictors in a simple way. AIC and BIC are information criteria: smaller is preferred on the usual scale; BIC penalises extra variables more heavily than AIC. Use them to compare a few candidate equations, not as a machine-learning tournament.