Diagnostic tests and the ROC curve: where to put the cutoff

Say you want to tell from one blood level whether someone has a disease. Sick people tend to have higher levels, but the two groups overlap. Where do you start calling a result "positive"? Drag the line yourself and decide. Every number and person on this page is made up, and the page explains a statistics idea.

Short answer. To sort test values into "disease" and "no disease", you have to pick a cutoff. Lower it and you catch more sick people (sensitivity goes up), but you also flag more healthy people by mistake (specificity goes down). Raise it and the opposite happens. Slide the cutoff from one end to the other and plot these two: that is the ROC curve. The area under it (AUC) says in one number how well the test separates the two groups.

Cutoff Distance between the groups Spread (standard deviation)
  • True positive (sick, at or above the cutoff):
  • False negative, a miss (sick, below the cutoff):
  • False positive, a false alarm (healthy, at or above):
  • True negative (healthy, below the cutoff):

Press or drag on the left picture to move the cutoff. The sliders and number boxes work too. The blue curve is the healthy group and the green curve is the sick group (made-up normal distributions: the healthy mean is 100, the sick mean is 100 + distance, and both have the same spread). Values at or above the cutoff are positive, below it negative. The orange dot on the right is the current cutoff.

Definitions

A test score at or above the cutoff c is called positive, and below it negative. True positives, false positives, false negatives and true negatives are the numbers of people in the four boxes of section 1. We define the following.

sensitivity
The share of sick people whose test is positive.

sensitivity=true positivestrue positives+false negatives

specificity
The share of healthy people whose test is negative.

specificity=true negativestrue negatives+false positives

false positive rate
The share of healthy people whose test is positive.

false positive rate=false positivesfalse positives+true negatives=1−specificity

ROC curve
Move the cutoff c from the highest value to the lowest. The ROC curve joins the points below, with the false positive rate across and the sensitivity up.

(1−specificity(c), sensitivity(c))

AUC (area under the ROC curve)
The area under the ROC curve. If X₁ and X₀ are the scores of one sick person and one healthy person picked at random, this area equals the probability below (a tie counts as half).

AUC=P(X1>X0)+12P(X1=X0)

positive predictive value (PPV)
The share of sick people among those whose test is positive.

PPV=true positivestrue positives+false positives

negative predictive value (NPV)
The share of healthy people among those whose test is negative.

NPV=true negativestrue negatives+false negatives

1. The cutoff: splitting a number into positive and negative

Many tests do not answer yes or no. They give a number. Sick people tend to score high and healthy people tend to score low, but the two groups overlap. To make a call, you draw one line: at or above it is positive, below it is negative. That line is the cutoff. Once you pick it, every person lands in one of four boxes.

At or above the cutoff (positive)Below the cutoff (negative)
SickTrue positiveFalse negative (a miss)
HealthyFalse positive (a false alarm)True negative

sensitivity = true positives ÷ number of sick people: the share of sick people the test catches. specificity = true negatives ÷ number of healthy people: the share of healthy people it leaves alone. The lab above uses areas under the curves instead of head counts. Take the area under the sick curve as 1. The part right of the line (green fill) is the sensitivity.

Lower the cutoff and you catch more sick people, so sensitivity rises. But more healthy people cross the line too, so specificity falls. Raise it and the opposite happens. Moving the cutoff alone can never raise both. For that you need a better test whose curves overlap less. The trade-off between type I and type II errors and power has the same shape: a false alarm is like a type I error and a miss is like a type II error.

Other numbers for reading test results come from the same four boxes. The Bayes' theorem page counts the predictive values in detail with 1000 people.

