Stepwise regression is a statistical method for selecting a subset of independent variables by automatically adding or removing them based on significance. The aim is to optimize the model for prediction and interpretability by removing irrelevant variables and keeping the most relevant ones.
Independent1 | Independent2 | Dependent |
---|---|---|
1.0 | 2.0 | 5.0 |
2.0 | 3.0 | 8.0 |
3.0 | 4.0 | 10.0 |
4.0 | 5.0 | 12.0 |