Model Selection and Information Criteria (AIC, BIC)

Context: FIT2086_MOC Β· which predictors to include in a linear regression β€” the question and the likelihood cannot answer because both improve monotonically Β· legal only because LS ≑ ML gives regression a likelihood Β· complexity framing βž” Bias-Variance Tradeoff (Underfitting vs Overfitting) Β· run it βž” Multiple Regression and Stepwise Selection in R

Quick Revision

  • 🎯 Objective: score a model as fit + complexity penalty βž” βž” smaller score wins.
  • πŸ“¦ Core Components: AIC βž” mild penalty, overfits | BIC βž” harsh penalty, underfits.
  • ⚑ Key Constraint: the minimised NLL always falls as predictors are added (exactly like rising) βž” it selects parameters, never models; only the penalty makes comparison possible.

πŸ“ How It Works

1. Why a Criterion Is Needed

  • The two failure directions βž” under- vs overfitting, defined in predictor-selection terms in Bias-Variance Tradeoff (Underfitting vs Overfitting).
  • Both in-sample diagnostics fail βž” the minimised NLL always falls with an extra predictor, exactly as always rises ⟹ it selects parameters, never models.
  • The fix βž” penalised likelihood: charge a model for its ability to fit, not just measure the fit.

2. Approach A β€” Testing One Coefficient at a Time

  • Coefficient magnitude fails βž” depends on the predictor’s units.
  • -score βž” βž” larger = more important; it standardises out both the scale and how variable the estimate is.
  • The hypothesis βž” predictor is unimportant exactly when , so test vs β€” a variant of the [[Tests for Normal Means (z-test and t-test)|-test]] built on (Ross Ch. 9; Studio 6).
  • Strengths βž” easy to apply, easy to explain, and every summary() prints it.
  • Weaknesses βž” cannot compare two whole models directly, and predictors can appear stronger once other unimportant predictors stop diluting the signal.

3. Approach B β€” Model Selection by Information Criterion

  • A β€œmodel” βž” just a subset of predictors, e.g. , , ; given , the coefficients still come from least squares.
  • The score βž” minimise over models:

where is the number of predictors in and the sample size.

  • Reading it βž” score model error complexity charge; the more complex the model, the bigger the charge, so a predictor must pay for itself in fit.
  • Significance rule of thumb βž” score differences of are considered meaningful; smaller gaps are a tie.

4. Searching the Model Space

  • All subsets βž” score every combination and take the minimum β€” exact, but models; at that is ⟹ computationally intractable for even moderate .
  • Forward selection βž” (1) start from the empty model; (2) find the predictor that reduces the criterion most; (3) if none improves it, stop; (4) add it; (5) return to step 2.
  • Backward selection βž” the mirror image β€” start from the full model and remove predictors.
  • Trade-off βž” tractable for large , but a greedy path may miss important predictors (a pair that only helps jointly is never entered).

βš–οΈ Core Decision Matrix

CriterionPenalty BehaviourRisk it carriesReach for it when
AICencourages fit, allows more variablesoverfits β€” includes spurious predictorsprediction matters more than parsimony; small with weak signals
BICprefers simpler models, selects fewer predictorsunderfits β€” drops genuine predictorsyou want an interpretable, defensible predictor set

When It Flips: the BIC penalty exceeds the AIC penalty exactly when βž” for any realistic sample () BIC is always the stricter criterion, and the gap widens with .

πŸ“Š Exam Execution Trace & Applied Exercises

Applied Exercise

Problem: Blood pressure, , six candidate predictors (Age, Weight, BSA, Dur, Pulse, Stress). Stepwise selection under AIC returns the full 6-predictor model; under BIC it returns with (-values , , ). Why do they disagree, and how much extra fit would the three dropped predictors need to buy?

Final Extracted Output: Dur, Pulse and Stress must reduce the NLL by more than to survive AIC but by more than to survive BIC β€” they clear the first bar and not the second. AIC is known to be optimistic and to overfit, particularly at small ; with the BIC model is the defensible one. In it, every remaining -value is smaller than in the full fit β€” the removed predictors were diluting the signal. Interpretation: year , , BSA .

⚠️ Common Mistakes

  • πŸ’‘ Selecting on or on the likelihood βž” both are monotone in model size ⟹ they always crown the full model; only a penalised score can choose.
  • πŸ’‘ Reading a bigger score as a better model βž” the criterion is minimised β€” lower AIC/BIC wins, because the score is error plus penalty.
  • πŸ’‘ Treating a difference of as decisive βž” differences below are not considered significant; report the models as comparable.
  • πŸ’‘ Trusting a stepwise path as exhaustive βž” forward/backward selection is greedy; it is not the all-subsets optimum and can miss jointly-useful predictors.
  • πŸ’‘ Reporting post-selection -values as if pre-planned βž” they shrink precisely because competitors were removed; the selection step already used the data.

🧠 Active Recall