Probability Metrics
Probability metrics evaluate predicted probabilities, not only hard decisions or rankings. They matter when a model’s confidence drives triage, filtering, decision thresholds, uncertainty estimates, abstention, active learning, or downstream planning.
For predictions on test examples , negative log-likelihood is:
This is the same mathematical form as a negative log-likelihood training loss, but in evaluation it is computed on held-out data under a fixed protocol.
For multi-class classification with logits :
and the per-example log loss is:
where is one-hot or a soft target. In sequence models, the reported NLL must state whether it is averaged per token, residue, atom, graph, sequence, or example.
What Probability Metrics Measure
| Metric | Measures | Common failure it exposes |
|---|---|---|
| NLL / log loss | probability assigned to the observed target | overconfident wrong predictions |
| Brier score | squared probability error | poor binary risk estimates |
| ECE / reliability | calibration by confidence bins | confidence-frequency mismatch |
| CRPS | full continuous predictive distribution | bad uncertainty in regression |
| Selective risk | risk after abstaining | unusable confidence ranking |
Accuracy, AUROC, and AUPRC can be high even when probability estimates are unusable.
Brier Score
See Brier score for the standalone note.
For binary labels and predicted probability :
For multiclass prediction:
where is the predicted probability for class and is the one-hot or soft target.
The binary Brier score has a useful decomposition:
Reliability penalizes miscalibration, resolution rewards separating examples into groups with different event rates, and uncertainty is determined by the base rate.
Proper Scoring Rule
See Proper scoring rule for the standalone note.
A proper scoring rule rewards honest probabilities: the expected score is optimized when the predicted distribution equals the true conditional distribution.
For a scoring rule , propriety means:
for a loss-style score where lower is better. NLL and Brier score are common proper scoring rules.
Improper probability scores can reward distorted confidence. For example, threshold accuracy may favor pushing probabilities away from the true uncertainty if that improves a single operating point.
Calibration Metrics
Expected calibration error bins predictions by confidence:
where is the set of examples in bin .
For binary events:
ECE depends on binning. Always pair it with Reliability diagram or bin-level inspection when the claim is calibration.
Regression Probability Metrics
For continuous targets, a probabilistic model predicts a density:
The test NLL is still:
For a Gaussian predictive distribution:
This evaluates both location and uncertainty. A model with accurate means but under-estimated variance can have poor NLL.
Metric, Loss, and Calibration
- Loss: used to update parameters during training.
- Probability metric: computed on validation or test data to evaluate probabilistic predictions.
- Proper scoring rule: rewards honest probability estimates.
- Calibration: asks whether predicted confidence matches empirical frequency.
- Threshold selection: converts probabilities into decisions.
- Selective prediction: evaluates accept/abstain behavior as confidence thresholds change.
A model can have good accuracy but poor NLL if it is overconfident on errors. It can also have a strong ranking metric but unreliable probabilities.
Computational Biology Uses
- Activity screening: probability can represent active/inactive risk only if labels and prevalence are compatible with deployment.
- Structure prediction confidence: per-residue or per-pair probabilities need masking and aggregation rules.
- Generative filtering: probability metrics do not replace validity, novelty, diversity, or downstream property metrics.
- Assay prediction: calibrated uncertainty is useful only if assay heterogeneity and Assay harmonization are handled.
Checks
- Are probabilities required, or are rankings/classes enough?
- Is NLL averaged per example, token, atom, sequence, or graph?
- Are padding and invalid positions masked consistently?
- Are probabilities calibrated on validation data, not the test set?
- Are threshold-dependent metrics reported separately from probability metrics?
- Is calibration checked globally and within important subgroups?
- Are probability estimates evaluated under the same prevalence and shift expected at use time?
- Is uncertainty inflated, collapsed, or only a monotone confidence score?