Naive Bayes

Classifying with probability theory:naive Bayes

This chapter covers:

Using probability distributions for classification

Learning the naive Bayes classifier

Using naive Bayes to solve some problems in rel world

(1)Naive Bayes and Bayesian decision theory

Naive Bayes is a subset of Bayesian decision theory.

Bayesian decision theory:

For example,now we have an equation for a probability of a piece of data belonging to Class 1:p1(x,y), and we have an equation for a probability of a piece of data belonging to Class 2:p2(x,y). To classify a new neasurement with features (x,y), we use the following rules:
If p1(x,y)>p2(x,y), then the class is 1.
If p1(x,y)<p2(x,y), then the class is 2.
Put simply, we choose the class with the higher probability.That’s Bayesian decision theory in a nutshell: choosing the decision with the highest probability.

(2)Bayes’ rule and the Bayesian classification rule

Bayes’ rule:P(ci|x,y)=P(x,y|ci)P(ci)/P(x,y)
Use Bayes’ rule to calculate condition probability, then use the condition probability to provide the basis for classifying.
the Bayesian classification rule:
If P(c1|x,y)>P(c2|x,y), the class is c1
If P(c1|x,y)<P(c2|x,y), the class is c2

(3)Naive Bayes

Naive Bayes----an extension of the Bayesian classifier.
One of the applications of naive Bayes is docunment classification.We can look at the documents by the words used in them and treat the presence or absence of each word as a feature.Then what is meant by naive in the naive Bayes classifier?There are two assumptions in the naive Bayes. The first one is: we assume independence among the features.That means one feature or word is just as likely by itself as it is next to other words. The second one is: we make is that every feature is equally important.Despite the minor flaws of the two assumptions, naive Bayes works well in practice.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值