How to use this calculator
Evaluate ranking discrimination directly from labeled binary prediction scores.
- Enter Prediction scores, True binary labels (0 or 1). Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
ROC AUC from binary scores explained
Inputs, symbols, and units
s— Prediction scores- Prediction scores. Use comma-separated values in the stated order.
y— True binary labels (0 or 1)- True binary labels (0 or 1). Use comma-separated values in the stated order.
Formula and method
Positive-negative pair concordance with half credit for ties
Symbols use the input definitions below. At least one positive and one negative item are required; higher scores must indicate the positive class..
A worked scenario
Prediction scores = 0.1, 0.4, 0.35, 0.8; True binary labels (0 or 1) = 0, 0, 1, 1.
- ROC area under curve: 0.75
An AUC of 0.75 means a randomly chosen positive is ranked above a randomly chosen negative in 75% of pairs, counting ties as half.
Assumptions and edge cases
At least one positive and one negative item are required; higher scores must indicate the positive class.
Frequently asked questions
Do scores have to be probabilities?
No, only their ordering matters.
How are tied scores handled?
Positive-negative ties receive half credit.
Does AUC measure calibration?
No.
How do I use the ROC AUC from binary scores calculator?
Enter Prediction scores, True binary labels (0 or 1). Match the units shown beside each field and review the result together with the assumptions below.
What is a worked example of ROC AUC from binary scores?
Prediction scores = 0.1, 0.4, 0.35, 0.8; True binary labels (0 or 1) = 0, 0, 1, 1. ROC area under curve: 0.75 An AUC of 0.75 means a randomly chosen positive is ranked above a randomly chosen negative in 75% of pairs, counting ties as half.
Read our calculation methodology.