View License

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

» Watch video

Highlights from

5.0 | 1 rating Rate this file 23 Downloads (last 30 days) File Size: 48.8 KB File ID: #30424 Version: 1.2
image thumbnail




15 Feb 2011 (Updated )

Calculates Area under ROC curve (AUC) for a vector or for each column of a matrix.

| Watch this File

File Information

Function colAUC calculates Area under ROC curve (AUC) for a vector or for
each column of a matrix.

The main properties of this code:
* Ability to work with multi-dimensional data.
* Ability to work with multi-class datasets.
* Speed - this code was written to calculate AUC's for large number of
features, fast.
* Two different algorithms are provided one based on integrating ROC
curves and one based on Wilcoxon Rank Sum Test aka. Mann-Whitney U Test.
* Function can be used to plot ROC curves.

MATLAB release MATLAB 7.10 (R2010a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (5)
05 Feb 2014 Lee

Lee (view profile)

I'm sorry but it is not clear how to get multiclass auc if I have Y as the true label of 1...c classes and Yest as 1...c column vector with predictive score for each instance belong to certain class. The output auc is a c x c x(c-1)/2 combination in your case, take mean(auc) returns c auc values.

Comment only
26 Nov 2012 Jaroslaw Tuszynski

Reply to JR King: See new version

Comment only
22 Oct 2012 JR King

Thanks a lot, very useful.

I would remove the absolute computation: ( auc = 0.5 + abs(0.5-auc);) as it is indicative of the effect direction which is necessary for most statistical analyses.

Comment only
22 Oct 2012 JR King

31 Jan 2012 Daniel

Daniel (view profile)

For ND-array tiedranks you might like

Comment only
05 Jan 2012 1.1

small corrections

27 Nov 2012 1.2

added abs=false argument

Contact us