AUROC - Area under Receiver Operating Characteristic

版本 1.0.0.0 (3.1 KB) 作者: Stefan Schroedl
Compute AUROC from frequency weighted instances of predictions and ratio of positive instances
2.4K 次下载
更新时间 2008/4/7

查看许可证

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 http://matlabdatamining.blogspot.com/2007/06/roc-curves-and-auc.html, 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.

Example:
freq=100*rand(100,1);
act=(0.01:0.01:1)';
pred=min(max(act+rand(100,1),0),1);
auroc(pred,act,freq)

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

引用格式

Stefan Schroedl (2024). AUROC - Area under Receiver Operating Characteristic (https://www.mathworks.com/matlabcentral/fileexchange/19468-auroc-area-under-receiver-operating-characteristic), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2007a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 ROC - AUC 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0

resubmitting as zip file