这篇博客很全面html
http://www.cnblogs.com/cdeng/p/3471527.htmlweb
针对预测值和真实值之间的关系,咱们能够将样本分为四个部分,分别是:算法
真正例(True Positive,TP):预测值和真实值都为1post
假正例(False Positive,FP):预测值为1,真实值为0google
真负例(True Negative,TN):预测值与真实值都为0url
假负例(False Negative,FN):预测值为0,真实值为1spa
咱们将这四种值用矩阵表示(图片引自《machine learning:A Probabilistic Perspective》):.net
上面的矩阵就是混淆矩阵。翻译
经过混淆矩阵,咱们能够获得真正例率(True Positive Rate , TPR):3d
咱们还能够获得假正例率(False Positive Rate , FPR):
能够看到,TPR也就是咱们所说的召回率,那么只要给定一个决策边界阈值,咱们能够获得一个对应的TPR和FPR值,然而,咱们不从这个思路来简单的获得TPR和FPR,而是反过来获得对应的
,咱们检测大量的阈值
,从而能够获得一个TPR-FPR的相关图,以下图所示(图片引自《machine learning:A Probabilistic Perspective》):
图中的红色曲线和蓝色曲线分别表示了两个不一样的分类器的TPR-FPR曲线,曲线上的任意一点都对应了一个值。该曲线就是ROC曲线(receiver operating characteristic curve)。该曲线具备如下特征:
从图中能够看出,红色曲线所表明的分类器效果好于蓝色曲线所表示的分类器。
参考:
1.《machine learning:A Probabilistic Perspective》
2.wiki
这篇博客只给了算法,未给出理由
http://blog.csdn.net/hanlin_tan/article/details/39183843
最近在作视频中目标检测,看到论文中有一项指标叫EER(Equal Error Rate),因而我也想算一算,结果google、baidu了半天,各类百科里没有一个像样的定义,更别提如何计算了。最后在一个matlab论坛里找到了正解:
“the Equal Error Rate (EER) is the point on the ROC curve that corresponds to have an equal probability of miss-classifying a positive or negative sample. This point is obtained by intersecting the ROC curve with a diagonal of the unit square. ”
翻译过来就是:EER是(一个分类器的)ROC曲线(接受者操做特性曲线)中错分正负样本几率相等的点(所对应的错分几率值)。这个点就是ROC曲线与ROC空间中对角线([0,1]-[1,0]连线)的交点(以下图所示)。
因此下图表示的分类器的EER应该是蓝色虚线和红色ROC曲线的交点对应的横坐标值,在0.17左右。
(关于什么是ROC曲线,请你们点连接看维基百科吧。)
http://blog.csdn.net/lcmssd/article/details/30803517
ERR 是 Bayesian决策中最佳阈值对应的错误率,此时False acceptance 和 False rejection是相等的,
http://www.webopedia.com/TERM/E/equal_error_rate.html
Abbreviated as EER. A biometric security system predetermines the threshold values for its false acceptance rate and its false rejection rate, and when the rates are equal, the common value is referred to as the equal error rate. The value indicates that the proportion of false acceptances is equal to the proportion of false rejections. The lower the equal error rate value, the higher the accuracy of the biometric system.