NameCounted amongFormulaStarting value (cutoff 115)
Sensitivitythe sicktrue positives ÷ sick84.1%
Specificitythe healthytrue negatives ÷ healthy84.1%
Positive predictive value (PPV)the positivestrue positives ÷ positivesdepends on prevalence; 37.1% at 10%
Negative predictive value (NPV)the negativestrue negatives ÷ negativesdepends on prevalence; 97.9% at 10%
Positive likelihood ratio (LR+)compares both groupssensitivity ÷ (1 − specificity)84.1% ÷ 15.9% ≈ 5.3
Negative likelihood ratio (LR−)compares both groups(1 − sensitivity) ÷ specificity15.9% ÷ 84.1% ≈ 0.19

Sensitivity and specificity are counted separately among the sick and among the healthy, so they do not depend on the prevalence (the share of sick people among those tested). The predictive values are counted among the positives and among the negatives, so they change a lot with the prevalence (section 8). A likelihood ratio says by how much one result multiplies the "disease : no disease" ratio. A positive result makes it 5.3 times bigger; a negative one makes it 0.19 times as big. LR+ ÷ LR− is called the diagnostic odds ratio, about 28.1 at the starting values (odds ratio and relative risk).

Try this. ① At the start (cutoff 115, distance 30, spread 15), sensitivity and specificity are both 84.1%. Misses and false alarms are both 15.9%. ② Lower the cutoff to 100: sensitivity 97.7%, specificity 50.0%. Raise it to 130: sensitivity 50.0%, specificity 97.7%. What you gain on one side you lose on the other.

2. The ROC curve: sliding the cutoff from end to end

One cutoff gives one point, (1 − specificity, sensitivity). Across is the share of healthy people flagged by mistake (the false positive rate). Up is the share of sick people caught. Slide the cutoff from the very top (everyone negative, point (0, 0)) to the very bottom (everyone positive, point (1, 1)) and join the points: that is the ROC curve.

ROC stands for receiver operating characteristic. The name comes from World War II, when people measured how well radar receivers picked real signals out of noise. From there it passed through signal detection theory into medical testing and machine learning.

When the two groups are normal distributions with the same spread, as in lab 1, one formula gives the AUC.

AUC=Φ(distancespread×2)

Φ is the chance that a standard normal value is below the number in brackets (normal distribution). Section 5 shows why. The AUC is the chance that one sick person's value is higher than one healthy person's value. The difference of the two values is normal with mean "distance" and standard deviation "spread × √2", and this formula is the chance that the difference is above 0. So the AUC depends only on distance ÷ spread.

Try this. ③ Drag the cutoff from 30 to 230. The orange dot travels along the curve from (1, 1) to (0, 0). The curve and its AUC of 0.921 stay put whatever the cutoff. ④ Set the distance to 0: the curves overlap, the ROC becomes the diagonal, and the AUC is 0.500. Push the distance to 60 and it reaches 0.998, hugging the top-left corner. At distance 30, raising the spread to 30 gives 0.760. Distance 60 with spread 30 gives 0.921, the same as the start. The same distance ÷ spread gives the same AUC.

3. Drawing the curve from data points

Real data is not a smooth curve. Each person has one score and a label: sick or healthy. This is how the ROC curve is drawn.

1. Line people up from the highest score down.
2. Put the cutoff above the top score. Everyone is negative; the point is (0, 0).
3. Lower the cutoff to the next score (that score and above count as positive).
   If the person you passed is sick, step up by 1 ÷ number sick;
   if healthy, step right by 1 ÷ number healthy.
