Akaike Information Criterion (AIC)

Machine Learning
Introduced by
Hirotugu Akaike
Year
1974
Type
Model selection metric
Family
Information-theoretic criterion

What does it do?

The Akaike Information Criterion is an information-theoretic measure for model selection that balances goodness of fit against model complexity.

Introduced by Hirotugu Akaike in 1974, AIC estimates the relative quality of models for a given dataset, penalizing additional parameters to prevent overfitting.

The intuition behind the method

AIC balances two competing demands. A model that fits the observed data more closely (a higher maximised likelihood) receives a lower score, while each estimated parameter adds a penalty of 2k, so extra parameters must improve fit enough to justify their inclusion. Lower AIC indicates the preferred model among the candidates. The absolute AIC value has no meaning on its own; only differences between models fitted to the same data are interpreted. The criterion is grounded in information theory: it estimates how well a fitted model would predict new data, using the Kullback-Leibler divergence as the underlying measure of discrepancy between a model and the true process.

History

Hirotugu Akaike introduced AIC in 1974 in a paper on statistical model identification, proposing that the model with the minimum criterion value be selected as an alternative to conventional hypothesis testing. The derivation rests on information theory and the Kullback-Leibler discrepancy between a model and the true process. Burnham and Anderson's book is a widely cited guide to applying AIC in practice, and the criterion became especially common in ecology.

When to use it

Use AIC when you have several candidate models fitted by maximum likelihood to the same response data and the aim is prediction or approximation of the process that generated the data. It can compare non-nested model structures, which likelihood-ratio tests cannot compare directly, and it is commonly applied to regression, time-series and mixed-effects models. Do not use it when models have different response variables or transformations, when no full likelihood can be written for a candidate, or when the sample is small relative to the number of parameters; in that case the small-sample corrected version, AICc, should be used in place of plain AIC. AIC assumes the true model is in the candidate set; if it is not, the ranking identifies only the best available approximation. If the question is which structure is true rather than which predicts best, BIC may be more appropriate, because AIC's penalty does not grow with sample size.

Limitations and considerations

  • Only differences between AIC values for the same data carry meaning; the absolute value is not interpretable
  • Its justification rests on large-sample approximations under regularity conditions, so it can be unreliable when the sample is small. With dependent data such as time series, the candidate must have a correctly specified full likelihood that captures the dependence; residual autocorrelation left unmodelled can make AIC comparisons misleading.
  • Requires a full likelihood, so models without a specified likelihood cannot be scored by AIC directly
  • Because the penalty per parameter does not grow with sample size, AIC tends to retain more complex models in large samples than criteria whose penalty does grow with n

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Targets out-of-sample prediction through the Kullback-Leibler framework rather than in-sample fit alone
  • Can compare non-nested models fitted to the same data, so it is not restricted to nested likelihood-ratio comparisons
  • The fixed penalty of 2k per parameter gives a simple, explicit trade-off between fit and complexity, computed directly from the maximised log-likelihood
  • Follows from maximum likelihood estimation, so no separate estimation step is needed beyond fitting each candidate

Applications

  • Ecological species distribution modelling: comparing alternative environmental variables and functional forms
  • Econometric forecasting: selecting among competing lagged structures in autoregressive models
  • Pharmacokinetic modelling: choosing among compartmental models for drug concentration data
  • Regression and mixed-effects modelling: ranking candidate predictor sets fitted to the same response

How it works

How it works

1

Fit each candidate model by maximum likelihood and evaluate the log-likelihood at the estimated parameters. Every candidate must be fitted to the same response data.

Formula
\ell = \log \mathcal{L}(\theta | y)
2

Count the k independently adjusted parameters in the model and multiply by 2. The count includes every freely estimated parameter in the likelihood, such as intercepts and the error variance or any dispersion or scale parameter (for example the residual variance of a Gaussian regression). The same counting rule must be applied to all candidates. This term rises with each added parameter and does not depend on sample size.

Formula
\text{penalty} = 2k
3

Combine the two terms as AIC = 2k - 2 log L, where log L is the log-likelihood at the maximum likelihood estimates. Lower values indicate a preferred model, and only differences between models fitted to the same data are interpreted.

Formula
AIC = 2k - 2\ell = 2k - 2\log \mathcal{L}(\theta | y)

Common pitfalls

  • Comparing AIC values computed on different datasets or different response variables, which is not valid
  • Reading AIC as a direct measure of predictive accuracy; it ranks candidates by estimated relative quality and does not state how accurate any model is
  • Comparing models with different response transformations or link functions without placing their likelihoods on a common scale
  • Treating small AIC differences as decisive; the informal thresholds in the FAQ are guides, not formal tests

Frequently asked questions

How large an AIC difference is meaningful?

As an informal guide only: a difference (delta AIC) below about 2 from the lowest AIC means the model has substantial support, a difference of about 4 to 7 indicates considerably less support, and a difference above about 10 indicates essentially no support. These are commonly used rules of thumb rather than formal tests, and domain knowledge should inform the decision.

Should I use AIC or BIC?

AIC is generally oriented toward prediction, whereas BIC is oriented toward identifying the true model structure. AIC's penalty stays at 2k per parameter regardless of sample size, while BIC's penalty grows with the number of observations. BIC therefore penalises extra parameters more heavily as data accumulate and tends to select simpler models in large samples.

Can I use AIC with time-series data?

Yes, with care. AIC requires a correctly specified full likelihood for the data as they are actually modelled. Models such as ARIMA and GARCH supply such likelihoods, and AIC is commonly used to compare them, for example to choose among Markov switching-GARCH models with different error distributions. However, autocorrelation in the residuals that the model leaves unmodelled can make AIC comparisons unreliable, so residual diagnostics should be checked before the comparison is relied upon.

Why does AIC increase with sample size for fixed k?

For a fixed model, the log-likelihood is a sum over observations, so with more data it typically becomes more negative, and -2 log L grows with n. Raw AIC values therefore depend on the sample size, which is why they cannot be compared across datasets and should only be compared within the same dataset.

How does AIC relate to cross-validation?

Both aim to estimate out-of-sample prediction error. AIC is computed from a single fit per model and needs no refitting. Cross-validation refits models on subsets of the data, is more direct, and relies less on the likelihood being correctly specified, but its result depends on how the data are partitioned. For critical decisions, the two can be used together.

Related methods

Sources

  1. Akaike, H. (1974). A new look at the statistical model identification. IEEE Transactions on Automatic Control, 19(6), 716-723.

    Open DOI reference
  2. Burnham, K. P., & Anderson, D. R. (2002). Model Selection and Multimodel Inference: A Practical Information-Theoretic Approach (2nd ed.). New York: Springer.

    Open DOI reference
  3. Kullback, S., & Leibler, R. A. (1951). On information and sufficiency. Annals of Mathematical Statistics, 22(1), 79-86.

    Open DOI reference