Definitioncore
Akaike information criterion
Also called AIC.
AIC = -2 log L + 2k. It estimates how well a fitted model will predict new data from the same source. Lower is better, and only differences on the same data mean anything.
The Akaike information criterion of a model fitted by maximum likelihood is , where is the maximized likelihood and is the number of estimated parameters. The maximized log-likelihood is a biased estimate of how well the fitted model will predict new data from the same source: the fit was tuned to the data it is scored on, and the bias is about . AIC removes this bias. Among models fitted to the same data, the model with the smallest AIC has the best estimated fit to new data. AIC does not test a model, and its absolute value has no meaning; only differences between models on the same data do.
Definition
Let be the data, and let a model be a family of densities with in an open subset of . Let be the maximum likelihood estimate and . Then
The parameter count includes every estimated parameter, for example the variance of a normal model. For a normal linear regression with an design matrix of rank whose columns include the intercept, coefficient vector and residual sum of squares RSS, the estimates are and , so and
The corrected criterion of Hurvich and Tsai (1989) is
For a list of models with criteria , let . The Akaike weights are .
Facts.
- What AIC estimates. Let be a new sample of the same size, independent of and with the same law , and let be the expected log-likelihood of new data under the fitted model. Then equals , which is the same for all models, plus twice the expected Kullback-Leibler divergence from the fitted model to . So ranking models by ranks them by expected divergence. Under the conditions of asymptotic normality of the MLE, and if is a member of the model, . Then estimates with a bias that tends to 0. The next fact sketches why.
- Sketch of the bias . Let minimize the divergence from to , let be minus the expected Hessian of for one observation at , and let be the variance of the score of one observation at . Expand around , where the score is 0, and around , where its gradient is 0. Each expansion loses . So equals plus a term with mean 0 plus . Since tends to , the mean of the quadratic form tends to , if the expectations converge (uniform integrability is needed for that step). When is in the model, and the trace is . Otherwise the penalty gives Takeuchi's criterion TIC. Claeskens and Hjort (2008, Chapter 2) give the full conditions.
- Exact small-sample correction. In normal linear regression where the candidate model contains the true mean, AICc is an exactly unbiased estimate of (Hurvich and Tsai 1989; cited here, not proved). AICc and AIC differ by , so they agree for large , and AICc is the safer choice when is small.
- AIC overfits with a fixed probability. For nested models that differ by parameters, AIC prefers the larger model exactly when the likelihood ratio statistic exceeds . If the smaller model is true, Wilks' theorem gives, as , : 0.157, 0.135, 0.112, 0.075 and 0.029 for . This does not tend to 0 as grows, so AIC is not consistent for the true model. In regression, adding one column lowers AIC when , which is about for the t statistic of the new coefficient.
- AIC is efficient for prediction. If the true regression function is not in any candidate model (for example, it has infinitely many nonzero terms), Shibata (1981) showed that the model chosen by AIC has a prediction error that, as , is as small as that of the best candidate. This is cited, not proved here. Yang (2005) showed that no criterion can be both consistent, as BIC is, and minimax-rate optimal for prediction, as AIC is.
- AIC and cross-validation. Stone (1977) showed that AIC and leave-one-out cross-validation of the log-likelihood choose the same model to first order as . AIC needs one fit per model; cross-validation needs , but does not need the model to contain .
- Only differences matter. A constant added to every , such as the term , does not change the choice, so programs that drop constants report different AIC values for the same models. Values from different programs must not be mixed.
Examples and non-examples
Polynomial degree. Take and , and fit polynomials of degree 0 to 4 by least squares with normal errors. Then is the degree plus 2:
| degree | RSS | AIC | AICc | AIC | weight | ||
|---|---|---|---|---|---|---|---|
| 0 | 24.100 | 2 | 37.175 | 41.175 | 42.889 | 18.58 | 0.000 |
| 1 | 23.006 | 3 | 36.710 | 42.710 | 46.710 | 20.11 | 0.000 |
| 2 | 2.521 | 4 | 14.600 | 22.600 | 30.600 | 0 | 0.646 |
| 3 | 2.504 | 5 | 14.534 | 24.534 | 39.534 | 1.93 | 0.246 |
| 4 | 2.415 | 6 | 14.170 | 26.170 | 54.170 | 3.57 | 0.108 |
The RSS values are , , , and . RSS falls with each degree, so falls too. AIC is smallest at degree 2: a parabola captures the single peak of the data, and the higher degrees lower RSS too little to pay for their extra parameters. AIC gives degree 3 a weight of 0.246, so the data do not rule it out. AICc, with , punishes degrees 3 and 4 much harder.
Many candidate columns. Take 10 orthogonal candidate columns that are all noise, and a large . The model with the smallest AIC keeps exactly the columns with (approximately), and each one passes with probability near 0.157. So the search keeps at least one noise column with probability about . Fact 4 is about one comparison; a search over many models overfits more, and the AIC of the chosen model is too optimistic. See stepwise regression and post-selection inference.
Non-example: different responses. A model for and a model for have likelihoods on different scales, and their AIC values cannot be compared. Adding the Jacobian term to the AIC of the model for puts both on the scale of , and then the comparison is valid.
Non-example: different data. If one model drops the rows with a missing value of and the other keeps them, the two log-likelihoods sum over different rows. Fit all candidates to the same rows.
Non-example: REML likelihoods with different fixed effects. The restricted maximum likelihood criterion of a linear mixed model is the likelihood of contrasts that depend on , so two models with different fixed effects have likelihoods of different data. Compare them with ordinary maximum likelihood fits.
Related definitions
- Bayesian information criterion. The penalty in place of ; it targets the true model, not prediction.
- Deviance. For a fixed family, is the scaled deviance minus a term that depends only on the data, so AIC differences are deviance differences plus .
- Mallows' . For normal regression with estimated from the largest model, . It equals AIC with known up to a constant, so the two choose the same model to first order.
- Widely applicable information criterion. The Bayesian analogue, which replaces and by the posterior log predictive density and its variance, and stays valid for singular models.
- Minimum description length. A coding view of model choice whose two-part code gives a penalty, like BIC.
- Overfitting. AIC is one of the standard corrections for it.
References
- Hirotugu Akaike, A new look at the statistical model identification, IEEE Transactions on Automatic Control 19(6), 1974, pp. 716 to 723, The whole paper (the criterion -2 log L + 2k as the estimate of the expected log-likelihood of the fitted model, proposed for model order selection)
- Hirotugu Akaike, Information theory and an extension of the maximum likelihood principle, Second International Symposium on Information Theory, Akadémiai Kiadó, Budapest, 1973, pp. 267 to 281; reprinted in S. Kotz and N. L. Johnson (eds.), Breakthroughs in Statistics, Volume I, Springer, 1992, pp. 610 to 624, The whole paper (the derivation of the bias k of the maximized log-likelihood from the expected Kullback-Leibler discrepancy)
- Clifford M. Hurvich and Chih-Ling Tsai, Regression and time series model selection in small samples, Biometrika 76(2), 1989, pp. 297 to 307, The whole paper (the corrected criterion AICc and its exact unbiasedness in normal linear regression)
- Ritei Shibata, An optimal selection of regression variables, Biometrika 68(1), 1981, pp. 45 to 54, The whole paper (asymptotic efficiency of AIC-type selection when the true regression has infinitely many terms)
- Yuhong Yang, Can the strengths of AIC and BIC be shared? A conflict between model identification and regression estimation, Biometrika 92(4), 2005, pp. 937 to 950, The whole paper (no selection rule is both consistent and minimax-rate optimal for estimating the regression function)
- M. Stone, An asymptotic equivalence of choice of model by cross-validation and Akaike's criterion, Journal of the Royal Statistical Society, Series B 39(1), 1977, pp. 44 to 47, The whole paper (leave-one-out cross-validation of the log-likelihood and AIC agree to first order)
- Gerda Claeskens and Nils Lid Hjort, Model Selection and Model Averaging, Cambridge University Press, 2008, Chapter 2 (the derivation of AIC, the Takeuchi criterion for misspecified models and AICc) and Chapter 4 (comparison of AIC and BIC, consistency and efficiency)
- Kenneth P. Burnham and David R. Anderson, Model Selection and Multimodel Inference: A Practical Information-Theoretic Approach, second edition, Springer, 2002, Chapter 2 (AIC, AICc and Akaike weights)
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag 9RNYDH Edit this page History Report an error Markdown