223. AIC & BIC
Picking between competing models
Maximized likelihood
223.1. AIC
- : number of parameters in the model
- : number of data points
223.2. BIC
- : number of parameters in the model
- : number of data points
)
Explanation:
- The fit term, , is identical in both (Better fit bigger L̂ bigger ln(L̂) this term goes down criterion goes down
The penalty term is the only difference:
- AIC charges 2 per parameter
- BIC charges ln(n) per parameter
Example
You have n = 100 data points and two candidate models for them:
- Model A (simpler): k = 3 parameters, maximized log-likelihood ln(L̂) = −120
- Model B (fancier): k = 6 parameters, maximized log-likelihood ln(L̂) = −116
Model B fits better — its log-likelihood is higher (−116 > −120), which it should be, since it has more parameters to play with. The whole question is whether those 3 extra parameters are worth it.
AIC
- Model A: 2·3 − 2·(−120) = 6 + 240 = 246
- Model B: 2·6 − 2·(−116) = 12 + 232 = 244
AIC picks Model B (244 < 246)
BIC
- Model A: 3·4.6 − 2·(−120) = 13.8 + 240 = 253.8
- Model B: 6·4.6 − 2·(−116) = 27.6 + 232 = 259.6
BIC picks Model A (253.8 < 259.6)
Same data, same two models, opposite verdicts. Here’s the why, and it’s exactly that per-parameter cost from before: Going from A to B, the fit term drops by 8 (from 240 to 232) — that’s the reward for the better fit. The 3 extra parameters cost you:
BIC charges more per parameter (because ln(100) > 2), so it demands a bigger fit improvement before it’ll accept extra complexity. That’s why it leans toward simpler models.