Performance metrics in machine learning: a scenario-based guide from the confusion matrix to calibration, regression and uncertainty

Mehmet Baygin, Sengul Dogan, Turker TuncerarXiv 2026

In the world of machine learning, we often treat metrics like Accuracy, F1-score, or ROC-AUC as objective "scores" of a model's quality. However, as any seasoned data scientist knows, a single number rarely tells the whole story. A new paper by Mehmet Baygin and colleagues, titled "Performance metrics in machine learning: a scenario-based guide from the confusion matrix to calibration, regression and uncertainty," serves as a vital reality check for how we evaluate and report model performance.

TL;DR

This paper is a methodological tutorial that uses 15 controlled, synthetic scenarios to demonstrate how the same set of predictions can yield wildly different performance numbers depending on class prevalence, decision thresholds, and software conventions. It provides a "prevalence-coded" metric map and a rigorous reporting checklist to help researchers move beyond misleading summaries toward transparent, goal-oriented evaluation.

What Problem Does This Paper Address?

Machine learning studies are often ranked by a few headline numbers. The problem? These numbers are not just properties of the model; they are heavily influenced by the test set's composition, the chosen decision threshold, and even the specific library (like scikit-learn) used to calculate them.

The authors highlight a "reproducibility gap": many papers report metrics without providing the necessary context (like class counts or thresholds) to allow others to verify or even understand the results. This leads to common pitfalls, such as the "accuracy paradox," where a model looks great on paper but fails miserably in practice because it simply ignores a rare but important minority class.

Methods

Rather than introducing a new metric, the authors provide a comprehensive framework for understanding existing ones. Their approach is built on three pillars:

  1. The Metric Map: They organized 22 confusion-matrix metrics into a "prevalence-coded" map. This distinguishes between metrics that are invariant to changes in class mix (like Sensitivity and Specificity) and those that are highly sensitive to it (like Precision and F1-score).
  2. Controlled Scenarios (S1–S15): The heart of the paper consists of 15 scenarios where the authors fix all inputs and change exactly one factor at a time—such as the prevalence of the positive class or the averaging rule for multi-class data.
  3. Verification Layer: To ensure total transparency, all results were recomputed using multiple independent libraries (scikit-learn, statsmodels, SciPy, and mlscorecheck).
Fig. 1. Structure of the scenario-based guide to performance metrics. (a) Metric map: the

Datasets

The authors intentionally avoided large, "black-box" public benchmarks. Instead, they released 11 locked input files (CSV format) generated with specific random seeds. These synthetic datasets are small enough for a reader to recompute every value manually or with a script, ensuring that the "mechanisms" being studied are isolated from the noise of real-world data.

Key Insights and Ideas

  • The Prevalence Trap: One of the most striking "aha moments" is the demonstration of how Precision (PPV) collapses as prevalence drops. Even if your model's sensitivity and specificity remain perfect, a drop in the target population's prevalence from 0.5 to 0.001 can cause precision to plummet from 0.889 to a useless 0.008.
  • Discrimination vs. Calibration: A model can have a high ROC-AUC (good at ranking) but be poorly calibrated (bad at estimating actual probabilities). The authors show three probability variants with the same ROC-AUC of 0.825 but vastly different calibration slopes (ranging from 0.52 to 2.08).
  • Software Defaults Matter: The paper quantifies how different software conventions (e.g., how scikit-learn handles division by zero) can change a reported value from 0.000 to 1.000 or NaN for the exact same prediction vector.
  • The Metric Map: This visual guide is a powerful tool for choosing the right metric based on whether you expect your test set's class distribution to match the real world.
Figure 2: The prevalence-coded metric map, showing which metrics are affected by class mix (gold) and which remain fixed (blue).

Key Results

The scenarios provided concrete, quantitative proof of common evaluation pitfalls:

  • Accuracy Paradox: In a set with 1% prevalence, a "dumb" model that always predicts negative achieves 0.990 accuracy but a balanced accuracy of only 0.500.
  • Uncertainty in Small Samples: With only 10 participants, a seemingly decent accuracy of 0.700 has a massive 95% confidence interval of 0.348–0.933, making the result statistically indistinguishable from a coin flip.
  • Regression Ranking: The authors showed that MAE and RMSE can rank two models in opposite orders depending on whether the error distribution has heavy tails (outliers).

Limitations and Future Work

The authors are clear that their scenarios are synthetic. They isolate mechanisms but do not estimate how often these issues occur in the wild.

Two major extensions were planned but not executed in this specific paper:

  1. A Literature Audit: A protocol to check 200 published articles for reporting consistency.
  2. Real-Data Demonstration: Testing if these mechanisms actually change model rankings on public tasks.

For researchers and engineers, the most immediate value lies in Table 18 of the paper—a checklist of 13 items that should be included in every ML report to ensure results are actually recomputable and meaningful.

Summary updated

BibTeX
@misc{baygin2026performance,
  author = {Mehmet Baygin and Sengul Dogan and Turker Tuncer},
  title = {{Performance metrics in machine learning: a scenario-based guide from the confusion matrix to calibration, regression and uncertainty}},
  year = {2026},
  eprint = {2611.08048},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.08048},
}
Figure