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.
Edit: since you apparently do have scores and actual outcomes, you can calculate it. One tool that can do the job would be the pROC package in R. It contains an AUC function that takes as arguments the predicted scores and actual outcomes. Have a look at its documentation http://cran.r-project.org/web/packages/pROC/index.html
-- INITIAL ANSWER --
There is no such tool, because you lack necessary information. You need to have a score for each prediction as well as its true outcome. Without that kind of information, it is impossible to calculate AUC.
pip install CROC
. It will provide you with thecroc-curve
command. Trycroc-curve --help
to see how to use it. There is a scientific paper about it as well. $\endgroup$