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 Β· resampling alternative βž” Cross-Validation Β· stable alternative βž” Penalized Regression (Ridge and Lasso)

Quick Revision

  • 🎯 Objective: score a model as fit + complexity penalty βž” βž” smaller score wins.
  • πŸ“¦ Core Components: AIC βž” mild penalty, overfits | BIC βž” harsh penalty, underfits | KIC | RIC βž” for very large .
  • ⚑ 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.
  • Many tests ⟹ false positives βž” screening predictors at expects spurious hits βž” Multiple Testing and the Bonferroni Correction (W8).
  • 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.
  • W8 notation βž” a candidate model, it fitted to , its minimised NLL (likelihood under conditional independence); for nested models adding predictors can never increase .
  • The four criteria (NLL scale, = number of free parameters):
  • Shared parameters don’t matter βž” parameters present in every candidate (e.g. intercept, ) add the same constant to all scores and never change the choice.
  • Refined criteria βž” MML, MDL, corrected AIC/KIC βž” often better for small .
  • Beyond regression (W11) βž” the same fit complexity score picks the number of classes in a mixture model; MML (C.S. Wallace, Monash) reads it as information: compress the data with the model, shortest compressed message wins.
  • Polynomial example βž” orders – fitted to the fifth-order truth: the NLL keeps falling with order while each criterion bottoms out; read off the lecture plot, BIC and KIC select order and AIC a higher order ().
  • 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).
  • Problems with all conventional methods (W8) βž” statistically unstable β€” small data change ⟹ big model change (Penalized Regression (Ridge and Lasso)) Β· multiple-testing false positives Β· all-subsets infeasible for moderate-to-large Β· stepwise hurt by correlated predictors and slow for large .

βš–οΈ Core Decision Matrix

CriterionPenalty BehaviourRisk it carriesReach for it when
AICencourages fit, allows more variables; overfits even for large , though moderate overfitting hurts less thereoverfits β€” includes spurious predictorsprediction matters more than parsimony; small with weak signals
KIClike AIC, slightly stricter; often performs better than AIC in practicestill overfits (rarely underfits)AIC’s use case, with a little more caution
BICprefers simpler models, selects fewer predictors; as underfits at small β€” drops genuine predictorsyou want an interpretable, defensible predictor set
RICpenalty grows with the number of candidate predictors β€” the multiple-testing ideacan be quite conservative is very large (recommended over AIC/KIC there)

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 .

Applied Exercise 2 β€” score a model table by hand (W12 revision)

Problem: ; nested house-price models with (NLL, ): M1 Size Β· M2 +Age Β· M3 +Bedrooms Β· M4 +Distance . Score each by AIC and BIC , pick each winner, and say why NLL alone cannot choose.

ModelNLLAICBIC ( per parameter)
M1
M2
M3
M4

Final Extracted Output: AIC ties M3/M4 at (and M2’s is within the significance gap) ⟹ AIC does not single out a model Β· BIC picks M2 Β· NLL falls with every added predictor (), so it rewards fit and never charges for complexity.

⚠️ 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.
  • πŸ’‘ Mixing up RIC’s and BIC’s βž” RIC charges with = total candidate predictors; BIC charges with = sample size.
  • πŸ’‘ 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