A score can retain exactly the same ROC AUC after every displayed number changes. That is possible because the full binary ROC area summarizes ordering across positive–negative pairs, whereas probability calibration asks how numerical predictions relate to observed event frequencies. A small invented inspection ledger separates those questions without reporting any real detector's performance. The labels and scores below are constructed solely to expose the arithmetic, including a tie that must not be silently broken.
State what a larger score means
There are three positive records, P1,P2,P3, scored 0.9,0.6,0.4, and three negative records, N1,N2,N3, scored 0.8,0.4,0.1. Positive means the declared event of interest in this toy model. A larger score expresses stronger positive ranking. For a threshold τ, predict positive whenever score≥τ. This convention determines the endpoint of each threshold block. Both classes are present, so the true-positive and false-positive denominators are nonzero.
For this article, empirical AUC is the trapezoidal area beneath the ROC curve obtained by adding equal-score records together. Equivalently, compare all nine positive–negative pairs: award 1 when the positive score is greater, 0 when smaller, and 1/2 when tied. This half-credit convention corresponds to averaging the order of a tied positive and negative, rather than pretending that an arbitrary row ordering supplies extra ranking information.
Count the nine pairs first
P1 at 0.9 outranks all three negatives, contributing 3. P2 at 0.6 outranks N2 and N3 but falls below N1, contributing 2. P3 at 0.4 outranks N3, ties N2, and falls below N1, contributing 1.5. The total is 6.5 out of 9, giving AUC=13/18, approximately 0.722222. Seven or eight correct classifications at some selected threshold is not the interpretation of this fraction: its denominator counts cross-class pairs.
Reversing the score direction exchanges wins and losses while preserving ties. Thus the AUC of the negated scores is 1-13/18=5/18. This check is useful because a metric implementation needs the positive label and score direction declared together. A high score for the negative class cannot be fed into the same interpretation without reversing its meaning.
Recover the area from thresholds
Starting above 0.9 gives (FPR,TPR)=(0,0). Including 0.9 produces (0,1/3). Including 0.8 gives (1/3,1/3); including 0.6 gives (1/3,2/3). At 0.4 both P3 and N2 enter together, producing (2/3,1). Finally 0.1 gives (1,1). Connecting these threshold-block endpoints by straight segments yields horizontal-width contributions 0,1/9,0,5/18,1/3. Their sum is 13/18, agreeing with pair counting.
The slanted segment across the 0.4 block accounts for the half-credit tie. It is an area convention between attainable threshold points. A deterministic threshold cannot select P3 while excluding N2 when both scores equal 0.4. Treating that segment as evidence that every intermediate confusion table is directly attainable would add a capability absent from the score rule.
Change the numbers while preserving every ordering
Square all six scores. Because squaring is strictly increasing on the declared interval [0,1], the positive scores become 0.81,0.36,0.16 and the negatives 0.64,0.16,0.01. Every strict pair ordering and the existing tie remain intact. The AUC therefore remains 13/18. The numerical threshold for a corresponding decision changes: the original condition score≥0.6 becomes squared score≥0.36.
Keeping a numerical threshold fixed would create a different comparison. At 0.6 on the original scale, P1,P2,N1 are positive predictions; at 0.6 on the squared scale, only P1,N1 are. The same ranking statistic can coexist with different decisions when the threshold is not transformed alongside the scores. This example needs no assumption that either scale contains calibrated probabilities.
Test a magnitude-sensitive score separately
For illustration only, treat each displayed value as a probability prediction and compute the mean squared error against labels 1 and 0. On the original six values, the squared errors sum to 0.01+0.16+0.36+0.64+0.16+0.01=1.34, giving 0.223333. On the squared values they sum to 1.5866, giving approximately 0.264433. Thus the magnitude-sensitive error changes while AUC does not. These two averages do not, from six contrived observations, establish a calibration curve or a population claim.
If a system's probabilities are calibrated in a population, changing them through an arbitrary increasing function generally changes their probability interpretation. AUC has no term that enforces that interpretation. Google introduces the threshold sweep and pair-ranking viewpoint; scikit-learn explicitly permits binary decision scores as well as probability estimates. The constructed transformations here explain why those inputs can support ranking evaluation without all being probability estimates.
Quantization can change the ranking statistic
Now replace every original score below 0.5 with 0 and every score at least 0.5 with 1. Positives become 1,1,0, and negatives 1,0,0. Each high positive receives half-credit against the high negative and full credit against both low negatives, contributing 2.5 apiece. The low positive receives two half-credit ties, contributing 1. The sum is 6, and AUC falls to 2/3. This transformation is nondecreasing but not strictly increasing: it merges formerly distinct scores into new ties.
All of these results concern the fixed six-record ledger. They do not choose an operational threshold, assign costs to missed events or false alarms, quantify sampling uncertainty, or establish performance on future production images. Keeping the raw score table, label convention, tie policy, threshold blocks, and pair count makes the limited conclusion reproducible: unchanged ordering preserves this full AUC, while unchanged AUC alone leaves many other evaluation questions open.
A second independent check uses the quantized ROC rather than its pairs. Above score 1 the point is (0,0). Including score 1 admits two positives and one negative, giving (1/3,2/3). Including score 0 admits the remainder, giving (1,1). The two trapezoids contribute 1/9 and 5/9, totaling 2/3. Relative to the original ledger, the positive at 0.9 loses part of its advantage against the negative at 0.8 when they merge. The positive at 0.6 similarly becomes tied with that negative, while lower-score pairs change in other directions. Only the aggregate pair ledger determines the final area; counting the number of distinct scores would not recover it.
Sources checked October 24, 2026:
https://developers.google.com/machine-learning/crash-course/classification/roc-and-auc
https://scikit-learn.org/stable/modules/generated/sklearn.metrics.roc_auc_score.html
Concept illustration: A robot arm above a parts bin with blue sensing light provides robotics context for this analytical model. The image does not depict the article's numerical example, a verified experiment, a product specification, or deployment evidence.