How does a monotonic non-linear transformation of a variable affect its Pearson vs Spearman correlation?

Quick Overview

Asks how a monotonic but non-linear transformation such as a log or a square root changes the Pearson and Spearman correlations between two variables. Tests the difference between linear and rank-based association, invariance to transformations, and how to read a gap between the two coefficients.

How does a monotonic non-linear transformation of a variable affect its Pearson vs Spearman correlation?

Role: Data Scientist

Category: Statistics & Math

Difficulty: easy

Interview Round: Other

How does applying a monotonic but non-linear transformation (such as a log, a square root or a cube) to one variable affect its Pearson correlation and its Spearman correlation with another variable? ```hint Look at what each coefficient is computed from Write out what information from the data each coefficient is calculated from. ``` ### What a Strong Answer Covers - Effect on Spearman, and the reason for it - Effect on Pearson, including its direction - Edge cases where the rank argument breaks down - What a gap between the two coefficients says about the relationship ### Follow-up Questions - What happens to both coefficients if the transformation is decreasing, such as taking the reciprocal of a positive variable? - You cap a variable at its 95th percentile. Is its Spearman correlation still unchanged? - Which transformations leave Pearson correlation unchanged? - Spearman is 0.9 and Pearson is 0.4. What would you look at next, and which would you report?

Overview: Asks how a monotonic but non-linear transformation such as a log or a square root changes the Pearson and Spearman correlations between two variables. Tests the difference between linear and rank-based association, invariance to transformations, and how to read a gap between the two coefficients.

General logo
General
Nov 24, 2026
easyData ScientistOtherStatistics & Math
0
0

How does applying a monotonic but non-linear transformation (such as a log, a square root or a cube) to one variable affect its Pearson correlation and its Spearman correlation with another variable?

What a Strong Answer Covers Guidance

  • Effect on Spearman, and the reason for it
  • Effect on Pearson, including its direction
  • Edge cases where the rank argument breaks down
  • What a gap between the two coefficients says about the relationship

Follow-up Questions Guidance

  • What happens to both coefficients if the transformation is decreasing, such as taking the reciprocal of a positive variable?
  • You cap a variable at its 95th percentile. Is its Spearman correlation still unchanged?
  • Which transformations leave Pearson correlation unchanged?
  • Spearman is 0.9 and Pearson is 0.4. What would you look at next, and which would you report?