CalcWorldHub
Free online calculator · no signup

ROC AUC from binary scores calculator

Evaluate ranking discrimination directly from labeled binary prediction scores.

4,000 tools
ROC AUC from binary scores calculator — Prediction scores, True binary labels (0 or 1) and calculation method
ROC AUC from binary scores calculator: inputs and calculation method.

How to use this calculator

Evaluate ranking discrimination directly from labeled binary prediction scores.

  1. 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.
  2. Read the worked example below to check the expected input format and result.
  3. Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Calculation guide

ROC AUC from binary scores explained

ROC area under curve0.75
ROC area under curve: 0.75 in the worked scenario.

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.