Correlation interview question

StatisticsCorrelationNonparametric Testseasy

A product team wants to correlate customers' satisfaction rating (1–5 stars) with their number of support contacts last quarter. What are the requirements for using Spearman's rank correlation here?

  1. APaired observations from independent customers, both variables at least ordinal and a monotonic relationship; because ρ only uses the ranks, normality and linearity are not needed.
  2. BBoth variables on an interval or ratio scale, a linear relationship and bivariate normality, because Spearman's ρ is Pearson's r computed on the z-scored raw values of both variables.
  3. CBoth variables at least ordinal and no tied values at all, because ranks must be unique; a 1–5 star rating has so many ties that Spearman's ρ cannot be computed on it.
  4. DTwo independent samples, possibly of different sizes, and a linear relationship, because Spearman's ρ compares the rank distributions of two separate groups like a Mann–Whitney test.
Show the answer and explanation

Correct answer: A, Paired observations from independent customers, both variables at least ordinal and a monotonic relationship; because ρ only uses the ranks, normality and linearity are not needed.

Explanation Correlation

Spearman's ρ is Pearson's correlation computed on the ranks of the two variables. Because only the order of the values matters, its requirements are light:

  1. Paired observations: each customer contributes one (rating, contacts) pair.
  2. At least ordinal data on both variables: star ratings qualify, and so do counts and continuous values.
  3. A monotonic relationship: y tends to move in one direction as x increases, not necessarily along a straight line.
  4. Independent pairs: one row per customer, no repeated measurements of the same person.

No normality, no linearity and no equal-interval scale are needed. Ties are allowed: tied values receive the average of their ranks (Kendall's τ-b is a good alternative when ties are very frequent).

Pearson rSpearman ρKendall τ
Level of measurementinterval / ratioordinal or higherordinal or higher
Relationship capturedlinearmonotonicmonotonic
Outlierssensitiverobustrobust
Normalityonly for its classic testnot needednot needed

Why the distractors fail: interval data, linearity and bivariate normality are Pearson's conditions, and Spearman is Pearson on ranks, not on z-scores (z-scoring does not change Pearson at all). Ties do not block Spearman. Comparing two independent groups by ranks is what the Mann–Whitney U test does; a correlation always needs paired data.

Interview tip: answer with the checklist "paired, ordinal or higher, monotonic, independent pairs" and add that a scatter plot is the first check for monotonicity.

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. Crashes on an inference cluster are modelled as a Poisson process, so the 50 observed times between crashes are i.i.d. exponential with rate λ. Their mean is…
  2. An A/B test of a new recommendation widget gives a two-sided p = 0.03 (z ≈ 2.17). Suppose the true effect exactly equals the observed estimate, and you rerun…
  3. A streaming service checks how well a user's recommendation list matches their taste. The user's viewing history p splits drama / comedy / documentary as 0.5…
  4. Two trained fraud models are scored on the same 5,000-transaction test set: AUC 0.912 for the gradient-boosted model and 0.904 for the logistic model. You…
  5. A bank's prior for the mean monthly card spend μ of a new customer segment, based on similar segments, is μ ~ N(400, 20²) €. A pilot with 64 customers gives a…