Power-law terms and exponent grids in short QSPR equations
A power-law term fits f^p instead of f. A 0.25 step keeps the exponent search small, and neighbouring exponents give nearly identical standardised columns.
Updated November 28, 2026
A power-law term raises a descriptor to an exponent before the linear fit, so the equation depends on f^p rather than on f. MolBasis kernels take p from a grid with a step of 0.25, coarse enough to keep the search small and fine enough that adjacent exponents give nearly the same column. This guide explains what the exponent does, why the step size matters, and why a fractional power on a descriptor that can be negative needs a stated convention.
What an exponent does to a column
For positive f the map f → f^p is monotone. With p = 1 nothing changes. With p below 1 the large values are pulled in, so a right-skewed descriptor such as cavity area becomes more symmetric. With p above 1 the large values are pushed out. With p below 0 the order reverses, so a molecule with the largest descriptor gets the smallest term.
Standardisation then removes the scale. Because (c·f)^p = c^p·f^p, multiplying the descriptor by any constant multiplies the column by a constant, and z-scoring divides it back out. The fitted coefficient is the same whether the area was in bohr² or in Ų, as long as training and application use the same unit. The guide on the bohr versus ångström units trap and the mfsig guide on units and unit errors in mfsig files explain where that invariance breaks.
Neighbouring exponents are nearly the same column
Take a descriptor with values 1, 2, 3, 4 and 5. Compare the column f with the column f². The deviations of f from its mean 3 are −2, −1, 0, 1, 2. The deviations of f² from its mean 11 are −10, −7, −2, 5, 14. The sum of products is 20 + 7 + 0 + 5 + 28 = 60. The sum of squared deviations is 10 for f and 374 for f². The Pearson correlation is 60/√3740 = 0.981.
So on this range f and f² are almost the same predictor. Exponents 1 and 1.25 would correlate even more closely. The lesson is that over a narrow dynamic range the exponent barely matters, and over a range spanning two orders of magnitude it matters a great deal. The guide on the plateau of equivalent models turns this into a count of tied equations.
In the Box-Cox family the exponent p = 0 is replaced by a logarithm. Whether a given grid includes a logarithm in place of zero is a choice the fit must state. Without it, the grid simply skips zero.
Why a step of 0.25
A grid running from −2 to 3 in steps of 0.25, with zero removed, has 20 points. This range is an example, not a statement about the MolBasis record. With nine descriptors that gives 180 one-term candidates. For two-term equations there are 36 descriptor pairs and 400 exponent pairs, so 14,400 candidates.
Halve the step to 0.125 and the one-term count doubles to 360 while the two-term count quadruples to 57,600. The extra candidates are near copies of their neighbours, as the correlation above shows, so they add little in fit. They do add to the number of chances the search has to hit a lucky score. The guide on feature selection by search quantifies that optimism.
Widen the step to 1 and the grid loses the square root, the inverse square root and every intermediate shape. A 0.25 step includes 0.5, 0.75, 1.5 and −0.5, which cover the transformations a chemist would reach for by hand.
Negative values and zeros need a convention
Several descriptors can be negative. The polar reaction-field energy is negative for every solute. The σ skewness is negative for many molecules. A real number raised to 0.5 or 0.75 is undefined when it is negative.
There are three common conventions. Take the absolute value and lose the sign. Shift every value so the minimum is positive, which makes the column depend on the training set. Or use the sign-preserving form sign(f)·|f|^p, which keeps order and is continuous through zero. Each convention produces a different column, a different coefficient and a different plateau. A record that reports an exponent without its convention cannot be reproduced.
Zeros bring a second trap. A negative exponent sends them to infinity. A descriptor that is identically zero, which is what the production donor surface descriptor turned out to be, gives a constant column that cannot be standardised at all. The guide on the hydrogen-bond donor descriptor defect tells that story.
A grid scan in numpy
import numpy as np
grid = np.arange(-2.0, 3.01, 0.25)
grid = grid[grid != 0]
def score(f, y, p):
t = np.sign(f) * np.abs(f) ** p
z = (t - t.mean()) / t.std()
return abs(np.corrcoef(z, y)[0, 1])
f = np.array([1., 2., 3., 4., 5.])
y = np.array([1.0, 1.9, 3.2, 3.9, 5.0])
scores = {p: round(score(f, y, p), 3) for p in grid}Run it and the scores for p between 0.5 and 1.5 sit within a few thousandths of each other. That spread is the plateau, and reporting one exponent from it as the answer over-reads the data.
Key points
- A power-law term fits f^p. Standardisation removes the unit, so the coefficient is the same in bohr² and Ų if training and use share a unit.
- Adjacent exponents give nearly identical columns on a narrow range. A 0.25 step adds shapes a chemist would try without flooding the search.
- Each finer step multiplies the candidate count and the optimism of the winner.
- Negative descriptors need a stated convention for fractional powers. Zero descriptors cannot be standardised.
Questions people ask
- Why raise a descriptor to a power before a linear fit?
- The fit stays linear in the coefficients but can follow a curved relation between descriptor and property. A square root compresses large values, a square stretches them, and a negative power reverses the order.
- Why is the exponent grid step 0.25 and not finer?
- Neighbouring exponents produce standardised columns that correlate almost perfectly, so a finer grid adds candidates without adding distinct models. More candidates also raise the optimism of the search.
- What happens to a negative descriptor under a fractional power?
- The real power is undefined, so a convention is needed, such as taking the absolute value or a sign-preserving form. Each convention yields a different column, and a fit that does not state its convention cannot be reproduced.
Further reading
In practice: A kernel on this site is one or two descriptor terms with coefficients from a single ridge solve. The methodology page gives the exact form, the grid and the gate the search had to pass.
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.