1/19
Looks like no tags are added yet.
when do we need subset selection?
we don’t have theory and are searching for patterns
dimension reduction: keep only variables that matter
why not just use every variable?
overfitting
interpretability
multicollinearity: many predictors are often correlated with each other
cost
r² can’t guide you
adjusted r² is better when it’s
higher
AIC and BIC are better when they’re
lower
best subset (exhaustive search)
test all possible combinations of variables and keep the best score
advantage of best subset
guaranteed to find best combination
disadvantage of best subset
very slow
forward selection
start with no variables; at each step, add the variable that improves the score the most, stop when no additions help
advantage of forward selection
fast
disadvantage of forward selection
once a variable is in, it never leaves, even if a later addition makes it redundant
backward elimination
start with full model, at each step remove lease useful variable and stop when every remaining variable helps
advantage of backward elimination
sees every variable together from the start
disadvantage of backward elimination
requires n > p (more data points than predictors) or the full model can’t be fit
hybrid (stepwise)
start with no variables, at each iteration along with adding a variable, also consider removing one already in
advantage of hybrid
can undo earlier choices; a middle ground
disadvantage of hybrid
not guaranteed to find the best subset
forward backward and stepwise are greedy
at each step they make the best immediate choice without looking ahead (fast, but may not get the best combination)
t/f: the order in which forward selection adds variables roughly ranks their usefulness
true
t/f: decision trees do a form of variable selection automatically
true
parsimony
prefer the simpler model when gain is small