内容简介:All of us have used AIC for model selection. This blog is about the idea behind AIC, what is it and why is it used for model selection. While we have been told how to calculate AIC, at least I was never taught the logic behind why are we doing this — this
Akaike Information Theory
The idea behind AIC
Mar 13 ·3min read
All of us have used AIC for model selection. This blog is about the idea behind AIC, what is it and why is it used for model selection. While we have been told how to calculate AIC, at least I was never taught the logic behind why are we doing this — this blog is to cover that.
AIC is an estimate for the out-of-sample error . AIC is based on information theory. He called it an entropy maximization principle and minimizing AIC is equivalent to maximizing entropy in a thermodynamic system. Thus, in the language of information theory, we can say that while coding a model ( where we can never find the exact model ), some information is lost in representing the process by which the data was generated.
AIC measures the relative loss of information . Since we do not the exact model, we cannot measure the exact loss. Thus we measure relative loss among the different models (from which we have to select our model). If we have 3 models with AIC values 100, 102, and 110, then the second model is exp((100 − 102)/2) = 0.368 times as probable as the first model to minimize the information loss. Similarly, the third model is exp((100 − 110)/2) = 0.007 times as probable as the first model to minimize information loss.
AIC is given by 2 x number of parameters — 2 log(Likelihood)
When selecting the model (for example polynomial function), we select the model with the minimum AIC value. Or if we can select the top 2–3 models, collect more data and select the once with minimum AIC. This blog is about — where does this formula of AIC come from?
In AIC, we try to minimize the (proxy of) KL divergence between the model and the ground truth function. AIC is the calculation for the estimate of the proxy function. Thus minimizing the AIC is akin to minimizing the KL divergence from the ground truth — hence minimizing the out of sample error. The derivation for AIC is shown in the following two images.
Bayesian Information Criteria (BIC) is calculated similarly to AIC. Instead of 2k, BIC uses 2 ln(n)k. These are called the penalty terms. It is argued that if the true model is present in the set of models, BIC selects the true model with probability 1, given n tends to infinity. Since we never really have the true model in the set of candidate models, this property is not highly regarded. Also, AIC minimizes the risk of selecting a very bad model.
Reference
1. Wikipedia page on AIC以上所述就是小编给大家介绍的《Akaike Information Criteria》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!
猜你喜欢:本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Linux内核完全剖析
赵炯 / 机械工业出版社 / 2008.10 / 99.00元
本书对早期Linux内核(v0.12)全部代码文件进行了详细、全面的注释和说明,旨在帮助读者用较短的时间对Linux的工作机理获得全面而深刻的理解,为进一步学习和研究Linux打下坚实的基础。虽然选择的版本较低,但该内核已能够正常编译运行,并且其中已包括了Linux工作原理的精髓。书中首先以Linux源代码版本的变迁为主线,介绍了Linux的历史,同时着重说明了各个内核版本的主要区别和改进,给出了......一起来看看 《Linux内核完全剖析》 这本书的介绍吧!