4. If several people share a score, pass them together and step up and right at once (a slanted line).
5. At the bottom, everyone is positive; the point is (1, 1).

    20 made-up people in order of score, highest first. Filled buttons are positive right now, outlined ones are negative, and the orange bar marks the cutoff. Sick and healthy are also written as words. Press a button to switch that person's label and redraw the curve.

    Try this. ① Press "Next cutoff" twice. You pass the sick people with 152 and 141 and climb straight up to (0, 0.250). The third press passes a healthy person with 136 and moves one step right (0.083). ② The ninth press (cutoff 115) passes a sick and a healthy person with the same score, so the curve goes on a slant from (0.250, 0.625) to (0.333, 0.750). ③ Press "To the end": the curve reaches (1, 1) and the AUC is 0.797. ④ Press the first button, the sick person with 152, to make them healthy. The curve now starts by going right, and the AUC drops to 0.709. After "Restore the labels", make the sick person with 97 healthy instead: the AUC rises to 0.863, because a low-scoring sick person is gone. ⑤ Press "Flip every label". The curve flips over the diagonal and the AUC becomes 1 − 0.797 = 0.203.

    4. Work it by hand: six people

    Three sick people score 9, 7 and 4. Three healthy people score 8, 5 and 2. From the highest score down: 9 (sick), 8 (healthy), 7 (sick), 5 (healthy), 4 (sick), 2 (healthy). One step up is 1 ÷ 3 and one step right is also 1 ÷ 3.

    Cutoff (at or above is positive)Just passedSensitivity1 − specificityPoint
    above 9nobody00(0, 0)
    9sick → up1/30(0, 0.33)
    8healthy → right1/31/3(0.33, 0.33)
    7sick → up2/31/3(0.33, 0.67)
    5healthy → right2/32/3(0.67, 0.67)
    4sick → up12/3(0.67, 1)
    2healthy → right11(1, 1)
    1. Measure the area. The curve is made only of steps up and steps right. The area is the sum of the rectangles under the steps to the right. Each is 1/3 wide, and their heights are 1/3, 2/3 and 1. AUC = 1/3 × 1/3 + 1/3 × 2/3 + 1/3 × 1 = 1/9 + 2/9 + 3/9 = 6/9 ≈ 0.667.
    2. Count pairs. There are 3 × 3 = 9 sick-healthy pairs. Count the pairs where the sick person scores higher. The sick person with 9 beats 8, 5 and 2: that is 3. The one with 7 beats 5 and 2: 2. The one with 4 beats 2: 1. The total is 6, and 6 ÷ 9 ≈ 0.667.

    Here is the same arithmetic written as equations.

    AUC=13×13+13×23+13×1=1+2+39=69≈0.667

    AUC=3+2+13×3=69≈0.667

    Both ways give the same answer. That is no accident. The next section builds the reason in pictures.

    5. How the formula is built: AUC = the chance the sick person wins

    In section 4, the area under the curve and the pair count gave the same value. Using the 20 people from lab 2 (8 sick, 12 healthy), here is why, one step at a time.

      Press "Next" to go one step at a time. A line is added to the formula at the top (the orange one is new), the picture changes by that much, and the reason appears below. The picture uses the starting labels of lab 2. Changing labels in lab 2 does not change this picture.

      Written only as equations, the steps above look like this. Write n₁ for the number of sick people, n₀ for the number of healthy people, and X₁, X₀ for the scores of one sick and one healthy person picked at random.

      n1×n0=8×12=96

      U=(pairs where the sick person scores higher)+12×(tied pairs)=76+12×1=76.5

      Un1n0=76.596≈0.797

      AUC=Un1n0=P(X1>X0)+12P(X1=X0)

      1. Every pair: pairs = sick × healthy = 8 × 12 = 96. Put the sick people in rows and the healthy people in columns, and you get a grid of 96 cells. Why: the question is "pick one sick and one healthy person at random; what is the chance the sick person scores higher?" So we lay out every pair we could pick. Each pair has the same 1/96 chance of being picked.
      2. Color the wins: wins = (sick > healthy) + ½ × (tie) = 76 + ½ × 1 = 76.5. Color the 76 cells where the sick person scores higher. One cell has both people at 115, and we color half of it. Why: at equal scores the test cannot tell the two apart. If a coin decided, the sick person would win half the time, so a tie counts as ½.
      3. Share: share = 76.5 ÷ 96 ≈ 0.797. Why: every pair is equally likely, so the colored share is the chance that the sick person wins.
      4. Line up by score. Keep every cell's win or loss and only change the order of rows and columns. Healthy people go left to right from the highest score, sick people go bottom to top from the highest score. Now in every column (one healthy person) the wins gather at the bottom, because all the sick people who beat that person sit below. Moving right, the healthy scores drop, so the wins grow and the color becomes a staircase. Why: reordering keeps all 76.5 colored cells, so the share stays the same. Only the shape changes, and that shape is the key to the next step.
      5. Lay the ROC curve on top: AUC = area under the ROC curve = P(sick > healthy) + ½ × P(tie). One column of the grid is 1 ÷ 12 wide and one row is 1 ÷ 8 tall, so the whole grid is the ROC square with area 1. As the cutoff drops past one healthy person, the ROC curve moves one step right across that person's column, at a height (sensitivity) of "number of sick people scoring higher than this person ÷ 8". That is exactly the colored height of the column. In the tied cell, the curve runs along the diagonal and leaves half the cell below it, which is the half we colored. So the colored region is the region under the ROC curve, and its area is the chance of winning.

      The count we just made, "wins of the sick over the healthy across all pairs, ties as ½", is the Mann-Whitney U from the nonparametric tests page. So AUC = U ÷ (number sick × number healthy). The test that asks which group's scores run higher and the area that measures how well a test separates the groups come from the same number.

      Try this. ① Press "Next" once. The 76 winning cells and the half cell turn green, scattered across the grid. ② Press again: the bar on the right shows the colored share, 0.797. ③ At step four, rows and columns slide over and the color gathers into a staircase at the bottom right. ④ The black curve in the last step is the same curve you get in lab 2 with "To the end". Look at the tied 115 cell, where the curve cuts the cell along its diagonal.

      6. How to read the AUC, and its limits

      AUCMeaning
      1Every sick person scores above every healthy person. One cutoff separates them perfectly
      between 0.5 and 1Pick one sick and one healthy person: the sick one scores higher with this probability
      0.5Same as a coin flip. The test does not separate the groups
      below 0.5The direction is backwards. Read lower scores as sick and you get 1 − AUC

      Reading it these ways is wrong.

      7. The best cutoff depends on the situation

      The ROC curve shows every cutoff you could pick, but it does not tell you which one to use. Two common ways to choose:

      Cost of one miss Cost of one false alarm Prevalence (%)

      Drag the sliders or type numbers. The costs are made-up units; only "how many times worse" matters. The buttons change only the two costs and leave the prevalence alone. The groups are fixed at the starting values of lab 1 (healthy 100, sick 130, spread 15).

      The orange dashed line on the left joins points with the same expected cost. Its slope is (1 − prevalence) × cost of a false alarm ÷ (prevalence × cost of a miss), and where this line just touches the curve from outside is the lowest-cost point. When misses are expensive, the line lies flatter and touches higher and further right (a low cutoff, high sensitivity). When false alarms are expensive or the disease is rare, the line stands steeper and touches lower and further left (a high cutoff, high specificity). With equal costs and 50% prevalence, the slope is 1, and the touching point is the one with the largest Youden index.

      Screening tests and confirming tests. A screening test is a first pass over many people to find who needs a closer look. A miss may not get another chance, so the cutoff goes lower for higher sensitivity, and positives are checked again with another test. A confirming test comes before a firm diagnosis, so false alarms cost a lot; the cutoff goes higher for higher specificity. But screening often happens in groups where the disease is rare, and a low prevalence pushes the cutoff back up. Real cutoffs are hard to reduce to one cost number and are set from many kinds of evidence and guidelines. This lab is a toy that shows which way costs and prevalence push the cutoff.

      Try this. ① At the start (both costs 1, prevalence 50%), the two points sit together at cutoff 115. ② Press "A miss costs 10 times more": the lowest-cost cutoff drops to 97.7, with sensitivity 98.4% and specificity 43.9%. ③ "A false alarm costs 10 times more" is the mirror image: 132.3, with sensitivity 43.9% and specificity 98.4%. ④ Choose "Equal costs" and lower the prevalence to 10%: the cutoff rises to 131.5 (sensitivity 46.0%, specificity 98.2%), because with so many healthy people the false alarms pile up. ⑤ At 10% prevalence, press "A miss costs 10 times more": the cutoff comes back near the Youden spot, to 114.2 (sensitivity 85.4%, specificity 82.8%), as the two pushes cancel out. The Youden point stays at 115 the whole time.

      8. When the prevalence changes: predictive values and the precision-recall curve

      With the same test and the same cutoff, sensitivity, specificity and the ROC curve stay the same. But "the chance you really are sick when the result is positive" (the positive predictive value) changes a lot with how many sick people are in the tested group. The Bayes' theorem page counts it with people; as formulas:

      PPV=sensitivity×prevalencesensitivity×prevalence+(1−specificity)×(1−prevalence)

      NPV=specificity×(1−prevalence)specificity×(1−prevalence)+(1−sensitivity)×prevalence

      In machine learning, the positive predictive value is called precision and sensitivity is called recall (the same precision and recall as on the retrieval metrics page). Sliding the cutoff and plotting (recall, precision) gives the precision-recall curve.

      Prevalence (%) Cutoff

      Drag the sliders or type numbers. The groups are fixed at the starting values of lab 1, so the ROC curve and its AUC of 0.921 never change here.

      When the disease is very rare, the ROC can look good while precision is low. The ROC's horizontal axis divides false alarms by the number of healthy people. Test 1000 people at 1% prevalence and about 157 of the 990 healthy people are flagged, but across that is only 0.159. Precision is counted among the people called positive, so those roughly 157 false alarms stand right next to the 8.4 true positives. For problems where the target is rare (a rare disease, fraud, faulty parts), look at the precision-recall curve too.

      Try this. ① At the start (prevalence 10%, cutoff 115), PPV is 37.1% and NPV is 97.9%. ② Lower the prevalence to 1%: PPV 5.1%, NPV 99.8%, and the curve on the right sinks. Sensitivity and specificity stay at 84.1%. ③ At 1% prevalence, raise the cutoff to 145. Sensitivity falls to 15.9%, but PPV climbs to 54.3%. ④ Set the prevalence to 50% with cutoff 115: PPV and NPV are both 84.1%.

      9. Likelihood ratios: how much a test result changes the chance of disease

      The predictive values in section 8 need the prevalence. But in the clinic the question is often about one person: "From the symptoms and age, this person has about a 10% chance of the disease. If the test comes back positive, how high does that go?" The likelihood ratio answers that. The table in section 1 only gave its formula; here is how to use it.

      Using it takes three steps. You do not multiply the probability directly (10% × 4.5 = 45% is the wrong answer); you go through the odds.

      1. Turn the chance of disease before the test (the pre-test probability) into the chance it is so ÷ the chance it is not (the odds, the same odds as on the odds ratio and relative risk page). odds = probability ÷ (1 − probability).
      2. Multiply by the likelihood ratio for the result: LR+ if positive, LR− if negative.
      3. Turn it back into a probability: probability = odds ÷ (1 + odds). That is the chance of disease after the test (the post-test probability).

      Work it by hand. A test with sensitivity 0.9 and specificity 0.8 is given to a person whose pre-test probability is 10%.

      StepIf positiveIf negative
      Likelihood ratioLR+ = 0.9 ÷ 0.2 = 4.5LR− = 0.1 ÷ 0.8 = 0.125
      ① Pre-test odds0.1 ÷ 0.9 = 1/9 ≈ 0.1111/9 ≈ 0.111
      ② Multiply by the likelihood ratio1/9 × 4.5 = 0.51/9 × 0.125 = 1/72 ≈ 0.014
      ③ Back to a probability0.5 ÷ 1.5 ≈ 33.3%(1/72) ÷ (73/72) = 1/73 ≈ 1.4%

      Counting 1000 people gives the same answer. 90 of the 100 sick people and 180 of the 900 healthy people test positive, so 90 of the 270 positives are sick: 33.3%. Of the 730 negatives, 10 are sick: 1.4%. These three steps are Bayes' theorem rewritten with odds: post-test odds = pre-test odds × likelihood ratio.

      How it differs from the predictive values. A likelihood ratio is set by sensitivity and specificity alone, so it stays the same when the prevalence changes. The predictive values change with the prevalence (section 8). That is why, once you know a test's likelihood ratios, you can carry them to another hospital or another group and multiply them into the pre-test probability there. But sensitivity and specificity themselves depend on who was measured (section 11), and the likelihood ratios move with them.

      Likelihood ratioHow to read it
      1 (LR+ or LR−)The result leaves the probability where it was. It tells you nothing
      LR+ further above 1A positive result points more strongly toward the disease
      LR− closer to 0A negative result rules the disease out more strongly

      A common rule of thumb says an LR+ above 10 or an LR− below 0.1 changes the picture a lot. It is not a fixed line. How much the probability moves depends on the pre-test probability, so multiply it out, as in the lab below.

      Link to the ROC curve. Draw a straight line from the origin (0, 0) to a point (1 − specificity, sensitivity) on the ROC curve. Its slope is sensitivity ÷ (1 − specificity), which is the LR+ at that cutoff. The starting point of lab 1, (0.159, 0.841), has a slope of about 5.3. Move the cutoff and the point moves, so the LR+ changes too. A point on the diagonal has slope 1, so LR+ = 1.

      Pre-test probability (%) Sensitivity (%) Specificity (%)

      Drag the sliders or type numbers. In this lab you set sensitivity and specificity yourself, separately from lab 1. The starting values are the same as in the hand example above.

      Try this. ① At the start (pre-test 10%, sensitivity 90%, specificity 80%), LR+ is 4.5 and LR− is 0.125: 33.3% if positive and 1.4% if negative, the same as the hand example. ② Raise the pre-test probability to 50%: 81.8% if positive, 11.1% if negative. Lower it to 1%: even a positive result gives only 4.3%. The likelihood ratios stay at 4.5 and 0.125 the whole time. ③ At pre-test 10%, raise the specificity to 99%: LR+ becomes 90 and a positive result jumps to 90.9%. ④ Set sensitivity to 80% and specificity to 20%: LR+ and LR− are both 1, and all three bars have the same height.

      10. Properties worth knowing

      PropertyIn plain wordsWhere to see it
      Sensitivity and specificity trade offA lower cutoff raises sensitivity and lowers specificity. Raising both needs a better test (groups further apart)Lab 1
      The ROC and AUC ignore prevalenceThey are counted separately among the sick and among the healthy. Predictive values and precision do change with prevalenceLab 5
      The AUC only looks at orderChange the scores in an order-keeping way (double them, take a log) and it stays the same. So it does not tell you whether the scores are right as probabilities (calibration)The grid in section 5
      Flip the direction and you get 1 − AUCFlipping the labels or the score direction mirrors the curve over the diagonalThe flip button in lab 2
      Identical groups give 0.5Every cutoff gives sensitivity = 1 − specificity, so the curve is the diagonalDistance 0 in lab 1

      11. Things to watch out for

      Cutting a number into yes or no throws information away

      With a cutoff of 115, 116 and 180 are both just "positive", while 114 and 116 end up on opposite sides. The "how much" in the number disappears. In research, cutting a continuous number in two before analysis loses information and power (Altman, Royston 2006). You need a cutoff to make a call, but for analysis and reporting keep the number as it is and set the cutoff separately for the use at hand. Also, if you pick the "best" cutoff on some data and then measure sensitivity and specificity on the same data, the results look better than they really are, because the cutoff fits that data's chance quirks (overfitting). Check the chosen cutoff on new data.

      A common bias in test studies

      If a study compares only patients whose disease is already obvious with very healthy volunteers, the two distributions sit further apart than in real life, and sensitivity, specificity and AUC come out better than they really are. It is like raising the distance in lab 1. The people who actually get the test often have unclear symptoms or a similar but different illness, so the groups overlap more. A review of many diagnostic test studies reported that designs which gather a patient group and a control group separately tend to overstate test performance (Lijmer and others, 1999). That is why studies that enroll, one after another, the people who will really be tested are trusted more, and why an AUC measured in one group should not be carried over to another as is. For bias in general, see confounding and bias.

      Where it is used

      # scikit-learn: y_true is 1 = sick, 0 = healthy. Higher scores mean more likely sick
      from sklearn.metrics import roc_curve, roc_auc_score
      fpr, tpr, thresholds = roc_curve(y_true, scores)   # (1 − specificity, sensitivity) with score >= threshold as positive
      auc = roc_auc_score(y_true, scores)

      Common questions

      What AUC makes a good test?

      There is no fixed line. 0.5 is a coin flip and 1 is perfect. Use the AUC to compare tests measured on the same group of people, and also look at the sensitivity and specificity at the cutoff you will actually use. Even with a high AUC, the positive predictive value can be low when the prevalence is low.

      Does an AUC of 0.9 mean the test is right 90% of the time?

      No. It means that if you pick one sick person and one healthy person at random, the sick person has the higher score with probability 0.9. The share of correct calls only appears once you fix a cutoff and a prevalence.

      What does an AUC below 0.5 mean?

      The test is sorting people the wrong way round. If you read lower scores as more likely sick, the AUC becomes 1 minus the original AUC. Flipping the direction after looking at the data tends to make results look better than they are, so decide the direction in advance.

      How do you pick the best cutoff?

      It depends on which costs more, a miss or a false alarm, and on the prevalence in the group being tested. The point with the largest Youden index is the answer when both costs are equal and the prevalence is 50%. If you pick the cutoff on some data and measure performance on the same data, the result looks better than it really is.

      When do you look at the ROC curve and when at the precision-recall curve?

      The ROC curve shows how well the test itself separates the two groups, whatever the prevalence. The precision-recall curve shows how many of the positive calls are real, so it shows more clearly whether the test is useful when the thing you look for is very rare. You can look at both.

      Words

      Word used hereTextbook term
      cutoffcut-off value, threshold
      share of sick people caughtsensitivity, true positive rate (TPR), recall
      share of healthy people left alonespecificity, true negative rate
      1 − specificity, share flagged by mistakefalse positive rate (FPR)
      miss, false alarmfalse negative, false positive
      share of sick people among the positivespositive predictive value (PPV), precision
      share of healthy people among the negativesnegative predictive value (NPV)
      share of sick people in the tested groupprevalence
      how much one result multiplies the "disease : no disease" ratiolikelihood ratio (LR+, LR−). LR+ ÷ LR− is the diagnostic odds ratio
      chance of disease before the test, after the testpre-test probability (prior probability), post-test probability (posterior probability)
      ROC curvereceiver operating characteristic curve
      area under the curveAUC, AUROC. For risk scores, the c-statistic (concordance)
      chance the sick person winsconcordance probability. Mann-Whitney U ÷ (n₁ × n₂)
      sensitivity + specificity − 1Youden's J, Youden index
      two normal distributions with the same spreadbinormal model
      average cost per personexpected cost, expected loss
      first pass over many people, test before a firm diagnosisscreening test, confirmatory test
      (recall, precision) curveprecision-recall curve (PR curve)
      cutting a number in twodichotomization
      bias from who was measuredspectrum bias. Gathering patients and controls separately is a case-control design

      Sources

      ← Survival analysisSample size calculation →