Best Subset Selection
Level 2
Coming soon
This lesson is being written. Explore the graph meanwhile.
You will need
- Linear RegressionLinear regression fits a straight line (or a flat plane in many dimensions) through data by choosing the weights that make the sum of squared errors as small as possible.
- Model SelectionModel selection picks the candidate model that will predict new data best, using held-out data or a penalised score such as AIC or BIC so that extra parameters must earn their place.
- Residual Sum of SquaresThe residual sum of squares adds up the squared gaps between what a model predicts and what was observed, giving one number that says how well a line fits.
Unlocks
- Forward Stepwise SelectionForward stepwise selection builds a regression one predictor at a time, always adding the one that helps most, and stops when a model-selection score says more predictors no longer help.
- Lasso RegressionLasso regression is linear regression with an L1 penalty on the weights, which shrinks coefficients and sets many of them exactly to zero, so it selects a small set of features.