Definitioncore
Bayesian information criterion
Also called BIC, Schwarz criterion.
BIC = -2 log L + k log n. It approximates -2 times the log marginal likelihood up to a bounded error, and it picks the true model among a fixed finite list as n grows.
The Bayesian information criterion of a model fitted by maximum likelihood is , with estimated parameters and observations. Schwarz (1978) found it as the part of the log marginal likelihood of a model that grows with : for regular models, differs from the log marginal likelihood by a term that stays bounded, whatever the prior. So the difference of two BIC values approximates times the log Bayes factor, and the model with the smallest BIC has approximately the largest posterior probability under equal prior weights. Its penalty per parameter, , is larger than the 2 of the Akaike information criterion once . As a result, BIC picks the true model with probability tending to 1 when the true model is in a fixed finite list, but it predicts less well than AIC when no candidate is true.
Definition
Let , let a model have densities with in an open subset of , let be the maximum likelihood estimate and . Then
For a normal linear regression with an design matrix whose columns include the intercept, coefficient vector and residual sum of squares RSS, and . Given a prior density on , the marginal likelihood of the model is .
Facts.
- The Laplace approximation (sketch with conditions). Assume: the are independent and identically distributed; the log-likelihood is three times continuously differentiable, with third derivatives bounded by on a fixed neighborhood of the true ; tends in probability to a positive definite matrix ; in probability; is continuous and positive at ; and for each there is with with probability tending to 1. Split into the integral over the ball and over the rest. Outside the ball the integrand is at most times , exponentially smaller than the main term. Inside, with , since the score is 0 at . Put , so and . The integral is , and the Gaussian integral is . Taking logarithms,
So . The term depends on the prior and on and does not tend to 0. It is small compared with , but it is not small in absolute terms. Kass and Raftery (1995, Section 4) give the full statement.
- The unit-information prior. If is normal with mean at the null value and covariance (the information of one observation), the bounded term of Fact 1 nearly cancels in a nested comparison when the estimate is within of the null value. Kass and Wasserman (1995) showed that the BIC difference then approximates times the log Bayes factor with error . This is the prior under which the BIC difference is more than an approximation.
- BIC does not overfit in the limit. Take nested models that differ by parameters. BIC prefers the larger model exactly when the likelihood ratio statistic exceeds . If the smaller model is true and the conditions of Wilks' theorem hold, the statistic tends in law to , a fixed law, while . So the probability of choosing the larger model tends to 0. Proof: for any fixed and all with , , and can be as large as needed.
- BIC is consistent. If the larger model is true with a fixed parameter outside the smaller model, grows like times a positive Kullback-Leibler gap, which beats . With Fact 3, BIC chooses the true model among a fixed finite list with probability tending to 1. The general result needs conditions on the models; Nishii (1984) proved it for normal regression and Haughton (1988) for exponential families. It is cited here, not proved.
- The price of consistency. When the true regression is not in any candidate, the penalty leaves out terms whose effects are small but not zero, and the prediction error of the chosen model is larger than the best possible rate. Yang (2005) showed that no criterion is both consistent, like BIC, and minimax-rate optimal for prediction, like AIC.
- What is. The derivation needs the information to grow like times a fixed matrix. For dependent data the right is not always the number of observations. In a linear mixed model the information about a variance of group effects grows with the number of groups, not with the number of observations. For censored survival data it grows with the number of events. Different programs make different choices.
- Singular models. In mixtures, factor models and neural networks, is singular at the true parameter and the Laplace step of Fact 1 fails. The correct penalty there is smaller than ; the widely applicable information criterion is designed for that case.
Examples and non-examples
An exact case. Let be normal with mean and variance 1, and give the normal prior with mean 0 and variance . Then , and the marginal likelihood is exact:
BIC keeps only . With held fixed:
| BIC term | error | ||
|---|---|---|---|
| 10 | -1.3126 | -1.1513 | -0.161 |
| 100 | -2.4313 | -2.3026 | -0.129 |
| 1000 | -3.5793 | -3.4539 | -0.125 |
| -7.0328 | -6.9078 | -0.125 |
The error tends to , the bounded term of Fact 1. It does not tend to 0. With the limit would be , so the prior matters at every .
Bayes factor and p-value. Test against free in the same model, with fixed, so is within of 0 and the prior is the unit-information prior of Fact 2. The exact Bayes factor under the prior above and its BIC approximation are:
| two-sided p-value | exact | BIC | ||
|---|---|---|---|---|
| 100 | 2 | 0.0455 | 0.721 | 0.739 |
| 100 | 3 | 0.0027 | 8.57 | 9.00 |
| 2 | 0.0455 | 0.074 | 0.074 | |
| 3 | 0.0027 | 0.900 | 0.900 |
At a result with gives a Bayes factor of about 13 in favor of . This is the Lindley paradox: with large, a fixed p-value is evidence for the null.
The equivalent test level. For one added parameter, BIC adds it when :
| 10 | 100 | 1000 | |||
|---|---|---|---|---|---|
| 1.517 | 2.146 | 2.628 | 3.035 | 3.717 | |
| 0.129 | 0.032 | 0.0086 | 0.0024 | 0.0002 |
AIC uses the fixed threshold with level 0.157 at every . At BIC adds noise parameters with probabilities 0.0100, 0.0032 and 0.0003.
Non-example: BIC as the log marginal likelihood. is not an estimate of in absolute terms; the exact case above is off by 0.125 at every for one prior and by 2.30 for another. Use BIC to compare models, or use a proper computation of .
Non-example: comparing a model for with a model for , or models fitted to different rows. As for AIC, the likelihoods must be of the same data.
Related definitions
- Akaike information criterion. The same form with penalty ; it targets prediction, while BIC targets the true model.
- Marginal likelihood and Bayes factor. The exact quantities that BIC approximates; is the BIC estimate of the Bayes factor, and normalized over a list it gives approximate posterior model probabilities for Bayesian model averaging.
- Minimum description length. The two-part code length of the data has the same leading terms, .
- Widely applicable information criterion. The criterion for singular models and for prediction under the posterior.
- Model search. BIC is often the criterion of stepwise regression and of exact subset search by leaps and bounds.
References
- Gideon Schwarz, Estimating the dimension of a model, Annals of Statistics 6(2), 1978, pp. 461 to 464, The whole paper (the criterion log L - (k/2) log n as the leading terms of the log posterior probability of a model, for exponential families)
- Robert E. Kass and Adrian E. Raftery, Bayes factors, Journal of the American Statistical Association 90(430), 1995, pp. 773 to 795, Section 4 (the Laplace approximation of the marginal likelihood and the Schwarz criterion, with its O(1) error)
- Robert E. Kass and Larry Wasserman, A reference Bayesian test for nested hypotheses and its relationship to the Schwarz criterion, Journal of the American Statistical Association 90(431), 1995, pp. 928 to 934, The whole paper (with the unit-information prior, the Schwarz criterion approximates the log Bayes factor with error O(n^(-1/2)))
- Dominique M. A. Haughton, On the choice of a model to fit data from an exponential family, Annals of Statistics 16(1), 1988, pp. 342 to 355, The whole paper (the expansion of the log posterior probability of a model for exponential families and the consistency of BIC)
- Ryuei Nishii, Asymptotic properties of criteria for selection of variables in multiple regression, Annals of Statistics 12(2), 1984, pp. 758 to 765, The whole paper (consistency of criteria whose penalty grows to infinity more slowly than n, such as k log n, in normal regression)
- 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 (a consistent criterion such as BIC is not minimax-rate optimal for estimating the regression function)
- Gerda Claeskens and Nils Lid Hjort, Model Selection and Model Averaging, Cambridge University Press, 2008, Chapter 3 (the derivation of BIC by the Laplace approximation) and Chapter 4 (consistency of BIC and comparison with AIC)
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 NMWAP1 Edit this page History Report an error Markdown