The calibration slope, compressed predictions and what they hide
Regress measured values on predictions. A slope of 1 means a unit change in prediction is a unit change in reality. A slope far from 1 can hide behind r = 1.
Updated November 28, 2026
The calibration slope is the slope of a straight line fitted to measured values against predicted values on held-out molecules. A slope of 1 with an intercept of 0 means that a unit change in prediction corresponds to a unit change in the measured property. A slope above 1 means the predictions are compressed, moving less than reality. A slope below 1 means they are over-spread. Pearson r cannot see either failure. That is why the MolBasis protocol reports the calibration slope next to r and MAE lift on every kernel page.
The definition and one convention to fix
Take held-out pairs of measured y and predicted ŷ. Fit y = a + b·ŷ by least squares. The coefficient b is the calibration slope and a is the calibration intercept. Perfect calibration is b = 1 and a = 0. This is the convention used in the prediction-model literature and the one this guide follows.
Some QSPR papers regress the other way, ŷ on y, or force the line through the origin as Golbraikh and Tropsha did in 2002. Those give different numbers for the same predictions. A report should state which it used. The MolBasis methodology page is the reference for how its slope is defined and measured. The guides describe the usual convention and do not restate the record's figures.
A five-point example where r is perfect and the slope is 4
Measured values y = 1, 2, 3, 4, 5. Predictions ŷ = 2.5, 2.75, 3, 3.25, 3.5. The predictions rise in step with the measurements, so r = 1.
Compute the slope. The mean of y is 3 and the mean of ŷ is 3. Deviations of ŷ are −0.5, −0.25, 0, 0.25, 0.5. Deviations of y are −2, −1, 0, 1, 2. The sum of products is 1 + 0.25 + 0 + 0.25 + 1 = 2.5. The sum of squared ŷ deviations is 0.25 + 0.0625 + 0 + 0.0625 + 0.25 = 0.625. The slope is 2.5 / 0.625 = 4. The intercept is 3 − 4 × 3 = −9. The predictions move a quarter as much as reality.
Now the error. Absolute residuals are 1.5, 0.75, 0, 0.75 and 1.5, summing to 4.5, so MAE is 0.9. A baseline that predicts the training mean of 3 for everyone has residuals 2, 1, 0, 1, 2, summing to 6, so its MAE is 1.2. The lift is 1 − 0.9 / 1.2 = 0.25, a 25 percent reduction. Under the MolBasis gate, which asks for at least 30 percent, this model fails despite r = 1. The guide on Pearson r versus R² explains why r alone could not have caught it.
The opposite case, over-spread predictions
Keep y = 1, 2, 3, 4, 5 and take ŷ = −1, 1, 3, 5, 7. Again r = 1. Deviations of ŷ are −4, −2, 0, 2, 4 and the sum of products with y deviations is 8 + 2 + 0 + 2 + 8 = 20. The sum of squared ŷ deviations is 16 + 4 + 0 + 4 + 16 = 40. The slope is 0.5. The predictions move twice as much as reality.
Absolute residuals are 2, 1, 0, 1, 2, summing to 6, so MAE is 1.2, identical to the baseline. The lift is zero. A model with a perfect correlation and no improvement over predicting the mean. Over-spread predictions are the classic signature of overfitting, where the coefficients were fitted to noise and respond too strongly to new inputs.
import numpy as np
from sklearn.linear_model import LinearRegression
y = np.array([1, 2, 3, 4, 5.0])
for yhat in ([2.5, 2.75, 3, 3.25, 3.5], [-1, 1, 3, 5, 7.0]):
yhat = np.array(yhat)
line = LinearRegression().fit(yhat.reshape(-1, 1), y)
print(round(line.coef_[0], 2), round(line.intercept_, 2),
round(np.corrcoef(y, yhat)[0, 1], 3), round(np.mean(np.abs(y - yhat)), 2))Where compression comes from in a short equation
Ridge regression, which Hoerl and Kennard introduced in 1970, shrinks coefficients toward zero by design. With the small penalty the MolBasis kernels use, the shrinkage of a one- or two-term equation is slight. Compression on held-out molecules has two larger sources. The first is an equation that captures only part of the signal, so its predictions span a narrower range than the measurements. The second is a held-out set whose molecules sit outside the training range, where any model that regresses toward the training mean looks compressed.
In-sample, an ordinary least-squares fit always has a calibration slope of exactly 1, because the fitted line is the calibration line. The slope becomes informative only on held-out molecules. This is one more reason why the guide on in-sample versus held-out insists on the distinction. The guide on ridge regression works through the shrinkage with two features.
Reading the slope on a kernel page
Each kernel page states its held-out r, its MAE lift against the train-mean baseline and its calibration slope, together with the number of held-out molecules. Read them as a set. A high r with a weak lift and a slope well above 1 describes a compressed equation that ranks molecules but does not place them. A high r with a slope well below 1 describes over-spread predictions. A slope near 1 with a strong lift and a high r is what a useful equation looks like on new scaffolds. The labels A.IMPROVE and B.UNDERFIT are recorded on the pages, and the guide on what those labels mean explains the gate behind them.
On a small held-out set the slope is as unstable as r. Five molecules fix a line poorly. Read the molecule count first.
Key points
- Fit measured against predicted on held-out molecules. Slope 1, intercept 0 is perfect calibration. State the convention.
- Predictions compressed by a factor of 4 keep r = 1, give slope 4, and in the example cut MAE by only 25 percent.
- Over-spread predictions give a slope below 1 and can give zero lift over the mean with r still equal to 1.
- In-sample, least squares always gives slope 1. The slope is informative only on held-out molecules.
- Read r, lift and slope together with the molecule count. Any one of them alone can mislead.
Questions people ask
- What is the calibration slope of a regression model?
- Fit a straight line of measured values against predicted values on the held-out molecules. The slope of that line is the calibration slope. A slope of 1 with an intercept of 0 means the predictions are on the right scale. A slope above 1 means the predictions move less than reality, a slope below 1 means they move more.
- Can a model have Pearson r equal to 1 and a bad calibration slope?
- Yes. Pearson r ignores any constant scaling of the predictions, so predictions that move a quarter as much as the measurements still give r of 1. The calibration slope would then be 4. The mean absolute error exposes the problem, because the predictions are far from the measured values.
- What does a slope above 1 mean for a ridge regression model?
- Ridge regression shrinks coefficients toward zero, so predictions are pulled toward the training mean. On held-out data that shows as a slope above 1, with predictions compressed around the centre. A small penalty gives a small effect, a large penalty or an under-specified equation gives a large one.
Further reading
In practice: The methodology page describes the checks applied to every kernel, scaffold-blind split included, and the limits of those checks. Every kernel page quotes the held-out figure first and the in-sample figure second.
See the kernels themselves
Every kernel is shown with its held-out result, the number of molecules it rests on and what it cannot be trusted for.