In: Statistics and Probability
Use Naïve Bayes to build the classification model for the first 10 instances using three different probability estimations listed in the following, and then make predictions for the last five instances. What is the accuracy of this model?
a. Using the original probability estimation;
b. Using Laplace correction;
c. Using m-estimation with m=1.
age |
sex |
sick |
pregnant |
tumor |
class |
TRAINING RECORDS |
|||||
19 |
F |
Serious |
Yes |
Yes |
positive |
49 |
M |
Light |
No |
No |
negative |
28 |
F |
heavy |
Yes |
Yes |
positive |
62 |
M |
Light |
No |
No |
negative |
35 |
F |
Serious |
Yes |
Yes |
negative |
78 |
F |
Light |
No |
Yes |
positive |
71 |
M |
heavy |
No |
No |
negative |
25 |
F |
Serious |
Yes |
Yes |
positive |
45 |
M |
Light |
No |
No |
negative |
31 |
F |
heavy |
Yes |
Yes |
negative |
TESTING RECORDS |
|||||
40 |
F |
Serious |
Yes |
Yes |
positive |
22 |
M |
Light |
No |
No |
negative |
50 |
F |
Serious |
No |
Yes |
positive |
31 |
F |
Light |
Yes |
No |
negative |
24 |
M |
heavy |
No |
Yes |
positive |