Correlation interview question

StatisticsCorrelationNonparametric Testsbasic

What does Spearman's rank correlation coefficient measure?

  1. APearson's r computed on the ranks, so it measures how well a monotonic function describes the relationship.
  2. BPearson's r computed on standardized z-scores, so it measures linear association in a way that is robust to outliers.
  3. CThe proportion of concordant pairs of observations minus the proportion of discordant pairs across the two variables.
  4. DOnly straight-line association, so a perfectly monotonic but curved pattern gets a value below 1.
Show the answer and explanation

Correct answer: A, Pearson's r computed on the ranks, so it measures how well a monotonic function describes the relationship.

Explanation Correlation

Spearman's ρ replaces each variable by its ranks and then computes Pearson's r on those ranks. It therefore measures monotonic association: ρ = 1 whenever y strictly increases with x, even along a curve such as y = x³ or y = log x.

Why the other descriptions are wrong:

  • Standardizing to z-scores does not change Pearson's r at all, and it does not reduce the influence of outliers.
  • Concordant minus discordant pairs is the definition of Kendall's τ, a different rank correlation.
  • A perfectly monotonic curve has perfectly ordered ranks, so Spearman gives exactly 1 (or −1), not a value below 1.

Without ties there is a shortcut formula: ρ = 1 − 6Σd² / (n(n² − 1)), where d is the rank difference for each observation.

Interview tip: contrast it in one line: "Pearson = linear, on raw values; Spearman = monotonic, on ranks."

Practice it as a quiz

Answer this and the other free questions with instant grading, streaks and weak-topic tracking, or unlock all 4,000 questions.

More Statistics questions

  1. Which set of conditions is the standard list of assumptions behind classical linear regression inference?
  2. In information theory, what does the Shannon entropy H(X) of a discrete random variable measure?
  3. What is the difference between descriptive and inferential statistics?
  4. To stress-test a ratio metric, a data scientist simulates 10,000 draws of the ratio of two independent standard normal noise terms (a standard Cauchy…
  5. before and after hold the weekly spend of the same 40 customers before and after a loyalty-tier change, in the same customer order. What does this ttest_ind…