AI Grounds
Open AI Grounds on a desktop
These interactive lessons need a larger screen. Please continue on a desktop or laptop computer.
AI Grounds
These interactive lessons need a larger screen. Please continue on a desktop or laptop computer.
Guided discovery
Move the cutoff. Keep scores and actual classes fixed.
A clinic flags patients for a follow-up test. Missing a true case hurts more than reviewing extra patients. Positive decision: Flag for follow-up. Actual positive class: Needs follow-up; actual negative: Routine. Each preset loads its default cutoff.
Predict positive when model score is at least the cutoff. Scores use the same percentage scale. Use arrow keys on the slider. Press Enter or leave the number field to apply an exact edit.
Circle = actual positive; square = actual negative. A–L identify examples in All 12 decisions. Shading marks predicted positive: score ≥ cutoff, including equality.
| Decision | Actual positive | Actual negative |
|---|---|---|
| Predicted positive Score ≥ 62% | 4True positive (TP) | 2False positive (FP) |
| Predicted negative Score < 62% | 2False negative (FN) | 4True negative (TN) |
Among predicted positives, the fraction actually positive.
66.67%
TP / (TP + FP) = 4 / 6
A stricter cutoff does not guarantee higher precision.
Among actual positives, the fraction predicted positive.
66.67%
TP / (TP + FN) = 4 / 6
On fixed data, raising the cutoff cannot increase recall.
Examples predicted positive at this cutoff.
6 / 12
TP + FP = 4 + 2
Scores and actual classes remain unchanged.
| ID / example | Score (%) | Actual | Predicted | Bucket |
|---|---|---|---|---|
| A · Ava | 94 | positive | positive | True positive (TP) |
| B · Milo | 89 | positive | positive | True positive (TP) |
| C · Rin | 84 | negative | positive | False positive (FP) |
| D · Noor | 77 | positive | positive | True positive (TP) |
| E · Iris | 71 | positive | positive | True positive (TP) |
| F · Jules | 66 | negative | positive | False positive (FP) |
| G · Theo | 58 | positive | negative | False negative (FN) |
| H · Lena | 51 | negative | negative | True negative (TN) |
| I · Kai | 46 | negative | negative | True negative (TN) |
| J · Mina | 39 | positive | negative | False negative (FN) |
| K · Owen | 33 | negative | negative | True negative (TN) |
| L · Zara | 27 | negative | negative | True negative (TN) |
F1: 66.67%. 2TP / (2TP + FP + FN) = 8 / 12. Zero denominator is undefined; otherwise a zero numerator gives zero, including no predicted positives when actual positives exist.
Accuracy: 66.67%. (TP + TN) / total = 8 / 12. It counts correct positives and negatives, without weighting their different mistake costs.
Metric percentages are rounded to two decimal places. This is a fixed illustrative batch. A score need not be a calibrated probability. Different mistake costs can justify different cutoffs; these examples do not identify an optimal real-world policy.
Medical Screen, cutoff 62%. TP 4, FP 2, FN 2, TN 4; precision 66.67%, recall 66.67%; predicted positive 6. Scores and actual classes fixed.