Why is correlation invariant to linear rescaling of the variables?

Quick Overview

Asks why the Pearson correlation stays the same when a variable is shifted or multiplied by a constant, and what a negative multiplier does to it. Tests the covariance and standard deviation algebra behind r and whether you know where the invariance stops applying.

Why is correlation invariant to linear rescaling of the variables?

Role: Data Scientist

Category: Statistics & Math

Difficulty: easy

Interview Round: Other

Why is correlation invariant to linear rescaling of the variables? Changing units, for example recording temperature in Fahrenheit instead of Celsius, does not change the Pearson correlation between temperature and any other variable. Explain why, starting from the definition of the correlation coefficient. ```hint Write out the definition Write $r$ as the covariance divided by the product of the two standard deviations, then track what replacing $X$ with $aX + b$ does to each of those three pieces. ``` ### What a Strong Answer Covers - Why adding a constant leaves both the covariance and the variance unchanged - How a multiplier scales the covariance and the standard deviation, and why the two factors cancel - What a negative multiplier does to the sign and the magnitude of $r$ - The degenerate case where a multiplier is zero - A practical consequence, such as unit conversion or standardizing to z-scores ### Follow-up Questions - Is covariance invariant to rescaling? Why does that matter when you compare covariances across datasets? - Does a nonlinear transformation such as taking a log change the Pearson correlation? Is Spearman rank correlation affected? - In a simple linear regression of $Y$ on $X$, what happens to the slope and to $R^2$ when you rescale $X$?

Overview: Asks why the Pearson correlation stays the same when a variable is shifted or multiplied by a constant, and what a negative multiplier does to it. Tests the covariance and standard deviation algebra behind r and whether you know where the invariance stops applying.

PracHub logo
General
Nov 25, 2026
easyData ScientistOtherStatistics & Math
0
0

Why is correlation invariant to linear rescaling of the variables?

Changing units, for example recording temperature in Fahrenheit instead of Celsius, does not change the Pearson correlation between temperature and any other variable. Explain why, starting from the definition of the correlation coefficient.

What a Strong Answer Covers Guidance

  • Why adding a constant leaves both the covariance and the variance unchanged
  • How a multiplier scales the covariance and the standard deviation, and why the two factors cancel
  • What a negative multiplier does to the sign and the magnitude of rr
  • The degenerate case where a multiplier is zero
  • A practical consequence, such as unit conversion or standardizing to z-scores

Follow-up Questions Guidance

  • Is covariance invariant to rescaling? Why does that matter when you compare covariances across datasets?
  • Does a nonlinear transformation such as taking a log change the Pearson correlation? Is Spearman rank correlation affected?
  • In a simple linear regression of YY on XX , what happens to the slope and to R2R^2 when you rescale XX ?