admin管理员组文章数量:1660166
In practice, we estimate conditional probabilites P(A|B) = n/N, where n is the number of times A and B in common, N is the number of times B in the trainning data.
what about n are very little, even equal to 0. Or n are very large, even equal to N. What's more, sometimes the values of probablities should be smoothing.
To avoid this, we fix the following numbers p and m beforehand:
A nonzero prior estimate p for P(A|B);
A number m that says how confident we are of our prior estimate p, as measured in number of samples
so, the P(A|B) was estimated by (n + m*p)/(N+m);
Just think of this as adding a bunch of samples to start the whole process
If we don't have any knowledge of p, assume the attribute is uniformly distributed over all possible values. Then p = 1/m.
转载于:https://wwwblogs/jiangyoumiemie/p/3495151.html
本文标签: estimateProbability
版权声明:本文标题:m-estimate of probability 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/xitong/1729850084a1215292.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论