{
  "name": "Binary Classification Evaluation Metrics Comparison",
  "description": "Comparative analysis of binary classification evaluation metrics, detailing formula inputs, confusion matrix representation, sensitivity to class imbalance, and recommended application domains compiled from scikit-learn documentation, NIST SP 800-168, and peer-reviewed methodology literature.",
  "page": "https://casrai.org/guides/how-to-interpret-f1-score",
  "publisher": "CASRAI",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "dateModified": "2026-11-23T19:48:15Z",
  "temporalCoverage": "2026",
  "spatialCoverage": "Global",
  "columns": [
    {
      "name": "Metric Name",
      "unit": "name",
      "description": "Standard statistical name of the evaluation metric"
    },
    {
      "name": "Mathematical Basis",
      "unit": "formula",
      "description": "Core algebraic definition using confusion matrix counts or rate components"
    },
    {
      "name": "Matrix Inputs",
      "unit": "quadrants",
      "description": "Confusion matrix categories incorporated in calculation (TP, FP, TN, FN)"
    },
    {
      "name": "Includes TN",
      "unit": "boolean",
      "description": "Whether True Negatives are included in the score calculation"
    },
    {
      "name": "Output Range",
      "unit": "interval",
      "description": "Theoretical minimum and maximum numerical bounds of the metric"
    },
    {
      "name": "Imbalance Sensitivity",
      "unit": "behavior",
      "description": "Robustness or distortion when evaluated on skewed class distributions"
    },
    {
      "name": "Recommended Domain",
      "unit": "context",
      "description": "Primary application scenario where the metric provides optimal operational insight"
    }
  ],
  "rows": [
    {
      "Metric Name": "F1 Score",
      "Mathematical Basis": "2 * (Precision * Recall) / (Precision + Recall)",
      "Matrix Inputs": "TP, FP, FN",
      "Includes TN": "No",
      "Output Range": "0.0 to 1.0",
      "Imbalance Sensitivity": "Sensitive to positive-class balance; invariant to negative prevalence changes",
      "Recommended Domain": "Imbalanced datasets where the positive class is the primary target and true negatives have low operational utility"
    },
    {
      "Metric Name": "Accuracy",
      "Mathematical Basis": "(TP + TN) / (TP + FP + TN + FN)",
      "Matrix Inputs": "TP, FP, TN, FN",
      "Includes TN": "Yes",
      "Output Range": "0.0 to 1.0",
      "Imbalance Sensitivity": "Severely distorted; majority-class overoptimism",
      "Recommended Domain": "Balanced datasets with roughly equal class frequencies and symmetric costs for false predictions"
    },
    {
      "Metric Name": "Matthews Correlation Coefficient (MCC)",
      "Mathematical Basis": "(TP*TN - FP*FN) / sqrt((TP+FP)*(TP+FN)*(TN+FP)*(TN+FN))",
      "Matrix Inputs": "TP, FP, TN, FN",
      "Includes TN": "Yes",
      "Output Range": "-1.0 to +1.0",
      "Imbalance Sensitivity": "Robust; balanced evaluation across all four confusion matrix quadrants",
      "Recommended Domain": "Severely imbalanced binary classification where both positive and negative classifications carry critical significance"
    },
    {
      "Metric Name": "Balanced Accuracy",
      "Mathematical Basis": "(Sensitivity + Specificity) / 2",
      "Matrix Inputs": "TP, FP, TN, FN",
      "Includes TN": "Yes",
      "Output Range": "0.0 to 1.0",
      "Imbalance Sensitivity": "Adjusted; arithmetic mean of per-class recall",
      "Recommended Domain": "Multiclass or binary evaluation where equal weight must be assigned to each class regardless of sample frequencies"
    },
    {
      "Metric Name": "Precision (Positive Predictive Value)",
      "Mathematical Basis": "TP / (TP + FP)",
      "Matrix Inputs": "TP, FP",
      "Includes TN": "No",
      "Output Range": "0.0 to 1.0",
      "Imbalance Sensitivity": "Highly sensitive; drops as positive class prevalence declines",
      "Recommended Domain": "Applications where false alarms impose severe costs or human labor burdens (e.g. automated spam blocking, legal discovery)"
    },
    {
      "Metric Name": "Recall (Sensitivity)",
      "Mathematical Basis": "TP / (TP + FN)",
      "Matrix Inputs": "TP, FN",
      "Includes TN": "No",
      "Output Range": "0.0 to 1.0",
      "Imbalance Sensitivity": "Invariant to negative class size; sensitive to missed positive instances",
      "Recommended Domain": "Screening and diagnostic tasks where false negatives produce catastrophic failure (e.g. disease diagnosis, critical fault detection)"
    }
  ],
  "sources": [
    {
      "title": "f1_score — scikit-learn 1.9.1 documentation",
      "url": "https://scikit-learn.org/stable/modules/generated/sklearn.metrics.f1_score.html",
      "accessed": "2026-11-23"
    },
    {
      "title": "The advantages of the Matthews correlation coefficient (MCC) over F1 score and accuracy in binary classification evaluation | BMC Genomics | Springer Nature Link",
      "url": "https://bmcgenomics.biomedcentral.com/articles/10.1186/s12864-019-6413-7",
      "accessed": "2026-11-23"
    },
    {
      "title": "SP 800-168, Approximate Matching: Definition and Terminology | CSRC",
      "url": "https://csrc.nist.gov/pubs/sp/800/168/final",
      "accessed": "2026-11-23"
    }
  ]
}