(4.2.1)--4.2NaiveBayes.pdf

上传人:刘静 文档编号:52833377 上传时间:2022-10-24 格式:PDF 页数:7 大小:1.49MB
返回 下载 相关 举报
(4.2.1)--4.2NaiveBayes.pdf_第1页
第1页 / 共7页
(4.2.1)--4.2NaiveBayes.pdf_第2页
第2页 / 共7页
点击查看更多>>
资源描述

《(4.2.1)--4.2NaiveBayes.pdf》由会员分享,可在线阅读,更多相关《(4.2.1)--4.2NaiveBayes.pdf(7页珍藏版)》请在得力文库 - 分享文档赚钱的网站上搜索。

1、What is Nave Bayes ClassifierNaive Bayesis a classification algorithm basedon Bayes Theorem with an assumption ofindependence among predictors.NaveBayesWhat is Bayes TheoremBayes theoremdescribes the probabilityof an event,based on prior knowledge ofconditions that might be related to theevent.The p

2、osterior probability equals the prior probability times the likelihood ratio.Prior ProbabilityPosterior ProbabilityLikelihood RatioHow Bayes Theorem WorksA shepherd boy gets bored tending the towns flock.To havesome fun,he cries out,Wolf!even though no wolf is in sight.The villagers run to protect t

3、he flock,but then get really madwhen they realize the boy was playing a joke on them.A few days afterwards he tries the same trick.One day,the shepherd boy sees a real wolf approaching theflock and calls out,Wolf!The villagers refuse to be fooledagain and stay in their houses.The hungry wolf turns t

4、he flockinto lamb chops.The town goes hungry.How to use Bayes Theorem to explain the decline of villagers trust in the child?How Bayes Theorem Works=The boy lies,=Villagers trust the boy The villagers trust in the boy in the past is =0.8The probability of the boy lying when the villagers believe the

5、 boy is|=0.1|indicates the villagers trust in the child after the child tells a lie.Suppose:The probability of the boy lying is =0.2=0.1 0.80.2 =)(|)()(=0.4Predicting Using Naive BayesDayOutlookHumidityWindPlay1SunnyHighWeakNo2SunnyHighStrongNo3OvercastHighWeakYes4RainHighWeakYes5RainNormalWeakYes6R

6、ainNormalStrongNo7OvercastNormalStrongYes8SunnyHighWeakNo9SunnyNormalWeakYes10RainNormalWeakYes11SunnyNormalStrongYes12OvercastHighStrongYes13OvercastNormalWeakYes14RainHighStrongNoFrequency TablePlayYesNoOutlookSunny32Overcast40Rainy32Frequency TablePlayYesNoHumidityHigh34Normal61Frequency TablePla

7、yYesNoWindStrong62Weak33Likelihood TablePlayYesNoOutlookSunny3/102/45/14Overcast4/100/44/14Rain3/102/45/1410/144/14()=()=10/14()=()=5/14 =()/()=0.6Likelihood TablePlayYesNoHumidityHigh3/94/57/14Normal6/91/57/149/145/14 =3/10Likelihood TablePlayYesNoWindWeak6/92/58/14Strong3/93/56/149/145/14 =()/()=0.43 =()/()=0.75Calculating conditional probability of play on the following combination of Outlook,Humidity and Wind:Where E equals:Outlook=RainHumidity=HighWind=WeakLet H=No Play =,=()=(24)(45)(25)(514)(514)(714)(814)=0.56

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 教育专区 > 大学资料

本站为文档C TO C交易模式,本站只提供存储空间、用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。本站仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知得利文库网,我们立即给予删除!客服QQ:136780468 微信:18945177775 电话:18904686070

工信部备案号:黑ICP备15003705号-8 |  经营许可证:黑B2-20190332号 |   黑公网安备:91230400333293403D

© 2020-2023 www.deliwenku.com 得利文库. All Rights Reserved 黑龙江转换宝科技有限公司 

黑龙江省互联网违法和不良信息举报
举报电话:0468-3380021 邮箱:hgswwxb@163.com