Regression Metrics
Regression metrics evaluate continuous predictions. The right metric depends on target scale, noise, outliers, tolerance, calibration, and whether the application needs absolute accuracy, ranking, or uncertainty.
Given predictions and targets , define residuals:
Many regression mistakes come from ignoring the unit of . A model evaluated on , , and pIC50 is not being evaluated on the same error scale.
Metric Families
| Family | Question | Examples |
|---|---|---|
| Absolute error | How large is the typical miss? | MAE, median absolute error |
| Squared error | Are large misses strongly penalized? | MSE, RMSE |
| Explained variation | Does the model beat the mean baseline? | |
| Rank agreement | Does the ordering match? | Pearson, Spearman |
| Probabilistic regression | Is predictive uncertainty useful? | NLL, CRPS, calibration |
Mean Absolute Error
Mean absolute error measures average absolute deviation:
MAE is interpretable in the same unit as the target and is less sensitive to large outliers than squared error.
Median absolute error is even more robust:
It is useful when a small number of extreme labels or failures should not dominate the summary.
Mean Squared Error and RMSE
Mean squared error penalizes large errors strongly:
Root mean squared error returns to the target unit:
Coefficient of Determination
compares the model to predicting the target mean:
where is the mean target in the evaluated set.
can be negative on held-out data. This means the model is worse than predicting the test-set mean:
Do not compare across datasets with very different target variance without checking the denominator.
Correlation
Pearson correlation measures linear association:
Spearman correlation measures rank association:
Correlation can be high even when predictions are badly calibrated in absolute units. This is common when a model ranks compounds correctly but compresses or shifts the predicted values.
Log Scales and Bioactivity
Binding and activity labels are often logarithmic:
An error of in pIC50 corresponds to a tenfold error in concentration scale. This makes p-scale errors easier to compare across orders of magnitude, but it also means the metric is not the same as absolute concentration error.
Use a table like this before comparing papers:
| Target form | Example | Metric caution |
|---|---|---|
| Raw concentration | IC50, | scale is long-tailed |
| Log concentration | pIC50, p | errors are fold-change-like |
| Standardized label | z-score | unit is dataset-specific |
| Censored label | or threshold | ordinary MAE/RMSE can be biased |
See Censored label for thresholded measurements.
Probabilistic Regression
If the model predicts a distribution, not only a point estimate, evaluate the distribution:
For Gaussian regression:
The negative log-likelihood is:
This metric rewards accurate means and honest uncertainty. It can be gamed by inflating uncertainty, so pair it with calibration diagnostics.
Choosing the Metric
| Claim | Stronger metric choice |
|---|---|
| ”The model predicts values accurately.” | MAE/RMSE with units |
| ”The model prioritizes candidates.” | Spearman, enrichment, top-k error |
| ”The model improves over a baseline.” | paired comparison and confidence interval |
| ”The model knows when it is uncertain.” | probabilistic NLL and calibration |
| ”The model works across scaffolds/families.” | split-specific metrics and error analysis |
Checks
- Is the target linear, logarithmic, standardized, censored, or clipped?
- Are outliers meaningful or measurement artifacts?
- Does the application care about absolute error, squared error, rank order, or threshold crossing?
- Are units and transformations reported clearly?
- Are confidence intervals or repeated splits needed for metric stability?
- Is the train/test split compatible with the claim?
- Are uncertainty estimates evaluated separately from point prediction?
- Are errors stratified by scaffold, protein family, label source, or target range?