Coefficient Magnitudes (in Linear Models)
Description
Coefficient Magnitudes explains a linear model by reading its fitted coefficients. Each coefficient shows how much the prediction changes when its feature rises by one unit while every other feature stays fixed, and its sign gives the direction. Because a coefficient's size depends on the units of its feature, the features are first put on a common scale, for example by standardising them or by multiplying each coefficient by its feature's standard deviation. The features with the largest scaled coefficients are then read as having the strongest influence on the model's predictions. This gives a global view of the model without needing a separate explanation method.
Example Use Cases
Explainability
An estate agency's data team standardises the inputs of a linear house-price model, then ranks the absolute coefficients to show valuers which property attributes move the estimate most. Valuers check that the signs match their experience, for example that more floor area raises the price, before the model guides asking prices.
A public health analyst fits a logistic regression to predict emergency readmission and reports standardised coefficients to clinicians, who see which patient characteristics push the predicted risk up or down. The analyst refits on resamples first, to check that the large coefficients keep their sign.
Transparency
A lender's model-risk team documents a linear credit-scoring model for its regulator by publishing the standardised coefficient of every input. The reviewer can read off the direction and relative weight of each input without a separate explanation tool, and can query any input that carries more weight than policy allows.
Limitations
- Raw magnitudes have output-per-input units and cannot be ranked across differently scaled variables. Express comparable input changes explicitly; changing metres to centimetres makes the corresponding coefficient smaller for the same predictions.
- Coefficients concern the encoded model inputs while other inputs are held fixed. If the model includes transformed variables or interactions, inspecting one coefficient does not give the whole effect of changing an original variable.
- Correlated predictors can have unstable or shared coefficients even when predictions change little. Scaling does not remove this problem, and regularisation can change which correlated feature receives a large weight.
- Each coefficient is conditional on the other features in the model. A feature can have a negative coefficient while rising with the outcome on its own, so a coefficient read in isolation can mislead about the feature's plain relationship to the outcome.
- A coefficient is a conditional association in the fitted model, not a causal effect. Its magnitude alone also does not give a particular applicant's contribution, which depends on that applicant's feature values.
Resources
Research Papers
The Elements of Statistical Learning
How to Standardize Regression Coefficients
In many regression studies, there is an ambition to compare the relative importance of different variables. One measure frequently used is standardized regression coefficients. The present article reveals an inconsistency in the definition of the standardized coefficients and demonstrates that if they were correctly defined, a comparison between standardized coefficients would be similar to comparing t values.