ROC-AUC Calculator

ROC-AUC summarizes how well a scoring model separates positives from negatives across every threshold: the probability that a random positive example is scored above a random negative one. Paste one "score,label" pair per line (label 0 or 1) and get the AUC, plus the positive/negative counts and Gini coefficient. Tied scores are handled correctly.

One pair per line: model score, then 0 or 1 — e.g. "0.9, 1". The label must be 0 (negative) or 1 (positive).

Result

Enter your values and press Calculate — the result appears here.

Worked examples

Perfect separation

  • pairs = 0.9, 1 0.8, 1 0.7, 1 0.6, 0 0.5, 0

Result: AUC 1.00

One tied score

  • pairs = 0.8, 1 0.7, 1 0.7, 0 0.5, 0

Result: AUC 0.875 (tie at 0.7 counts half)

Random-ish ranking

  • pairs = 0.9, 1 0.6, 0 0.5, 1 0.4, 0

Result: AUC 0.75

Frequently asked questions

What does AUC mean intuitively?

AUC is the probability that a randomly chosen positive example is scored higher than a randomly chosen negative one. 1.0 means perfect separation, 0.5 means the model ranks no better than a coin flip, and 0 means it is perfectly inverted.

How are tied scores handled?

When a positive and a negative have the same score, the pair contributes 0.5 instead of 1.0. This matches the average-rank method used by statistical packages and keeps AUC within [0, 1].

What is Gini?

Gini = 2 × AUC − 1, a common rescaling in credit risk and marketing: 0 for a random model, 1 for a perfect one. It carries exactly the same information as AUC.

💬 Discuss on BestWordz Community

Join the conversation about Machine Learning, roc auc, auc calculator on the BestWordz Community forum.

Visit Forum →
Copied!