Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
150 views
in Technique[技术] by (71.8m points)

WEKA software analysis of confusion matrix

*Hi again i am in problem for comparing confusion matrix. Bellow i have provided the two confusion matrix.

  a    b      classified as
   349  58      a  tested_negative
   93   124     b  tested_positive

   a    b    classified as
   346  61    a  tested_negative
   90   127   b  tested_positive
i know that the diagonal of top-left to right but here both that value is same so how can i make decision which one best?*
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

It actually depends on your specific application. Say you want to minimize number of false positives (because it will cost you a lot to deal with consequences of any false alarm)

In this case, choose the first classifier, because its false positive rate is less then that of the second classifier:

58/(58+124) < 61/(61+127) 0.3186813 < 0.3244681

Take a look here http://en.wikipedia.org/wiki/Accuracy_and_precision

and here: http://en.wikipedia.org/wiki/Sensitivity_and_specificity

If you just want "the best classifier" - you have a problem, since both classifiers have the same accuracy:

a1 = (349+124)/(349+124+58+93) = 0.7580128 a2 = (346+127)/(346+127+61+90) = 0.7580128

So you need to analyze your domain or industry and decide whether you want to:

1) get as little false alarms as possible - then choose classifier with minimum false positive rate;

2) get as little missed cases as possible - then choose classifier with minimum false negative rate;

3) get more hits as possible - then choose classifier with maximum true positive rate;

4) get more correct rejections - then choose classifier with maximum true negative rate.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

56.9k users

...