chickadee » statistics » roc-auc

roc-auc scores labelsprocedure

The area under the receiver operating characteristic curve: the probability that a random positive case scores higher than a random negative one, ties counting one half. It equals U / (n1 n2) of mann-whitney-u-test on the positive and negative scores. Returns #f when either class is empty.

> (roc-auc '(0.9 0.5 0.5 0.3) '(#t #t #f #f))
7/8