{
  "name": "Binary Classification and Diagnostic Metric Architecture Benchmark",
  "description": "Comparative specification benchmark mapping 8 foundational binary classification and diagnostic performance metrics across mathematical formulations, confusion matrix quadrant dependencies, prevalence invariance properties, and primary disciplinary applications. Compiled from NIST TREC standards, FDA diagnostic guidance, and peer-reviewed biostatistical literature.",
  "page": "https://casrai.org/compare/precision-and-recall-vs-sensitivity-and-specificity",
  "publisher": "CASRAI",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "dateModified": "2026-11-24T15:02:53Z",
  "temporalCoverage": "2007/2026",
  "spatialCoverage": "Global",
  "columns": [
    {
      "name": "Metric Name",
      "unit": "",
      "description": "Standard metric terminology across machine learning and epidemiology"
    },
    {
      "name": "Mathematical Formula",
      "unit": "",
      "description": "Formulation expressed in confusion matrix terms (TP, FP, TN, FN)"
    },
    {
      "name": "Matrix Cells Used",
      "unit": "",
      "description": "Specific 2x2 contingency table quadrants included in the calculation"
    },
    {
      "name": "Prevalence Invariant",
      "unit": "",
      "description": "Whether metric value remains constant under changing population prevalence"
    },
    {
      "name": "True Negative Dependent",
      "unit": "",
      "description": "Whether the metric calculation requires or is influenced by True Negatives"
    },
    {
      "name": "Primary Discipline",
      "unit": "",
      "description": "Core scientific or technical field where the metric serves as standard"
    }
  ],
  "rows": [
    {
      "Metric Name": "Recall (Sensitivity / True Positive Rate)",
      "Mathematical Formula": "TP / (TP + FN)",
      "Matrix Cells Used": "TP, FN",
      "Prevalence Invariant": "Yes",
      "True Negative Dependent": "No",
      "Primary Discipline": "Information Retrieval & Biostatistics"
    },
    {
      "Metric Name": "Precision (Positive Predictive Value)",
      "Mathematical Formula": "TP / (TP + FP)",
      "Matrix Cells Used": "TP, FP",
      "Prevalence Invariant": "No",
      "True Negative Dependent": "No",
      "Primary Discipline": "Machine Learning & Diagnostic Medicine"
    },
    {
      "Metric Name": "Specificity (True Negative Rate)",
      "Mathematical Formula": "TN / (TN + FP)",
      "Matrix Cells Used": "TN, FP",
      "Prevalence Invariant": "Yes",
      "True Negative Dependent": "Yes",
      "Primary Discipline": "Clinical Epidemiology & Diagnostic Trials"
    },
    {
      "Metric Name": "False Positive Rate (Fall-Out)",
      "Mathematical Formula": "FP / (TN + FP)",
      "Matrix Cells Used": "TN, FP",
      "Prevalence Invariant": "Yes",
      "True Negative Dependent": "Yes",
      "Primary Discipline": "Signal Detection Theory & ROC Analysis"
    },
    {
      "Metric Name": "Negative Predictive Value (NPV)",
      "Mathematical Formula": "TN / (TN + FN)",
      "Matrix Cells Used": "TN, FN",
      "Prevalence Invariant": "No",
      "True Negative Dependent": "Yes",
      "Primary Discipline": "Clinical Screening & Medical Prognosis"
    },
    {
      "Metric Name": "Overall Accuracy",
      "Mathematical Formula": "(TP + TN) / (TP + FP + TN + FN)",
      "Matrix Cells Used": "TP, FP, TN, FN",
      "Prevalence Invariant": "No",
      "True Negative Dependent": "Yes",
      "Primary Discipline": "General Classification & Quality Control"
    },
    {
      "Metric Name": "F1-Score (Harmonic Mean)",
      "Mathematical Formula": "2 * TP / (2 * TP + FP + FN)",
      "Matrix Cells Used": "TP, FP, FN",
      "Prevalence Invariant": "No",
      "True Negative Dependent": "No",
      "Primary Discipline": "Natural Language Processing & ML"
    },
    {
      "Metric Name": "Balanced Accuracy",
      "Mathematical Formula": "((TP / (TP + FN)) + (TN / (TN + FP))) / 2",
      "Matrix Cells Used": "TP, FP, TN, FN",
      "Prevalence Invariant": "Yes",
      "True Negative Dependent": "Yes",
      "Primary Discipline": "Imbalanced Machine Learning & Clinical AI"
    }
  ],
  "sources": [
    {
      "title": "Statistical Guidance on Reporting Results from Studies Evaluating Diagnostic Tests - FDA CDRH",
      "url": "https://www.fda.gov/regulatory-information/search-fda-guidance-documents/statistical-guidance-reporting-results-studies-evaluating-diagnostic-tests-guidance-industry-and-fda",
      "accessed": "2026-11-24"
    },
    {
      "title": "Understanding and using sensitivity, specificity and predictive values - PMC2636062",
      "url": "https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2636062/",
      "accessed": "2026-11-24"
    },
    {
      "title": "The Precision-Recall Plot Is More Informative than the ROC Plot - PLOS ONE",
      "url": "https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0118432",
      "accessed": "2026-11-24"
    },
    {
      "title": "Common Evaluation Measures - NIST TREC",
      "url": "https://trec.nist.gov/pubs/trec16/appendices/measures.pdf",
      "accessed": "2026-11-24"
    },
    {
      "title": "Metrics and scoring: quantifying the quality of predictions - Scikit-learn",
      "url": "https://scikit-learn.org/stable/modules/model_evaluation.html",
      "accessed": "2026-11-24"
    }
  ]
}