Professional Documents
Culture Documents
1. If the outcome from a prediction is p and the actual value is also p, then
it is called a true positive (TP);
3. Conversely, a true negative (TN) has occurred when both the prediction
outcome and the actual value are n,
4. and false negative (FN) is when the prediction outcome is n while the
actual value is p.
Multiple Classes
1
NC = total A + total B (6)
F PA F PB F PC
f prate = + + (7)
NA NB NC
and similarly we obtain the true positive rate as,
T PA T PB T PC
tprate = + + (8)
PA PB PC
From our experience till now, we know that a classier would have a xed
accuracy value. So then how did we generate all these values for the ROC?
2
Note that ROC has only a small relation with the accuracy, we are purely
looking at True Positives and False Positives. We can set up a threshold for
classier boundary between classes and vary it between +∞ and −∞.
Now if we were to look at the FP and TP values for each of these threshold
values, we would obtain multiple points.
Reading this
Informally, one point in ROC space is better than another if it is to the north-
west (tp rate is higher, fp rate is lower, or both) of the rst. Classiers appearing
on the left hand-side of an ROC graph, near the X axis, may be thought of as
conservative : they make positive classications only with strong evidence so
they make few false positive errors, but they often have low true positive rates as
well. Classiers on the upper right-hand side of an ROC graph may be thought
of as liberal : they make positive classications with weak evidence so they
classify nearly all positives correctly, but they often have high false positive
rates [1].
References