全文预览

数据挖掘期末考题(答案)

上传者:upcfxx |  格式:doc  |  页数:5 |  大小:0KB

文档介绍
, 风力=强), 决定目标类 Playbasketball 是 YES 或 NO 使用贝叶斯朴素算法的分类器进行计算。(18 分) No. Outlook Temperature Humidity Wind Playbasketball 1 Overcast Hot High Weak Yes 2 Sunny Hot High Weak No 3 Sunny Hot High Strong No 4 Overcast Hot Normal Weak Yes 5 Rain Mild High Weak Yes 6 Sunny Cool Normal Weak Yes 7 Rain Cool Normal Weak Yes 8 Rain Mild Normal Weak Yes 9 Rain Cool Normal Strong No 10 Overcast Cool Normal Strong Yes 11 Sunny Mild High Weak No 12 Overcast Mild High Strong Yes 表 3. P(Outlook=sunny|yes)= 1/7 P(Outlook=sunny|no)= 3/5 P(temperature=cool|yes)=3/7 P(temperature=cool|no)=1/5 P( Humidity=high |yes)=2/7 P( Humidity=high |No)=4/5 P( wind=strong |yes)=2/7 P( Humidity=strong |No)=3/5 P(yes)=7/12 P(no) = 5/12 P(X|YES)=1/7 × 3/7 × 2/7 × 2/7 × 7/12 = 0.00292 P(X|NO)=3/5 × 1/5 × 4/5 × 3/5 × 5/12 = 0.024

收藏

分享

举报
下载此文档