Applicability domain for short QSPR equations
For a one- or two-term kernel the applicability domain is an interval in transformed descriptor space, checked with a z-score, a hat value and scaffold novelty.
Updated November 28, 2026
The applicability domain of a one-term kernel is an interval on the transformed descriptor axis, and for a two-term kernel it is a rectangle, or an ellipse if the two terms correlate. A molecule is inside the domain when its transformed descriptor sits within the spread of the training set, when its hat value is below the usual threshold, and when its scaffold is the kind the held-out protocol tested. This guide gives the three checks with a worked numeric example and a short numpy snippet, and says which inputs the kernel pages do and do not provide.
In one dimension the domain is an interval
A kernel is ŷ = β₀ + β₁·z, with z the standardised value of f^p. The training molecules occupy a stretch of the z axis, by construction centred on zero with unit spread. The fitted line is supported where training points are dense and unsupported beyond the last one. Nothing in the equation stops you from evaluating it at z equal to 8. Nothing in the data tells you what happens there.
For short equations this simplicity is an advantage over high-dimensional models, where the domain is hard to describe. Here it is one number per term. The question is only where to draw the edge, and the field uses two conventions, a z-score bound and a hat-value bound.
The z-score rule with a worked example
Take an invented training set of 40 molecules whose transformed descriptor f^p has mean 10 and standard deviation 2. A new molecule has f^p equal to 17. Its z-score is 17 minus 10, divided by 2, which is 3.5. By the common rule that treats a magnitude above 3 as outside, this molecule is out of domain. A molecule at 15 has z equal to 2.5 and is inside, though near the edge. The rule is coarse. It ignores whether the training points near the edge are many or few. It has the merit of needing only two numbers from the training set.
The hat value is the sharper tool
The hat value, the diagonal of the hat matrix, measures how much a point's own observation would influence its fitted value. For a one-term equation with an intercept it is h = 1/n + (x - xbar)^2 / sum((x_train - xbar)^2), with x the transformed descriptor. The conventional warning threshold is three times the number of parameters over the training size, which for intercept plus slope is 6 over n.
Continue the example. The sum of squared deviations on the training set is 39 times 4, which is 156. For the molecule at 17, the squared deviation is 49, so h is 1 over 40 plus 49 over 156, which is 0.025 plus 0.314, giving 0.339. The threshold is 6 over 40, which is 0.15. The molecule exceeds it by a wide margin. For the molecule at 15, the squared deviation is 25, h is 0.025 plus 0.160, which is 0.185, still above 0.15. The hat rule is stricter than the z-score rule here, and that is typical on small training sets, where the threshold 6 over n is large but the denominator of the second term is small.
import numpy as np
def domain_check(t_train, t_new, n_params=2):
"""t_train: transformed descriptor f**p on the training set.
t_new: the same quantity for the query molecule, in the same units."""
mu, sd = t_train.mean(), t_train.std(ddof=1)
z = (t_new - mu) / sd
ss = np.sum((t_train - mu) ** 2)
h = 1.0 / len(t_train) + (t_new - mu) ** 2 / ss
h_cut = 3.0 * n_params / len(t_train)
return z, h, h_cut, (abs(z) <= 3.0) and (h <= h_cut)
rng = np.random.default_rng(0)
t_train = rng.normal(10.0, 2.0, size=40)
print(domain_check(t_train, 17.0))The random training set will not reproduce the hand figures exactly, since its sample mean and sd differ from 10 and 2, but the verdict for 17 will be the same. For a two-term kernel, build the design matrix with both standardised terms and an intercept and take the diagonal of X times the inverse of X-transpose-X times X-transpose.
Scaffold novelty is a second axis
A molecule can sit at z equal to 0.2 and still be nothing like the training set. The descriptor check tests extrapolation along the fitted axis. It does not test whether the molecule is the kind of structure the equation was ever shown. The held-out protocol on MolBasis is scaffold-blind, meaning 25 percent of unique Bemis-Murcko scaffolds were set aside, so the held-out r speaks for molecules with new scaffolds from the same dataset. Compute the Bemis-Murcko scaffold of your molecule and ask whether scaffolds of that general kind appear in the training set, or whether the nearest training molecule by ECFP4 Tanimoto is below the usual 0.85 that marks a near duplicate. The guide on the scaffold split with Bemis-Murcko scaffolds shows the RDKit code. The guide on quantum descriptors versus fingerprints explains why a continuous descriptor and a fingerprint answer different questions about similarity.
Descriptor validity is a third axis
The two checks above assume the descriptor is well defined for the molecule. For the nine mfsig descriptors that is not always so. The dipole norm is origin-dependent for ions. The donor descriptor is zero in the production path. The acceptor definition changed during the programme. Areas in v0.91.1 files are in bohr² under an ångström name, so a query molecule from a current file is in different units from the training set unless converted. A molecule can pass the z-score and hat checks on a descriptor that is not measuring what the kernel assumes. The guide on when not to trust a kernel lists those cases.
What the pages give you and what you must supply
A kernel page gives the descriptor, the exponent and the known limits. It does not give the training mean, the training standard deviation, the training range or the list of training molecules, and it does not give the coefficients. So none of the checks above can be run against a MolBasis kernel from the site alone. They can be run against a kernel you fitted yourself, following the procedure in how to apply a property kernel with your own constants, and they should be, because a short equation is only as good as the stretch of axis it was fitted on.
Key points
- For one or two terms the domain is an interval or a rectangle in transformed descriptor space, which makes it easy to state and easy to check.
- The z-score rule flags a magnitude above 3. The hat-value rule flags h above three parameters over n and is stricter on small training sets.
- In the worked example a molecule at z equal to 3.5 has h of 0.339 against a threshold of 0.15.
- Scaffold novelty and descriptor validity are separate axes. A molecule can pass the numeric checks and still be unsupported.
- The kernel pages do not publish the training constants, so these checks need your own training vector.
Questions people ask
- What is the applicability domain of a one-term kernel?
- The range of the transformed descriptor covered by the training set, with some allowance at the edges. A molecule whose transformed descriptor z-scores beyond about three standard deviations from the training mean, or whose hat value exceeds three times the parameter count over the training size, is outside it.
- Why is scaffold novelty a separate check from the descriptor range?
- Because a molecule can have an ordinary descriptor value and still belong to chemistry the training set never saw. The descriptor check tests extrapolation along the fitted axis. The scaffold check tests whether the molecule is the kind of structure the held-out protocol speaks for.
- Can I compute the applicability domain of a MolBasis kernel from its page?
- No. The page states the known limits but not the training range or the standardisation constants of the descriptor. The computations in this guide need the training vector, which means your own fit or the holder of the record.
Further reading
In practice: The coefficients of the kernels are not published, so no kernel can be evaluated from this site alone, and no figure here was recomputed except the separate blind benchmark. The guides say what can be done with what is available.
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.