Storage glossary · JSON corpus · llms.txt · hesela.com

class-prevalence · shipping · also positive-class prevalence, class proportion

Class prevalence

Class prevalence is the proportion of observations belonging to a specified class in a defined population or evaluation sample.

Related Observatory article: Class prevalence on hesela.com

For a nonempty binary sample, positive prevalence = (TP + FN) / (TP + FP + FN + TN). Predicting every observation positive gives precision equal to that prevalence. [1] Sampling more failures changes the evaluation prevalence and may change precision; a balanced test sample does not directly establish deployment alert quality. [2] For storage, specify whether an observation is a drive or a drive-day window, and whether positive means failure within a stated horizon; this proportion is not AFR. [3]

Relations

related
precision, recall, false-positive-rate, average-precision, drive-day, afr

Citations

  1. scikit-learn: precision_recall_curve; the all-positive endpoint. (accessed 2026-10-12)
  2. Saito and Rehmsmeier. The Precision-Recall Plot Is More Informative than the ROC Plot When Evaluating Binary Classifiers on Imbalanced Datasets. PLOS ONE 10(3): e0118432 (2015). (accessed 2026-10-12)
  3. Hesela: disk failure prediction, metric denominators and a synthetic alert-count example. (accessed 2026-10-12)

JSON: /data/terms/class-prevalence.json