Diagramm mit der Fehlalarmrate auf der x-Achse und der Trefferrate auf der y-Achse: eine gestrichelte Diagonale als Zufallsniveau mit AUROC 0,5 und darüber eine nach links oben gewölbte ROC-Kurve, deren blau eingefärbte Fläche darunter den AUROC-Wert darstellt.

AUROC

AUROC is a metric for how well a computer program can distinguish between two groups, such as sick and healthy patients. The value ranges between 0.5 (pure guessing) and 1.0 (perfect separation).

Many computer programs are meant to decide whether something belongs to a group or not. A typical question is: Is this email spam or not? Such programs usually don’t answer with yes or no, but output a score, for example 0.83. The higher the score, the more confident the program is. AUROC now measures whether these scores cleanly sort the two groups. The value answers exactly one question: If you randomly pick one genuine spam email and one genuine normal email, how often does the spam email get the higher score? At 0.5 the program is merely guessing, at 1.0 it is always right.

Why accuracy alone is misleading

The most obvious metric would be the proportion of correct decisions, i.e. accuracy. But this can be catastrophically deceptive. Suppose a rare disease affects one in a thousand people. A program that stubbornly says “healthy” for every person is correct 99.9 percent of the time. It is nonetheless completely useless, because it doesn’t find a single sick person.

AUROC doesn’t fall for this trick. A program that gives everyone the same score ends up at 0.5. Because then pure chance decides who comes out ahead in every comparison. The metric therefore doesn’t look at the number of hits, but at the ordering of the scores.

On top of that comes a practical advantage. Whether a program sorts an email as spam at 0.5 or only at 0.9 is a matter of settings. This boundary is called the threshold and can be shifted at any time. AUROC evaluates the program across all possible thresholds. That’s why the figure appears in almost every research paper that compares two models.

From the score to the area under the curve

The full name is “Area Under the Receiver Operating Characteristic Curve,” i.e. the area under the ROC curve. This curve is created as follows: you shift the threshold step by step from very strict to very lenient. For each setting, you record two values. First, what proportion of the genuine cases was found. Second, what proportion of the harmless cases triggered a false alarm.

Plotting these pairs on a chart produces a curve from the bottom left to the top right corner. A good program bulges far toward the top left: many hits with few false alarms. A purely random program yields a straight diagonal. The area under this curve is the AUROC value. For the diagonal, exactly half the square is filled, i.e. 0.5.

A value below 0.5 looks like a very bad model, but is usually just inverted. Anyone who reverses all decisions then ends up above 0.5. Another common misconception is reading AUROC as the “probability of being correct.” What is actually meant is always the probability of the correct ordering in a pairwise comparison.

AUROC in medical studies and model comparisons

The figure most commonly appears in medicine. When a company announces that its AI detects skin cancer with an AUROC of 0.94, this is exactly the metric being referred to. Banks also use it to test programs for assessing credit risk. In credit card fraud detection, it is likewise standard.

When reading such reports, some skepticism is warranted. A high value says nothing about whether the program performs equally well on new, unseen data. And with very rare events, AUROC often looks more flattering than everyday reality would suggest. Experts then additionally cite a related metric, AUPRC, which looks more strictly at the rare group.

For you as a reader, a rough classification is enough. Values around 0.7 are considered usable, from 0.8 good, from 0.9 very good. What matters is the comparison: a single number alone says little, it becomes interesting next to the best method so far.

Subscribe free. Unsubscribe the second it sucks.

High-signal news across AI, business, UX, and tech. Every morning.