precision · shipping · also positive predictive value, PPV

Precision

Precision is the fraction of positive predictions that match observed positive outcomes at a specified decision threshold.

Related Observatory article: Read on hesela.com

For binary failure prediction, precision = TP / (TP + FP), where TP counts correct positive predictions and FP counts false positives. Its denominator is positive predictions in the stated counting unit, not healthy observations or necessarily emitted notifications. It is undefined when no positives are predicted. One widely used library returns 0 with a warning in that case by default, and can instead return 1 or a missing value that is excluded from averages. [1]

Micro averaging pools true and false positives across labels before dividing, while macro averaging takes the unweighted mean of per-label precision. [1] Precision combines both columns of the confusion matrix, so it moves with class skew. [5] A different failure prevalence can change precision even when recall and false positive rate stay fixed, and the precision-recall baseline is P / (P + N). [2]

At 0.1% prevalence, a rule with 90% recall and 0.5% FPR on 100,000 drive-days flags 90 true and about 500 false records, a precision near 15%. Specify the failure label, prediction horizon and counting unit, because one device alerted on several records is counted several times unless counts are first aggregated per device.

Relations

related
Recall, False positive rate, Class prevalence, Average precision, S.M.A.R.T., F1 score, Temporal validation, Prediction cadence, Expected calibration error

Advantages

  • Precision needs no count of true negatives, so it stays defined when the healthy population is hard to enumerate. [1]

Limitations

  • Precision alone ignores missed failures, so a stricter threshold can raise it while recall falls. [1]
  • Values from samples with different prevalence are not comparable without restating the class ratio. [5, 2]

Citations

  1. scikit-learn: precision_score; binary precision, zero_division options and averaging modes. (accessed 2026-10-23)
  2. Saito and Rehmsmeier (2015). The Precision-Recall Plot Is More Informative than the ROC Plot When Evaluating Binary Classifiers on Imbalanced Datasets. (accessed 2026-10-23)
  3. Fawcett. An introduction to ROC analysis. Pattern Recognition Letters 27 (2006) 861-874, section 4.2. DOI: 10.1016/j.patrec.2005.10.010. (accessed 2026-10-23)

Further reading

  1. Hesela: disk failure prediction, metric denominators and a synthetic alert-count example. (accessed 2026-10-12)
  2. Hesela: repeated decisions versus distinct-drive alert counts; synthetic counting example. (accessed 2026-10-16)
Sources & caveats
  • sklearn-precision re-read 2026-10-23 for tp / (tp + fp), the zero_division default and options, and micro and macro averaging.
  • saito2015 re-read 2026-10-23 for prevalence effects and the P / (P + N) baseline.
  • fawcett2006 read 2026-10-23, section 4.2, for the sensitivity of mixed-column metrics to class skew.
  • The 0.1% prevalence example is arithmetic from the stated rates, not a reported result.
  • The expected-calibration-error entry links here because calibration error checks predicted probabilities, while precision checks the outcomes behind one thresholded decision.
  • Companion analyses on disk failure prediction are listed but not used in prose.

JSON: /data/terms/precision.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. Precision. Hesela. 2026-10-23. https://hesela.dev/terms/precision/