File Exchange

image thumbnail

AUROC - Area under Receiver Operating Characteristic

version 1.0 (3.07 KB) by

Compute AUROC from frequency weighted instances of predictions and ratio of positive instances



View License

The Area under the Receiver Operating Characteristic is a common summary statistic for the goodness of a predictor in a binary classification task. It is equal to the probability that a predictor will rank a randomly chosen positive instance higher than a randomly chosen negative one.

I was inspired by, which also provides good background information and discussion. However, in that implementation, for each case a pair (prediction, binary target) has to be explicitly enumerated. For large data sets, however, it is often more practical to group by predicted value, and specify number of repetitions and actual positive rate.


We supply a .cpp source file that has to be compiled into a mex file, and a .m file with the help information.

Comments and Ratings (2)


Meedo (view profile)

the freq in the previous example is the score values that the SVM produced


Excuse me, I can't understand that what the freq is. Could you help me?

MATLAB Release
MATLAB 7.4 (R2007a)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Win prizes and improve your MATLAB skills

Play today