An Example
(due to MIT’s open coursework slides)
f1
f2
f3
f4
y
R1(1,1) = 1/5: fraction of all positive
examples that have feature 1 = 1
R1(0,1) = 4/5: fraction of all positive
examples that have feature 1 = 0
0
1
1
0
1
0
0
1
1
1
1
0
1
0
1
0
0
1
1
1
R1(1,0) = 5/5: fraction of all negative
examples that have feature 1 = 1
R1(0,0) = 0/5: fraction of all negative
examples that have feature 1 = 0
0
0
0
0
1
1
0
0
1
0
1
1
0
1
0
1
0
0
0
0
Continue calculation of R2(1,0) …
1
1
0
1
0
1
0
1
1
0