The Receiver Operating Characteristic (ROC) Curve Offers Us A Visual
The Receiver Operating Characteristic (ROC) Curve Offers Us A Visual
offers us a visual
approach to examine the performance of our trained classifier. It is a curve
that plots the true positive rate (TPR)of a classifier against its false positive
rate (FPR). As highlighted in the earlier section, the TPR is also known as
recall. On another hand, the FPR is the ratio of negative instances that are
wrongly predicted as positive.
There is a tradeoff between the TPR and FPR — the higher the TPR, the
more FPR will be produced by the classifier. The diagonal dotted line in the
middle represents the ROC curve which is a random classifier.
The ROC curve of a good classifier should stay as far away from the
diagonal line as possible by heading towards the top left corner. Based on
this rationale, we can measure and compare our classifiers’ performance by
calculating the area under the curve (AUC) which will result in a score
called AUROC (Area Under the Receiver Operating Characteristics). A
perfect AUROC should have a score of 1 whereas a random classifier will
have a score of 0.5.