{"id":4524,"date":"2019-07-03T06:56:10","date_gmt":"2019-07-02T22:56:10","guid":{"rendered":"https:\/\/ixyzero.com\/blog\/?p=4524"},"modified":"2019-07-03T06:56:10","modified_gmt":"2019-07-02T22:56:10","slug":"%e6%9c%ba%e5%99%a8%e5%ad%a6%e4%b9%a0-%e6%9c%b4%e7%b4%a0%e8%b4%9d%e5%8f%b6%e6%96%af","status":"publish","type":"post","link":"https:\/\/ixyzero.com\/blog\/archives\/4524.html","title":{"rendered":"\u673a\u5668\u5b66\u4e60-\u6734\u7d20\u8d1d\u53f6\u65af"},"content":{"rendered":"\n<p>=Start=<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"id-\u6a21\u677f-\u7f18\u7531\uff1a\">\u7f18\u7531\uff1a<\/h4>\n\n\n\n<p>\u60f3\u901a\u8fc7\u5feb\u901f\u6574\u7406\u300a\u673a\u5668\u5b66\u4e60\u5b9e\u6218\u300b\u4e00\u4e66\u4e2d\u51fa\u73b0\u8fc7\u7684\u5404\u79cd\u673a\u5668\u5b66\u4e60\u7b97\u6cd5\u7684\u539f\u7406\u53ca\u5176\u4f18\u7f3a\u70b9\u548c\u9002\u7528\u8303\u56f4\u6765\u5feb\u901f\u5b66\u4e60\u3001\u4e86\u89e3\u5e38\u89c1\u7684\u673a\u5668\u5b66\u4e60\u7b97\u6cd5\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"id-\u6a21\u677f-\u6b63\u6587\uff1a\">\u6b63\u6587\uff1a<\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"id-\u6a21\u677f-\u53c2\u8003\u89e3\u7b54\uff1a\">\u53c2\u8003\u89e3\u7b54\uff1a<\/h5>\n\n\n\n<h6 class=\"wp-block-heading\">1\u3001<strong>\u8d1d\u53f6\u65af\u516c\u5f0f<\/strong><\/h6>\n\n\n\n<p class=\"has-text-color has-vivid-red-color\">\u8d1d\u53f6\u65af\u5b9a\u7406\uff08Bayes&#8217; theorem\uff09\u662f\u6982\u7387\u8bba\u4e2d\u7684\u4e00\u4e2a\u5b9a\u7406\uff0c\u5b83\u8ddf\u968f\u673a\u53d8\u91cf\u7684\u6761\u4ef6\u6982\u7387\u4ee5\u53ca\u8fb9\u7f18\u6982\u7387\u5206\u5e03\u6709\u5173\u3002\u5728\u6709\u4e9b\u5173\u4e8e\u6982\u7387\u7684\u89e3\u8bf4\u4e2d\uff0c<strong>\u8d1d\u53f6\u65af\u5b9a\u7406\u80fd\u591f\u544a\u77e5\u6211\u4eec\u5982\u4f55\u5229\u7528\u65b0\u8bc1\u636e\u4fee\u6539\u5df2\u6709\u7684\u770b\u6cd5\u3002<\/strong><strong>\u901a\u5e38\u4e8b\u4ef6A\u5728\u4e8b\u4ef6B\u53d1\u751f\u7684\u6761\u4ef6\u4e0b\u7684\u6982\u7387\uff0c\u4e0e\u4e8b\u4ef6B\u5728\u4e8b\u4ef6A\u53d1\u751f\u7684\u6761\u4ef6\u4e0b\u7684\u6982\u7387\u662f\u4e0d\u4e00\u6837\u7684\uff1b\u7136\u800c\u8fd9\u4e24\u79cd\u662f\u6709\u786e\u5b9a\u5173\u7cfb\u7684\uff0c\u8fd9\u79cd\u5173\u7cfb\u5c31\u662f\u8d1d\u53f6\u65af\u5b9a\u7406<\/strong>\uff1a<\/p>\n\n\n\n<p style=\"text-align:center\"><strong>P(A|B) = ( P(A) * P(B|A) ) \/ P(B)<\/strong><\/p>\n\n\n\n<p><strong>\u4ece\u516c\u5f0f\u6765\u770b\uff0c\u6211\u4eec\u9700\u8981\u77e5\u9053\u8fd9\u4e483\u4e2a\u4e8b\u60c5\uff1a<\/strong><\/p>\n\n\n\n<p><strong>1\uff09\u5148\u9a8c\u6982\u7387<\/strong><\/p>\n\n\n\n<p class=\"has-text-color has-vivid-red-color\"><strong>\u6211\u4eec\u628aP(A)\u79f0\u4e3a&#8221;\u5148\u9a8c\u6982\u7387&#8221;\uff08Prior probability\uff09<\/strong>\uff0c<strong>\u5373\u5728\u4e0d\u77e5\u9053B\u4e8b\u4ef6\u53d1\u751f\u7684\u524d\u63d0\u4e0b\uff0c\u6211\u4eec\u5bf9A\u4e8b\u4ef6\u53d1\u751f\u6982\u7387\u7684\u4e00\u4e2a\u4e3b\u89c2\u5224\u65ad\u3002<\/strong><\/p>\n\n\n\n<p><strong>2\uff09\u53ef\u80fd\u6027\u51fd\u6570<\/strong><\/p>\n\n\n\n<p class=\"has-text-color has-vivid-red-color\"><strong>P(B|A)\/P(B)\u79f0\u4e3a&#8221;\u53ef\u80fd\u6027\u51fd\u6570&#8221;\uff08Likelyhood\uff09<\/strong>\uff0c<strong>\u8fd9\u662f\u4e00\u4e2a\u8c03\u6574\u56e0\u5b50\uff0c\u5373\u65b0\u4fe1\u606f\u4e8b\u4ef6B\u7684\u53d1\u751f\u8c03\u6574\uff0c\u4f5c\u7528\u662f\uff0c\u4f7f\u5f97\u5148\u9a8c\u6982\u7387\u66f4\u63a5\u8fd1\u771f\u5b9e\u6982\u7387\u3002<\/strong>\u53ef\u80fd\u6027\u51fd\u6570\u4f60\u53ef\u4ee5\u7406\u89e3\u4e3a\u65b0\u4fe1\u606f\u8fc7\u6765\u540e\uff0c\u5bf9\u5148\u9a8c\u6982\u7387\u7684\u4e00\u4e2a\u8c03\u6574\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u5982\u679c&#8221;\u53ef\u80fd\u6027\u51fd\u6570&#8221;P(B|A)\/P(B)&gt;1\uff0c\u610f\u5473\u7740&#8221;\u5148\u9a8c\u6982\u7387&#8221;\u88ab\u589e\u5f3a\uff0c\u4e8b\u4ef6A\u7684\u53d1\u751f\u7684\u53ef\u80fd\u6027\u53d8\u5927\uff1b<\/li><li>\u5982\u679c&#8221;\u53ef\u80fd\u6027\u51fd\u6570&#8221;=1\uff0c\u610f\u5473\u7740B\u4e8b\u4ef6\u65e0\u52a9\u4e8e\u5224\u65ad\u4e8b\u4ef6A\u7684\u53ef\u80fd\u6027\uff1b<\/li><li>\u5982\u679c&#8221;\u53ef\u80fd\u6027\u51fd\u6570&#8221;&lt;1\uff0c\u610f\u5473\u7740&#8221;\u5148\u9a8c\u6982\u7387&#8221;\u88ab\u524a\u5f31\uff0c\u4e8b\u4ef6A\u7684\u53ef\u80fd\u6027\u53d8\u5c0f\u3002<\/li><\/ul>\n\n\n\n<p><strong>3\uff09\u540e\u9a8c\u6982\u7387<\/strong><\/p>\n\n\n\n<p class=\"has-text-color has-vivid-red-color\"><strong>P(A|B)\u79f0\u4e3a&#8221;\u540e\u9a8c\u6982\u7387&#8221;\uff08Posterior probability\uff09<\/strong>\uff0c<strong>\u5373\u5728B\u4e8b\u4ef6\u53d1\u751f\u4e4b\u540e\uff0c\u6211\u4eec\u5bf9A\u4e8b\u4ef6\u6982\u7387\u7684\u91cd\u65b0\u8bc4\u4f30\u3002<\/strong><\/p>\n\n\n\n<p class=\"has-background has-cyan-bluish-gray-background-color\">\u6240\u4ee5\uff0c\u8d1d\u53f6\u65af\u5b9a\u7406\uff1a&nbsp;&nbsp;<strong>\u540e\u9a8c\u6982\u7387=\u5148\u9a8c\u6982\u7387*\u53ef\u80fd\u6027\u51fd\u6570<\/strong>\u3002<\/p>\n\n\n\n<h6 class=\"wp-block-heading\"><strong>2\u3001\u6734\u7d20\u8d1d\u53f6\u65af\u5206\u7c7b\u539f\u7406<\/strong><\/h6>\n\n\n\n<p class=\"has-text-color has-vivid-red-color\"><strong>\u4ece\u6734\u7d20\u8d1d\u53f6\u65af\u5206\u7c7b\u7684\u539f\u7406\u6765\u770b\uff0c\u5bf9\u4e8e\u4e00\u4e2a\u672a\u77e5\u7c7b\u522b\u7684\u6837\u672cX\uff0c\u53ef\u4ee5\u5148\u5206\u522b\u8ba1\u7b97\u51faX\u5c5e\u4e8e\u6bcf\u4e00\u4e2a\u7c7b\u522b\u7684\u6982\u7387\uff0c\u9009\u62e9\u5176\u4e2d\u6982\u7387\u6700\u5927\u7684\u7c7b\u522b\u4f5c\u4e3a\u5176\u5206\u7c7b\u3002<\/strong><\/p>\n\n\n\n<p>\u8fd8\u662f\u4e0a\u9762\u7684\u7897\u4e2d\u7403\u7684\u4f8b\u5b50\uff0c\u53ef\u80fd\u4e0d\u662f\u5f88\u6070\u5f53\uff0c\u4f46\u53ef\u4ee5\u5e2e\u52a9\u7406\u89e3\u3002\u6211\u4eec\u7ed9\u6bcf\u6b21\u62ff\u7403\u8fdb\u884c\u5206\u7c7b\uff0c\u7897A\u548c\u7897B\u662f\u4e24\u79cd\u5206\u7c7b\uff0c\u6bcf\u6b21\u62ff\u5230\u7403\u7684\u989c\u8272\u5c31\u662f\u6211\u4eec\u7684\u7279\u5f81\uff0c\u5047\u5982\u62ff\u5230\u4e86\u767d\u8272\u7403\uff0c\u6839\u636e\u6211\u4eec\u521a\u624d\u7684\u8ba1\u7b97\u7ed3\u679c\uff0c\u6765\u81ea\u7897A\u7684\u6982\u7387\u662f60%\u5927\u4e8e\u7897B\u662f40%\uff0c\u90a3\u4e48\u5982\u679c\u6211\u4eec\u5bf9\u8fd9\u6b21\u884c\u4e3a\u8fdb\u884c\u5206\u7c7b\uff0c\u8fd9\u6b21\u62ff\u7403\u52a8\u4f5c\u6211\u4eec\u5206\u7c7b\u4e3a\u7897A\u3002\u8fd9\u4e2a\u4e0d\u6070\u5f53\u7684\u4f8b\u5b50\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u7406\u89e3\u6734\u7d20\u8d1d\u53f6\u65af\u7b97\u6cd5\u3002<\/p>\n\n\n\n<h6 class=\"wp-block-heading\"><strong>3\u3001\u6734\u7d20\u8d1d\u53f6\u65af\u5206\u7c7b\u7684\u4f18\u7f3a\u70b9<\/strong><\/h6>\n\n\n\n<p><strong>\u4f18\u70b9\uff1a<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\"><li><strong>\u6734\u7d20\u8d1d\u53f6\u65af\u6a21\u578b\u53d1\u6e90\u4e8e\u53e4\u5178\u6570\u5b66\u7406\u8bba\uff0c\u6709\u7a33\u5b9a\u7684\u5206\u7c7b\u6548\u7387\u3002<\/strong><\/li><li>\u5bf9\u5c0f\u89c4\u6a21\u7684\u6570\u636e\u8868\u73b0\u5f88\u597d\uff0c\u80fd\u591f\u5904\u7406\u591a\u5206\u7c7b\u4efb\u52a1\uff0c\u9002\u5408\u589e\u91cf\u5f0f\u8bad\u7ec3\uff0c\u5c24\u5176\u662f\u6570\u636e\u91cf\u8d85\u51fa\u5185\u5b58\u65f6\uff0c\u6211\u4eec\u53ef\u4ee5\u4e00\u6279\u6279\u7684\u53bb\u589e\u91cf\u8bad\u7ec3\u3002<\/li><li><strong>\u5bf9\u7f3a\u5931\u6570\u636e\u4e0d\u592a\u654f\u611f\uff0c\u7b97\u6cd5\u4e5f\u6bd4\u8f83\u7b80\u5355\uff0c\u5e38\u7528\u4e8e\u6587\u672c\u5206\u7c7b\uff0c\u6b3a\u8bc8\u68c0\u6d4b\u3002<\/strong><\/li><\/ol>\n\n\n\n<p><strong>\u7f3a\u70b9\uff1a<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\"><li><strong>\u7406\u8bba\u4e0a\uff0c\u6734\u7d20\u8d1d\u53f6\u65af\u6a21\u578b\u4e0e\u5176\u4ed6\u5206\u7c7b\u65b9\u6cd5\u76f8\u6bd4\u5177\u6709\u6700\u5c0f\u7684\u8bef\u5dee\u7387\u3002\u4f46\u662f\u5b9e\u9645\u4e0a\u5e76\u975e\u603b\u662f\u5982\u6b64\uff0c\u8fd9\u662f\u56e0\u4e3a\u6734\u7d20\u8d1d\u53f6\u65af\u6a21\u578b\u5047\u8bbe\u5c5e\u6027\u4e4b\u95f4\u76f8\u4e92\u72ec\u7acb\uff0c\u8fd9\u4e2a\u5047\u8bbe\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\u5f80\u5f80\u662f\u4e0d\u6210\u7acb\u7684<\/strong>\uff0c\u5728\u5c5e\u6027\u4e2a\u6570\u6bd4\u8f83\u591a\u6216\u8005\u5c5e\u6027\u4e4b\u95f4\u76f8\u5173\u6027\u8f83\u5927\u65f6\uff0c\u5206\u7c7b\u6548\u679c\u4e0d\u597d\u3002<strong>\u800c\u5728\u5c5e\u6027\u76f8\u5173\u6027\u8f83\u5c0f\u65f6\uff0c\u6734\u7d20\u8d1d\u53f6\u65af\u6027\u80fd\u6700\u4e3a\u826f\u597d\u3002<\/strong>\u5bf9\u4e8e\u8fd9\u4e00\u70b9\uff0c\u6709\u534a\u6734\u7d20\u8d1d\u53f6\u65af\u4e4b\u7c7b\u7684\u7b97\u6cd5\u901a\u8fc7\u8003\u8651\u90e8\u5206\u5173\u8054\u6027\u9002\u5ea6\u6539\u8fdb\u3002<\/li><li><strong>\u9700\u8981\u77e5\u9053\u5148\u9a8c\u6982\u7387<\/strong>\uff0c\u4e14\u5148\u9a8c\u6982\u7387\u5f88\u591a\u65f6\u5019\u53d6\u51b3\u4e8e\u5047\u8bbe\uff0c\u5047\u8bbe\u7684\u6a21\u578b\u53ef\u4ee5\u6709\u5f88\u591a\u79cd\uff0c\u56e0\u6b64<strong>\u5728\u67d0\u4e9b\u65f6\u5019\u4f1a\u7531\u4e8e\u5047\u8bbe\u7684\u5148\u9a8c\u6a21\u578b\u7684\u539f\u56e0\u5bfc\u81f4\u9884\u6d4b\u6548\u679c\u4e0d\u4f73\u3002<\/strong><\/li><li>\u7531\u4e8e\u6211\u4eec\u662f\u901a\u8fc7\u5148\u9a8c\u548c\u6570\u636e\u6765\u51b3\u5b9a\u540e\u9a8c\u7684\u6982\u7387\u4ece\u800c\u51b3\u5b9a\u5206\u7c7b\uff0c\u6240\u4ee5\u5206\u7c7b\u51b3\u7b56<strong>\u5b58\u5728\u4e00\u5b9a\u7684\u9519\u8bef\u7387\u3002<\/strong><\/li><li>\u5bf9\u8f93\u5165\u6570\u636e\u7684\u8868\u8fbe\u5f62\u5f0f\u5f88\u654f\u611f\u3002<\/li><\/ol>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"id-\u6a21\u677f-\u53c2\u8003\u94fe\u63a5\uff1a\">\u53c2\u8003\u94fe\u63a5\uff1a<\/h5>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>\u6734\u7d20\u8d1d\u53f6\u65af\u7b97\u6cd5\u539f\u7406<\/strong><br><a href=\"https:\/\/mp.weixin.qq.com\/s\/PqZMpU7m5JAFIy0dNuZ7Dg\">https:\/\/mp.weixin.qq.com\/s\/PqZMpU7m5JAFIy0dNuZ7Dg<\/a><\/li><li><strong>\u7b97\u6cd5\u6742\u8d27\u94fa\u2014\u2014\u5206\u7c7b\u7b97\u6cd5\u4e4b\u6734\u7d20\u8d1d\u53f6\u65af\u5206\u7c7b(Naive Bayesian classification)<\/strong><br><a href=\"https:\/\/www.cnblogs.com\/leoo2sk\/archive\/2010\/09\/17\/naive-bayesian-classifier.html\">https:\/\/www.cnblogs.com\/leoo2sk\/archive\/2010\/09\/17\/naive-bayesian-classifier.html<\/a><\/li><li><strong>\u6211\u7406\u89e3\u7684\u6734\u7d20\u8d1d\u53f6\u65af\u6a21\u578b<\/strong><br><a href=\"https:\/\/www.cnblogs.com\/nxld\/p\/6607943.html\">https:\/\/www.cnblogs.com\/nxld\/p\/6607943.html<\/a><\/li><li><strong>\u6df1\u5165\u7406\u89e3\u6734\u7d20\u8d1d\u53f6\u65af\uff08Naive Bayes\uff09<\/strong><br><a href=\"https:\/\/blog.csdn.net\/li8zi8fa\/article\/details\/76176597\">https:\/\/blog.csdn.net\/li8zi8fa\/article\/details\/76176597<\/a><\/li><li><strong>\u6570\u5b66\u4e4b\u7f8e\u756a\u5916\u7bc7\uff1a\u5e73\u51e1\u800c\u53c8\u795e\u5947\u7684\u8d1d\u53f6\u65af\u65b9\u6cd5<\/strong><br><a href=\"http:\/\/mindhacks.cn\/2008\/09\/21\/the-magical-bayesian-method\/\">http:\/\/mindhacks.cn\/2008\/09\/21\/the-magical-bayesian-method\/<\/a><\/li><li><strong>\u8d1d\u53f6\u65af\u63a8\u65ad\u53ca\u5176\u4e92\u8054\u7f51\u5e94\u7528\uff08\u4e00\uff09\uff1a\u5b9a\u7406\u7b80\u4ecb<\/strong><br><a href=\"http:\/\/www.ruanyifeng.com\/blog\/2011\/08\/bayesian_inference_part_one.html\">http:\/\/www.ruanyifeng.com\/blog\/2011\/08\/bayesian_inference_part_one.html<\/a><\/li><li>\u7b2c4\u7ae0\u3000\u57fa\u4e8e\u6982\u7387\u8bba\u7684\u5206\u7c7b\u65b9\u6cd5\uff1a\u6734\u7d20\u8d1d\u53f6\u65af<br><a href=\"http:\/\/www.ituring.com.cn\/book\/miniarticle\/32007\">http:\/\/www.ituring.com.cn\/book\/miniarticle\/32007<\/a><\/li><li><a href=\"https:\/\/en.wikipedia.org\/wiki\/Naive_Bayes_classifier\">https:\/\/en.wikipedia.org\/wiki\/Naive_Bayes_classifier<\/a><\/li><li><a href=\"https:\/\/scikit-learn.org\/stable\/modules\/naive_bayes.html\">https:\/\/scikit-learn.org\/stable\/modules\/naive_bayes.html<\/a><\/li><li><a href=\"https:\/\/zh.wikipedia.org\/wiki\/%E6%9C%B4%E7%B4%A0%E8%B4%9D%E5%8F%B6%E6%96%AF%E5%88%86%E7%B1%BB%E5%99%A8\">\u6734\u7d20\u8d1d\u53f6\u65af\u5206\u7c7b\u5668<\/a><\/li><\/ul>\n\n\n\n<p>=END=<\/p>\n","protected":false},"excerpt":{"rendered":"<p>=Start= \u7f18\u7531\uff1a \u60f3\u901a\u8fc7\u5feb\u901f\u6574\u7406\u300a\u673a\u5668\u5b66\u4e60\u5b9e\u6218\u300b\u4e00\u4e66\u4e2d\u51fa\u73b0\u8fc7\u7684\u5404\u79cd\u673a\u5668\u5b66\u4e60\u7b97\u6cd5\u7684\u539f\u7406\u53ca\u5176\u4f18\u7f3a\u70b9\u548c\u9002\u7528\u8303\u56f4 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,1275],"tags":[1441,1459,1457,1458,9],"class_list":["post-4524","post","type-post","status-publish","format-standard","hentry","category-knowledgebase-2","category-1275","tag-machinelearning","tag-naivebayes","tag-1457","tag-1458","tag-9"],"views":4251,"_links":{"self":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/4524","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/comments?post=4524"}],"version-history":[{"count":1,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/4524\/revisions"}],"predecessor-version":[{"id":4535,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/4524\/revisions\/4535"}],"wp:attachment":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/media?parent=4524"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/categories?post=4524"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/tags?post=4524"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}