Explain the differences between Pearson, Spearman, and Kendall tau correlation coefficients and when to use each
Role: Data Scientist
Category: Statistics & Math
Difficulty: medium
Interview Round: Other
Explain the differences between the Pearson, Spearman, and Kendall tau correlation coefficients. When would you use each one?
```hint Start from the inputs
Ask what each coefficient is computed from: the raw values, their ranks, or pairs of observations. That decides what kind of relationship it can see.
```
```hint Stress-test them
Picture one extreme outlier, or a relationship that curves but always rises. Which coefficients change and which stay put?
```
### What a Strong Answer Covers
- What each coefficient is computed from and whether it measures linear or monotonic association
- How outliers, skewed distributions, and curved but monotonic relationships affect each one
- How ties and small samples are handled, and why that can favor Kendall
- Clear guidance on which coefficient fits which kind of data, including ordinal data
- The limits all three share: blindness to non-monotonic dependence, and no claim about independence or causation
### Follow-up Questions
- On the same data, Spearman's rho is 0.9 and Kendall's tau is 0.75. Do the two measures disagree?
- How would you build a confidence interval or a significance test for each coefficient?
- A scatter plot shows a clear U shape, yet all three coefficients are near zero. What would you use instead?
- Every pairwise Pearson correlation among your regression features is below 0.5, but one feature has a very high variance inflation factor. How can that happen?
Overview: Compares the Pearson, Spearman, and Kendall tau correlation coefficients and asks when each one is the right choice. It tests whether you know what each is computed from and how outliers, ties, small samples, and curved but monotonic relationships change the result.