Experiments

Intro ] [ discretizedtest1 ] [ discretizedtest2 ] [ normalized-discretizedtest1 ] [ normalized-discretizedtest2 ] [ normalizedtest1 ] [ normalizedtest2 ]

Up: Report ]

Naive Bayes Classifier

Class >50K: Prior probability = 0.24

age:  Discrete Estimator. Counts =  6 26 229 254 1195 2206 2630 848 456  (Total = 7850)
workclass:  Discrete Estimator. Counts =  4964 725 623 372 618 354 1 1  (Total = 7658)
fnlwgt:  Discrete Estimator. Counts =  7842  (Total = 7842)
education:  Discrete Estimator. Counts =  2222 1388 61 1676 424 266 362 28 41 34 960 7 63 307 17 1  (Total = 7857)
education-num:  Discrete Estimator. Counts =  245 1676 1388 627 2222 960 730  (Total = 7848)
marital-status:  Discrete Estimator. Counts =  6693 464 492 67 86 35 11  (Total = 7848)
occupation:  Discrete Estimator. Counts =  284 930 138 984 1969 1860 87 251 508 116 321 2 212 2  (Total = 7664)
relationship:  Discrete Estimator. Counts =  746 68 5919 857 38 219  (Total = 7847)
race:  Discrete Estimator. Counts =  7118 277 37 26 388  (Total = 7846)
sex:  Discrete Estimator. Counts =  1180 6663  (Total = 7843)
capital-gain:  Discrete Estimator. Counts =  6165 1 91 1 59 1 27 1 8 1 98 1 21 1 1380  (Total = 7856)
capital-loss:  Discrete Estimator. Counts =  7102 26 3 56 1 349 1 169 1 8 2 35 71 31 1  (Total = 7856)
hours-per-week:  Discrete Estimator. Counts =  388 352 3255 1070 2495 287  (Total = 7847)
native-country:  Discrete Estimator. Counts =  7172 8 31 13 40 45 1 41 25 9 17 21 26 19 2 62 26 13 11 6 34 5 6 13 3 3 5 21 5 3 4 4 3 4 4 7 10 3 3 7 1  (Total = 7736)


Class <=50K: Prior probability = 0.76

age:  Discrete Estimator. Counts =  3126 1618 3032 1428 4021 4347 3949 1630 1578  (Total = 24729)
workclass:  Discrete Estimator. Counts =  17734 1818 495 590 1477 946 15 8  (Total = 23083)
fnlwgt:  Discrete Estimator. Counts =  24721  (Total = 24721)
education:  Discrete Estimator. Counts =  3135 5905 1116 8827 154 803 1022 488 607 401 765 163 872 108 318 52  (Total = 24736)
education-num:  Discrete Estimator. Counts =  4010 8827 5905 1824 3135 765 261  (Total = 24727)
marital-status:  Discrete Estimator. Counts =  8285 3981 10193 960 909 385 14  (Total = 24727)
occupation:  Discrete Estimator. Counts =  646 3171 3159 2668 2099 2282 1285 1753 3264 880 1278 149 439 9  (Total = 23082)
relationship:  Discrete Estimator. Counts =  824 5002 7276 7450 945 3229  (Total = 24726)
race:  Discrete Estimator. Counts =  20700 764 276 247 2738  (Total = 24725)
sex:  Discrete Estimator. Counts =  9593 15129  (Total = 24722)
capital-gain:  Discrete Estimator. Counts =  23686 473 8 310 13 66 1 19 1 71 1 12 18 35 21  (Total = 24735)
capital-loss:  Discrete Estimator. Counts =  24097 1 347 2 40 14 20 1 112 1 31 46 1 14 8  (Total = 24735)
hours-per-week:  Discrete Estimator. Counts =  5197 1830 12000 2015 3147 537  (Total = 24726)
native-country:  Discrete Estimator. Counts =  22000 13 61 103 83 94 15 61 39 22 65 56 71 26 13 138 49 49 72 63 611 34 20 18 69 17 25 32 41 58 11 62 33 10 16 11 98 18 30 15 2  (Total = 24324)



=== Error on training data ===

Correctly Classified Instances       27346               83.9839 %
Incorrectly Classified Instances      5215               16.0161 %
Mean absolute error                      0.1751
Root mean squared error                  0.3406
Relative absolute error                 47.8946 %
Root relative squared error             79.6496 %
Total Number of Instances            32561     


=== Confusion Matrix ===

     a     b   <-- classified as
  6222  1619 |     a = >50K
  3596 21124 |     b = <=50K


=== Error on test data ===

Correctly Classified Instances       13720               84.27   %
Incorrectly Classified Instances      2561               15.73   %
Mean absolute error                      0.1745
Root mean squared error                  0.3402
Relative absolute error                 48.0408 %
Root relative squared error             80.0963 %
Total Number of Instances            16281     


=== Confusion Matrix ===

     a     b   <-- classified as
  3051   795 |     a = >50K
  1766 10669 |     b = <=50K

 

by: Keith A. Pray
Last Modified: July 4, 2004 8:59 AM
© 2004 - 1975 Keith A. Pray.
All rights reserved.