Akaike Information Criterion
The Akaike Information Criterion (AIC) is an information-theoretic statistical metric that estimates the relative out-of-sample Kullback–Leibler prediction error of candidate parametric models by balancing maximized log-likelihood against parameter complexity.
The Akaike Information Criterion (AIC) is an asymptotic, information-theoretic estimator of relative out-of-sample prediction error used to compare and rank competing statistical models fitted to the same empirical dataset. Formulated by the Japanese statistician Hirotugu Akaike in a landmark 1971 symposium paper and published in IEEE Transactions on Automatic Control in 1974 (originally designated "An Information Criterion"), the AIC bridges Ronald Fisher's method of maximum likelihood estimation with Solomon Kullback and Richard Leibler's information divergence (DKL). For a statistical model with k independently estimated parameters and maximized likelihood value L̂, the Akaike Information Criterion is defined as:
Within applied statistics, econometrics, ecology, and computational biology—most notably when selecting nucleotide, amino acid, and codon substitution models in molecular evolution evaluated via the Felsenstein pruning algorithm—AIC operationalizes Occam's razor quantitatively. Because adding extra free parameters (k) to a family of models always increases or maintains the in-sample maximized log-likelihood ln(L̂) even when those parameters fit random noise (overfitting), AIC penalizes each additional parameter by +2 log-likelihood units, selecting the candidate model that minimizes AIC and thereby minimizes expected information loss when predicting future independent observations.
Kullback–Leibler Divergence and Akaike's Asymptotic Bias Derivation
Expected Kullback–Leibler Information Loss DKL(f ‖ gθ)
Suppose an empirical sample of n observations y = (y1, ..., yn) is generated by an unknown, high-dimensional true data-generating probability distribution f(y), and an investigator approximates f(y) using a candidate parametric model family g(y | θ) indexed by a k-dimensional parameter vector θ ∈ Θ ⊂ Rk. In information theory, the information lost when approximating the true distribution f with the model g(· | θ) is measured by the Kullback–Leibler (KL) divergence (relative Shannon entropy):
Because the first expectation Ef[ln f(Z)] depends solely on the unknown truth f and is an identical constant across all candidate models g1, g2, ..., gR, minimizing the Kullback–Leibler divergence DKL(f ‖ g(· | θ)) is mathematically equivalent to maximizing the expected out-of-sample log-likelihood Ef[ ln g(Z | θ) ] evaluated on a new independent validation sample Z ~ f.
Why In-Sample Log-Likelihood Overfits by k Units (Akaike's Theorem)
In practice, neither the truth f nor the true parameter vector θ0 is known; instead, the investigator estimates the maximum likelihood estimator (MLE) θ̂(y) by maximizing the in-sample log-likelihood ℓ(θ | y) = Σi=1n ln g(yi | θ) on the observed dataset y. Because the same data y are used both to estimate θ̂(y) and to evaluate ln L̂ = ℓ(θ̂(y) | y), the in-sample maximized log-likelihood is an upwardly biased (optimistic) estimator of the expected out-of-sample predictive log-likelihood EYEZ[ℓ(θ̂(Y) | Z)].
Expanding ℓ(θ) in a second-order Taylor series around the KL-minimizing parameter θ0 using the Fisher information matrix I(θ0) and the observed Hessian matrix J(θ0), Hirotugu Akaike (1974) proved that under standard regularity conditions as n → ∞ (for a correctly specified or nearly well-specified model where Tr(I J−1) → k), the asymptotic optimism bias equals the parameter dimension k:
Subtracting this asymptotic bias k from ln L̂ gives the unbiased estimator of expected relative KL log-likelihood (ln L̂ − k); multiplying by −2 (on the historical deviance scale so that differences match χ2 likelihood-ratio statistics) yields AIC = −2 ln L̂ + 2*k*. For ordinary least-squares (OLS) regression with n observations and normally distributed errors of residual sum of squares RSS = Σ(yi − ŷi)2 (where σ̂2MLE = RSS / n), the AIC reduces (up to an additive sample-size constant) to AIC = n ln(RSS / n) + 2*k* (where k includes the intercept, slopes, and error variance σ2).
| Information Criterion / Metric | Mathematical Formula | Penalty per Parameter (k) | Asymptotic Property (n → ∞) | Primary Statistical & Scientific Use Case |
|---|---|---|---|---|
| Akaike Information Criterion (AIC) | 2*k* − 2 ln(L̂) | 2 (constant penalty) | Minimax-rate optimal / Asymptotically efficient (minimizes out-of-sample KL prediction error; equivalent to LOOCV) | General model selection when n / k > 40; phylogenetic substitution models (ModelFinder) |
| Corrected AIC (AICc, Sugiura / Hurvich–Tsai) | AIC + [ 2*k*(k + 1) ] / ( n − k − 1 ) | 2 n / (n − k − 1) → 2 as n → ∞ | Finite-sample second-order bias correction for small n | Recommended default whenever n / k < 40 (ecology, clinical trials, short alignments) |
| Takeuchi Information Criterion (TIC) | −2 ln(L̂) + 2 Tr( Î Ĵ−1 ) | Sandwich trace Tr(Î Ĵ−1) | Robust to severe model misspecification (f ∉ g) | Misspecified econometric and generalized estimating equation (GEE) models |
| Bayesian Information Criterion (BIC, Schwarz 1978) | k ln(n) − 2 ln(L̂) | ln(n) (> 2 for n ≥ 8) | Model-selection consistent (selects true low-k generating model with probability 1 as n → ∞) | Laplace approximation to Bayes factor; favors parsimonious models in large-n genomics |
| Deviance Information Criterion (DIC) / WAIC | −2 log p(y | θ̂Bayes) + 2 peff | Effective parameters peff | Bayesian hierarchical / MCMC generalization of AIC | Bayesian phylogenetics (BEAST / MrBayes) and hierarchical multilevel models |
Small-Sample Correction (AICc), ΔAIC, and Akaike Weights (*w*i)
Hurvich and Tsai's Second-Order Corrected Criterion (AICc)
When the sample size n is small relative to the number of estimated parameters k (specifically when the ratio n / k < 40), the first-order asymptotic bias approximation k underestimates the true overfitting penalty, causing standard AIC to select overparameterized models. Building on Nariaki Sugiura (1978), Clifford Hurvich and Chih-Ling Tsai (1989) derived the exact finite-sample bias for linear regression and autoregressive models, yielding the second-order bias-corrected Akaike Information Criterion (AICc):
Because the extra penalty term 2*k*(k + 1)/(n − k − 1) vanishes automatically as n → ∞ (so AICc → AIC in large samples), Kenneth Burnham and David Anderson recommend using AICc routinely across empirical studies.
Relative Differences (Δi), Akaike Weights (wi), and Multi-Model Inference
Because the unknown truth constant Ef[ln f(Z)] is omitted from AIC, individual raw AIC values (which can be positive or negative) carry no absolute meaning on their own; only differences in AIC (Δi) between candidate models fitted to the exact same response data y are interpretable. Given a set of R candidate models with scores AIC1, ..., AICR and minimum score AICmin = minr AICr:
By Burnham and Anderson's empirical calibration rules of thumb:
- Δi = 0: The top-ranked (KL-best) model in the candidate set.
- 0 ≤ Δi ≤ 2: Substantial empirical support; models within 2 AIC units of AICmin are statistically competitive.
- 4 ≤ Δi ≤ 7: Considerably less empirical support.
- Δi > 10: Essentially zero empirical support relative to the top model.
Transforming Δi back onto the relative likelihood scale via the exponential Boltzmann-like factor L(Mi | y) ∝ exp( −(1/2) Δi ) and normalizing across all R candidate models yields the Akaike weights (wi):
where Σi=1R wi = 1. The Akaike weight wi represents the weight of evidence (approximate probability) that model Mi is the Kullback–Leibler best model among the R candidates, and the evidence ratio between any two models is wi / wj = exp( (1/2)(Δj − Δi) ). Rather than relying on a single winner-take-all model when several models have Δi < 4, investigators compute model-averaged parameter estimates θ̂̄ = Σi=1R wi θ̂i across the entire model ensemble.
AIC vs. BIC and Applications in Molecular Phylogenetics
Asymptotic Efficiency (AIC / Cross-Validation) vs. Consistency (Schwarz BIC)
A recurring theoretical comparison in statistics contrasts AIC (2*k* − 2 ln L̂) with Gideon Schwarz's (1978) Bayesian Information Criterion (BIC = k ln(n) − 2 ln L̂). Although their formulas appear algebraically similar, they optimize fundamentally different mathematical objectives:
- BIC (Bayes Factor Approximation & Consistency): Derived as a Laplace asymptotic approximation to −2 ln P(y | Mi) under uniform model priors, BIC replaces the constant penalty 2 with ln(n) (which exceeds 2 for any n ≥ 8; e.g., ln(1,000) ≈ 6.91). If the true data-generating model f has a finite dimension k0 and is explicitly included in the candidate set, BIC is model-selection consistent (selecting k0 with probability → 1 as n → ∞), whereas AIC maintains a non-zero asymptotic probability (~15.7% for 1 extra parameter) of selecting a slightly larger model.
- AIC (Minimax Prediction Efficiency & Leave-One-Out Cross-Validation): As proved by Mervyn Stone (1977), selecting models by AIC is asymptotically equivalent to leave-one-out cross-validation (LOOCV). Furthermore, Yuhong Yang (2005) proved that when the true biological or physical process f is infinite-dimensional (tapering truths where no finite candidate model is literally exact), AIC is minimax-rate optimal (asymptotically efficient) for minimizing out-of-sample squared prediction error.
Substitution Model Selection in Phylogenetics (jModelTest, ModelFinder, PAML)
Unlike classical Likelihood Ratio Tests (LRTs) (where 2Δℓ ~ χ2df requires the competing models to be strictly nested subsets of one another), AIC and BIC can directly compare non-nested models alongside nested ones in a single pass. In molecular evolution and cladistics, automated model-selection tools such as Modeltest / jModelTest (David Posada and Keith Crandall) and ModelFinder in IQ-TREE evaluate 88 to 286 candidate nucleotide substitution models (from JC69, K80, and HKY85 to GTR+F+I+Γ4 and FreeRate +R models) and 61 × 61 codon substitution models for positive selection, using AIC, AICc (with alignment length or site/branch count as n), and BIC to select the substitution matrix that avoids both under-parameterization bias (long-branch attraction) and over-parameterization variance.
Frequently Asked Questions
Can I compare AIC values between two models that use different transformations of the dependent variable (e.g., y vs. ln y) or different sample sizes?
No—not directly. Because the maximized log-likelihood ln(L̂) is the sum of log probability densities over the n data points, dropping even a single outlier observation (n − 1 vs. n) changes the scale of ln(L̂) and invalidates AIC comparison. Similarly, comparing a model fitted to raw y against a model fitted to transformed ln(y) (or √*y*) violates the shared baseline density f(y) unless you explicitly add the Jacobian determinant of the variable transformation (−2 Σi=1n ln |*d*(g(yi))/dyi|, which equals +2 Σ ln(yi) for a log transformation) to the transformed model's AIC.
Why does adding one useless parameter to a model never increase its AIC by more than +2.0?
Suppose Model A has k parameters and Model B adds one extra parameter (k + 1) that has zero true effect in the population. Because Model A is nested inside Model B, maximizing the likelihood of Model B over a larger parameter space guarantees that ln(L̂B) ≥ ln(L̂A) (the in-sample fit can never get worse). Under the null hypothesis, twice the log-likelihood increase 2(ln L̂B − ln L̂A) follows a χ21 distribution with mean 1.0 (and minimum 0.0). Therefore, AICB − AICA = 2(1) − 2(ln L̂B − ln L̂A) ≤ +2.0. When two nested models differ by ΔAIC ≈ 1.5 to 2.0, the extra parameter in the larger model is almost certainly an uninformative pretender variable fitting noise.
When should I use AIC (or AICc) instead of BIC?
Use AIC (and AICc whenever n/k < 40) when your primary scientific goal is predictive accuracy and when you expect the underlying real-world system (such as an ecosystem, clinical cohort, or evolving protein sequence) to be highly complex with many small tapering effects not fully captured by any simple 3-parameter equation. Use BIC when n is large and your goal is structural system identification—isolating the few dominant causal variables with minimal false positives under the assumption that a simple true model exists in your candidate set.
References
- Akaike, H. (1974). "A new look at the statistical model identification." IEEE Transactions on Automatic Control, 19(6), 716–723. https://doi.org/10.1109/TAC.1974.1100705
- Stone, M. (1977). "An asymptotic equivalence of choice of model by cross-validation and Akaike's criterion." Journal of the Royal Statistical Society: Series B (Methodological), 39(1), 44–47. https://doi.org/10.1111/j.2517-6161.1977.tb01603.x
- Hurvich, C. M., & Tsai, C.-L. (1989). "Regression and time series model selection in small samples." Biometrika, 76(2), 297–307. https://doi.org/10.1093/biomet/76.2.297
- Burnham, K. P., & Anderson, D. R. (2004). "Multimodel inference: understanding AIC and BIC in model selection." Sociological Methods & Research, 33(2), 261–304. https://doi.org/10.1177/0049124104268644