CLASSIFICATION: Bayesian Classifiers: Naïve Bayes Bayesian Networks
CLASSIFICATION: Bayesian Classifiers: Naïve Bayes Bayesian Networks
Nave Bayes
Bayesian networks
P(cancer) = 0.01
0.99
cancer
0.01
0.99
0.01
No cancer
Test positive
Test negative
0.98
Test positive
0.02
Test negative
i1
Height(feet)
Weight(pounds)
Footsize(inches)
male
male
male
male
female
female
female
female
6
5.92 (5'11")
5.58 (5'7")
5.92 (5'11")
5
5.5(5'6")
5.42 (5'5")
5.75 (5'9")
180
190
170
165
100
150
130
150
12
11
12
10
6
8
7
9
x
1
p
exp
2
2
2
male
5.855
0.035033
176.25
122.92
11.25
0.91667
female
5.4175
0.097225
132.5
558.33
7.5
1.6667
sample
6
130
8
P(weight|male) =
6 5.855 2
1.5789
exp
2 0.035033
130 176.25 2
5.988110 6
exp
2 122.92
2 122.92
8 11.25 2
1.3112 10 3
exp
2 0.91667
2 0.91667
1
P(foot size|male) =
6.1984 10 9
0.22346
130 132.5 2
0.016789
exp
2 558.33
2 558.33
8 7.5 2
1.3112 10 3
exp
2 1.6667
2 1.6667
1
5.3778104
sprinkler T,F
Simplest case
Network defined by user