Receiver Operator Characteristics (ROCs).

Each binary classifier, Logistic regression, Neural Networks, and Support Vector Machines, and in general many other binary classifiers, provides a score for a data \(x\) calculated as \(h_{\Theta}(x)\), then the classification is based on whether this score is above or under a certain pre-defined threshold. We can calculate these scores for all positive data instances, and we get a distribution of these scores. Similarly, we can calculate the scores for all data instances belonging to the negative classes, and we get another distribution for the negative class. The performance of a binary classifier is actually depends on how well these distributions are separated from each other. The ROC analysis is used to characterize how well these two distribution can be separated.

roc1

Figure 1. Example of such score distribution obtained from Logistic Regression Model.

Score distributions:

roc2

Overlapping groups.

roc3

Indistinguishable groups

roc4

Calculating FPR, TPR

roc5

roc6

\[True\ Positive\ Rate = \frac{TP}{(TP + FN)}\]

\[False\ Positive\ Rate = \frac{FP}{(FP + TP)}\]

roc7

roc8

ROC curve:

roc9

Area Under the curve (AUC):

roc10

Examples for ROC curves.

Perfect classification:

roc11

Good classification:

roc12

Poor classification:

roc13

No classification:

roc14

No separation:

roc15

Local humps:

roc16

Notes:

  1. The ROC analysis in a non-parametric method, it does not require the distributions in any specific parametric form. It is very closely related to the Wilcoxson statistics.
  2. ROC analysis is not hindered by the class-imbalance problems.
  3. The AUC can be interpreted as the probability of that in randomly chosen two data the positive data has higher score than a negative data.


blog comments powered by Disqus