To my understanding multiplying all x (or all y) values in a constant will not change |r|.
I'm looking for formal proof.
Cross Validated is a question and answer site for people interested in statistics, machine learning, data analysis, data mining, and data visualization. It only takes a minute to sign up.
Sign up to join this communityTo my understanding multiplying all x (or all y) values in a constant will not change |r|.
I'm looking for formal proof.
You can prove it yourself by considering how the sample means and variances change under affine transformations. For instance if $X_i \mapsto aX_i +b$, then the new sample mean is just $a \bar{X}+b$. Do the same for the sample variance now and put everything into the usual quotient for the (sample) product moment correlation coefficient:
$$r=\frac{\sum_{i=1}^n \left( X_i -\bar{X} \right) \left(Y_i -\bar{Y} \right)}{\sqrt{\sum_{i=1}^n \left(X_i-\bar{X} \right)^2 \sum_{i=1}^n \left( Y_i -\bar{Y} \right)^2}}$$
After you substitute the new variables along with their location and dispersion measures, what is the relation between the old variable coefficient and the new one? You will see that unless you consider the absolute magnitude, the direction is reversed for multiples of different sign. A similar argument would work for the population correlation coefficient.