45
$\begingroup$

I have 2 simple questions about linear regression:

  1. When is it advised to standardize the explanatory variables?
  2. Once estimation is carried out with standardized values, how can one predict with new values (how one should standardize the new values)?

Some references would be helpful.

$\endgroup$
3

1 Answer 1

32
$\begingroup$

Although terminology is a contentious topic, I prefer to call "explanatory" variables, "predictor" variables.

When to standardise the predictors:

  • A lot of software for performing multiple linear regression will provide standardised coefficients which are equivalent to unstandardised coefficients where you manually standardise predictors and the response variable (of course, it sounds like you are talking about only standardising predictors).
  • My opinion is that standardisation is a useful tool for making regression equations more meaningful. This is particularly true in cases where the metric of the variable lacks meaning to the person interpreting the regression equation (e.g., a psychological scale on an arbitrary metric). It can also be used to facilitate comparability of the relative importance of predictor variables (although other more sophisticated approaches exist for assessing relative importance; see my post for a discussion). In cases where the metric does have meaning to the person interpreting the regression equation, unstandardised coefficients are often more informative.
  • I also think that relying on standardised variables may take attention away from the fact that we have not thought about how to make the metric of a variable more meaningful to the reader.

  • Andrew Gelman has a fair bit to say on the topic. See his page on standardisation for example and Gelman (2008, Stats Med, FREE PDF) in particular.

Prediction based on standarisation:

  • I would not use standardised regression coefficients for prediction.
  • You can always convert standardised coefficients to unstandardised coefficients if you know the mean and standard deviation of the predictor variable in the original sample.
$\endgroup$
7
  • 4
    $\begingroup$ +1, but why would you not use unstandardised regression coefficients for prediction? $\endgroup$
    – onestop
    Feb 12, 2011 at 9:43
  • 1
    $\begingroup$ (+1) About assessing variable importance, I think the relaimpo R package does a good job (but see Getting Started with a Modern Approach to Regression). There was also a nice paper by David V. Budescu on dominance analysis (freely available on request). $\endgroup$
    – chl
    Feb 12, 2011 at 10:09
  • 1
    $\begingroup$ @Jeromy, Could you elaborate on why you wouldn't use standardized regression coefficients for prediction? $\endgroup$ Dec 1, 2011 at 20:28
  • 3
    $\begingroup$ @MichaelBishop I'm thinking of contexts where you take your regression model and apply it to predict out of sample data. In general, you'd want unstandardised predictions. Also, means and standard deviations can change across samples; using unstandardised predictors should thus give more meaningful results. $\endgroup$ Dec 2, 2011 at 4:06
  • 1
    $\begingroup$ I'd say at the very least you might need to standardize if you use regularization. Maybe not necessarily to zero mean / equal variance, but at least to something meaningful. Otherwise, regularization will completely ignore the variables that happened to use larger units. $\endgroup$
    – max
    Jun 7, 2016 at 18:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.