machine learning - Naive_Bayes_classifier (FINISHED)
http://en.wikipedia.org/wiki/Naive_Bayes_classifier
Abstractly, the probability model for a classifier is a conditional model 模型:
In plain English the above equation can be written as
关键是计算分子,因为分母为常数
而分子可以展开为
The numerator is equivalent to the joint probability model
which can be rewritten as follows, using repeated applications of the definition of conditional probability:
Now the "naive" conditional independence assumptions come into play: assume that each feature Fi is conditionally independent of every other feature Fj for . This means that
for , and so the joint model can be expressed as
This means that under the above independence assumptions, the conditional distribution over the class variable C can be expressed like this:这里是最终的分子:
Constructing a classifier from the probability model
The discussion so far has derived the independent feature model, that is, the naive Bayes probability model. The naive Bayes classifier combines this model with a decision rule. One common rule is to pick the hypothesis that is most probable; this is known as the maximum a posteriori or MAP decision rule. The corresponding classifier is the function classify defined as follows:贝叶斯分类器的构造,通常为使用最大似然优化以下函数
更详细的判别函数,及参数估计(最大似然及贝叶斯参数估计)的推导最好看书, 推荐《模式分类》