内容简介: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》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!
猜你喜欢:本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Head Rush Ajax
Brett McLaughlin、Eric Freeman、Elisabeth Freeman / O'Reilly Media, Inc. / 2006-03-01 / USD 34.99
Ajax, or Asynchronous JavaScript and XML, is a term describing the latest rage in web development. Ajax is used to create interactive web applications with XML-based web services, and using JavaScript......一起来看看 《Head Rush Ajax》 这本书的介绍吧!
Base64 编码/解码
Base64 编码/解码
Markdown 在线编辑器
Markdown 在线编辑器