# Calculation of AUC value from ROC Curve

Is there any tool that can calculate the AUC value from a ROC curve if I already know how many samples are true positive, true negative, false positive, false negative out of 500 samples?

Specificity and sensitivity are also known to me.

• If you don't want to use R, this Python software is quite good too. To install it: pip install CROC. It will provide you with the croc-curve command. Try croc-curve --help to see how to use it. There is a scientific paper about it as well. – daruma Sep 21 '18 at 0:50