Bayesian information criterion
In-game article clicks load inline without leaving the challenge.
In statistics, the Bayesian information criterion (BIC) or Schwarz information criterion (also SIC, SBC, SBIC) is a criterion for model selection among a finite set of models; models with lower BIC are generally preferred. It is based, in part, on the likelihood function and it is closely related to the Akaike information criterion (AIC).
When fitting models, it is possible to increase the maximum likelihood by adding parameters, but doing so may result in overfitting. Both BIC and AIC attempt to resolve this problem by introducing a penalty term for the number of parameters in the model; the penalty term is larger in BIC than in AIC for sample sizes greater than 7.
The BIC was developed by Gideon E. Schwarz and published in a 1978 paper, as a large-sample approximation to the Bayes factor.
Definition
The BIC is formally defined as
B I C = k ln ( n ) − 2 ln ( L ^ ) . {\displaystyle \mathrm {BIC} =k\ln(n)-2\ln({\widehat {L}}).\ }
where
- L ^ {\displaystyle {\hat {L}}} = the maximized value of the likelihood function of the model M {\displaystyle M}, i.e. L ^ = p ( x ∣ θ ^ , M ) {\displaystyle {\hat {L}}=p(x\mid {\widehat {\theta }},M)}, where { θ ^ } {\displaystyle \{{\widehat {\theta }}\}} are the parameter values that maximize the likelihood function and x {\displaystyle x} is the observed data;
- n {\displaystyle n} = the number of data points in x {\displaystyle x}, the number of observations, or equivalently, the sample size;
- k {\displaystyle k} = the number of parameters estimated by the model. For example, in multiple linear regression, the estimated parameters are the intercept, the q {\displaystyle q} slope parameters, and the constant variance of the errors; thus, k = q + 2 {\displaystyle k=q+2}.
Derivation
The BIC can be derived by integrating out the parameters of the model using Laplace's method, starting with the following model evidence:
p ( x ∣ M ) = ∫ p ( x ∣ θ , M ) π ( θ ∣ M ) d θ {\displaystyle p(x\mid M)=\int p(x\mid \theta ,M)\pi (\theta \mid M)\,d\theta }
where π ( θ ∣ M ) {\displaystyle \pi (\theta \mid M)} is the prior for θ {\displaystyle \theta } under model M {\displaystyle M}.
The log-likelihood, ln ( p ( x ∣ θ , M ) ) {\displaystyle \ln(p(x\mid \theta ,M))}, is then expanded to a second order Taylor series about the MLE, θ ^ {\displaystyle {\widehat {\theta }}}, assuming it is twice differentiable as follows:
ln ( p ( x ∣ θ , M ) ) = ln ( L ^ ) − n 2 ( θ − θ ^ ) T I ( θ ^ ) ( θ − θ ^ ) + R ( x , θ ) , {\displaystyle \ln(p(x\mid \theta ,M))=\ln({\widehat {L}})-{\frac {n}{2}}(\theta -{\widehat {\theta }})^{\operatorname {T} }{\mathcal {I}}({\widehat {\theta }})(\theta -{\widehat {\theta }})+R(x,\theta ),}
where I ( θ ) {\displaystyle {\mathcal {I}}(\theta )} is the average observed information per observation, and R ( x , θ ) {\displaystyle R(x,\theta )} denotes the residual term. To the extent that R ( x , θ ) {\displaystyle R(x,\theta )} is negligible and π ( θ ∣ M ) {\displaystyle \pi (\theta \mid M)} is relatively linear near θ ^ {\displaystyle {\widehat {\theta }}}, we can integrate out θ {\displaystyle \theta } to get the following:
p ( x ∣ M ) ≈ L ^ ( 2 π n ) k 2 | I ( θ ^ ) | − 1 2 π ( θ ^ ) {\displaystyle p(x\mid M)\approx {\hat {L}}{\left({\frac {2\pi }{n}}\right)}^{\frac {k}{2}}|{\mathcal {I}}({\widehat {\theta }})|^{-{\frac {1}{2}}}\pi ({\widehat {\theta }})}
As n {\displaystyle n} increases, we can ignore | I ( θ ^ ) | {\displaystyle |{\mathcal {I}}({\widehat {\theta }})|} and π ( θ ^ ) {\displaystyle \pi ({\widehat {\theta }})} as they are O ( 1 ) {\displaystyle O(1)}. Thus,
p ( x ∣ M ) = exp ( ln L ^ − k 2 ln ( n ) + O ( 1 ) ) = exp ( − B I C 2 + O ( 1 ) ) , {\displaystyle p(x\mid M)=\exp \left(\ln {\widehat {L}}-{\frac {k}{2}}\ln(n)+O(1)\right)=\exp \left(-{\frac {\mathrm {BIC} }{2}}+O(1)\right),}
where BIC is defined as above, and L ^ {\displaystyle {\widehat {L}}} either (a) is the Bayesian posterior mode or (b) uses the MLE and the prior π ( θ ∣ M ) {\displaystyle \pi (\theta \mid M)} has nonzero slope at the MLE. Then the posterior
p ( M ∣ x ) ∝ p ( x ∣ M ) p ( M ) ≈ exp ( − B I C 2 ) p ( M ) {\displaystyle p(M\mid x)\propto p(x\mid M)p(M)\approx \exp \left(-{\frac {\mathrm {BIC} }{2}}\right)p(M)}
Use
When picking from several models, ones with lower BIC values are generally preferred. The BIC is an increasing function of the error variance σ e 2 {\displaystyle \sigma _{e}^{2}} and an increasing function of k. That is, unexplained variation in the dependent variable and the number of explanatory variables increase the value of BIC. However, a lower BIC does not necessarily indicate one model is better than another. Because it involves approximations, the BIC is merely a heuristic. In particular, differences in BIC should never be treated like transformed Bayes factors.
It is important to keep in mind that the BIC can be used to compare estimated models only when the numerical values of the dependent variable are identical for all models being compared. The models being compared need not be nested, unlike the case when models are being compared using an F-test or a likelihood ratio test.[citation needed]
To compare two different models, simply compute the BIC for each model and compare according to the table below:
| ΔBIC | Evidence Against higher BIC |
|---|---|
| 0 to 2 | Barely worth mentioning |
| 2 to 6 | Positive |
| 6 to 10 | Strong |
| >10 | Very Strong |
Limitations
The BIC suffers from two main limitations:
- the above approximation is only valid for sample size n {\displaystyle n} much larger than the number k {\displaystyle k} of parameters in the model.
- the BIC cannot handle complex collections of models as in the variable selection (or feature selection) problem in high-dimension.
Gaussian special case
Under the assumption that the model errors or disturbances are independent and identically distributed according to a normal distribution and the boundary condition that the derivative of the log likelihood with respect to the true variance is zero, this becomes (up to an additive constant, which depends only on n and not on the model):
B I C = n ln ( σ e 2 ^ ) + k ln ( n ) {\displaystyle \mathrm {BIC} =n\ln({\widehat {\sigma _{e}^{2}}})+k\ln(n)\ }
where σ e 2 ^ {\displaystyle {\widehat {\sigma _{e}^{2}}}} is the error variance. The error variance in this case is defined as
σ e 2 ^ = 1 n ∑ i = 1 n ( x i − x ^ i ) 2 . {\displaystyle {\widehat {\sigma _{e}^{2}}}={\frac {1}{n}}\sum _{i=1}^{n}(x_{i}-{\widehat {x}}_{i})^{2}.}
which is a biased estimator for the true variance.
In terms of the residual sum of squares (RSS) the BIC is
B I C = n ln ( RSS / n ) + k ln ( n ) {\displaystyle \mathrm {BIC} =n\ln({\text{RSS}}/n)+k\ln(n)\ }
When testing multiple linear models against a saturated model, the BIC can be rewritten in terms of the deviance χ 2 {\displaystyle \chi ^{2}} as:
B I C = χ 2 + k ln ( n ) {\displaystyle \mathrm {BIC} =\chi ^{2}+k\ln(n)}
where k {\displaystyle k} is the number of model parameters in the test.
See also
- Akaike information criterion
- Bayes factor
- Bayesian model comparison
- Deviance information criterion
- Hannan–Quinn information criterion
- Jensen–Shannon divergence
- Kullback–Leibler divergence
- Minimum message length
Notes
Further reading
- Bhat, H. S.; Kumar, N (2010). (PDF). Archived from (PDF) on 28 March 2012.
- Findley, D. F. (1991). "Counterexamples to parsimony and BIC". Annals of the Institute of Statistical Mathematics. 43 (3): 505–514. doi:. S2CID .
- Kass, R. E.; Wasserman, L. (1995). "A reference Bayesian test for nested hypotheses and its relationship to the Schwarz criterion". Journal of the American Statistical Association. 90 (431): 928–934. doi:. JSTOR .
- Liddle, A. R. (2007). . Monthly Notices of the Royal Astronomical Society. 377 (1): L74–L78. arXiv:. Bibcode:. doi:. S2CID .
- McQuarrie, A. D. R.; Tsai, C.-L. (1998). Regression and Time Series Model Selection. World Scientific.