Cross Validated is a question and answer site for people interested in statistics, machine learning, data analysis, data mining, and data visualization. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

After standardising the explanatory variables the difference in magnitude between the explanatory variables and the target data is ~3 orders of magnitudes. I want to know if transformation of the target data will still give valid results.

Thanks a lot folks!

share|improve this question
Is there a reason why you want/need to standardize the dependent variable? Then your dependent variable, rather than being in a natural scale like "meters," is in a scale with units of the standard deviation found in your particular sample. Similarly for the explanatory variables. Staying in the original scales can help with interpretation and with the ability of others to reproduce your results. – EdM Jan 5 at 22:27
The coefficients in a regression model take care of differences in scale. (There are sometimes reasons to standardize but from your description you don't seem to be in need of it.) – Glen_b Jan 6 at 0:27
up vote 4 down vote accepted

Scaling or zeroing will will not change the regression or classification results. The only down side is lose of interpretability.

Here are working examples in R showing that any combination of scaling or zeroing produces the same regression line.

Coefficients can be different, and that is okay. Here are the coefficients calculated in the models below in order.

  (Intercept)         disp
1    29.59985  -0.04121512
2    20.09062  -0.04121512
3    26.66946 -16.52314159
4    26.66946 -16.52314159

No zeroing or scaling

# orginal data
df <- mtcars
plot(df$disp, df$mpg, main="MPG VS Displacment")
abline(lm(mpg ~ disp, df), col = 2)

MPG VS Displacement


# zeroed displacement
df <- mtcars
df$disp <- df$disp - mean(df$disp)
    plot(df$disp, df$mpg, main="MPG VS Zeroed  Displacement")
abline(lm(mpg ~ disp, df), col = 2)

MPG VS Zeroed Displacement


# scaled displacment
df <- mtcars
df$disp <- (df$disp - min(df$disp)) / ( max(df$disp) -  min(df$disp))
    plot(df$disp, df$mpg, main="MPG VS Scaled Displacment")
abline(lm(mpg ~ disp, df), col = 2)

MPG VS Scaled Displacement

Zeroed & Scaled

# zeroed & scaled displacment
df <- mtcars
dt$disp <- df$disp - mean(df$disp)
    df$disp <- (df$disp - min(df$disp)) / ( max(df$disp) -  min(df$disp))
plot(df$disp, df$mpg, main="MPG VS Scaled & Zeroed Displacment")
abline(lm(mpg ~ disp, df), col = 2)

MPG VS Scaled & Zeroed Displacement

share|improve this answer

It will. Your measurements are coordinates. For every value on the explanatory variable, you have a coordinate measurement on the target variable. If you don't change the order of either, then the relation remains intact. Right?

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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