Robust Correlation (Spearman, Kendall, and Biweight)

Statistics
Introduced by
Spearman rank, Kendall tau; biweight from Wilcox / Shevlyakov & Oja robust statistics tradition
Year
2012
Type
Robust correlation measures

What does it do?

Robust correlation refers to association measures that are less sensitive to outliers than Pearson's coefficient: Spearman's rank correlation, Kendall's tau, and the biweight midcorrelation.

Spearman and Kendall work on ranks, while the biweight gives less weight to observations far from the median. The approach is discussed in the robust-statistics literature by Wilcox (2012) and Shevlyakov & Oja (2016).

The intuition behind the method

Pearson's correlation is computed from raw values, so a single extreme point can change it substantially. Robust correlation limits this in two ways. Spearman and Kendall replace the values with their ordering, so an extreme observation counts only as the largest or smallest rank rather than by its distance from the other points. The biweight midcorrelation keeps the values but centres them on the median and applies a smoothly declining weight to points far from it, so distant points contribute little without being discarded. The estimate therefore describes the bulk of the data more than a few anomalous points.

History

This family combines two rank-based measures, Spearman's rank correlation and Kendall's tau, with the biweight midcorrelation. The first two are long-standing alternatives to Pearson's coefficient and predate the robust-statistics literature. Wilcox (2012) and Shevlyakov & Oja (2016) are textbooks covering robust estimation and robust correlation; they are cited here as references for the robust approach, not as the origin of these measures. The exact origin and dating of the biweight midcorrelation are not verified in this page.

When to use it

Choose robust correlation when you need the strength of association between two continuous or ordinal variables and suspect outliers or heavy tails. Spearman and Kendall suit data where the order of values carries the information, and they are the better choice for monotone but curved relationships, since the biweight estimates linear association. Robust correlation also assumes the dependence is roughly linear when the biweight is used. Spearman and Kendall do not give a slope or a linear effect size, so use a regression model when the question concerns the change in one variable per unit change in another. Kendall is generally preferred when there are few tied values. The biweight midcorrelation is the more resistant option when outliers make up a large share of the data. The registry lists 20 observations as a minimum for this method. This is a conventional guideline rather than a theoretically established cut-off, and precision falls as the sample gets smaller, so check the estimate by resampling or a permutation test.

Limitations and considerations

  • Rank measures discard magnitude: Spearman and Kendall use only the order of the values, so the size of the gaps between observations is lost and they cannot provide a slope or a linear effect size.
  • Small samples: with few observations the coefficients are less precise. The registry lists 20 as a minimum, which is a conventional guideline, and a permutation-based test is a suitable check for small samples.
  • Linearity requirement for the biweight: robustifying a correlation is meaningful only when the dependence is roughly linear. The biweight estimates linear association from resistant weights, so for monotone but curved relationships prefer Spearman or Kendall.
  • Limits of resistance: when a large share of the observations is contaminated, even rank-based and median-centred estimates can be pulled toward the contaminated points, and no single coefficient protects fully against that.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Resistance to outliers: a rank-based coefficient counts an extreme value only as the largest or smallest rank, and the biweight gives distant points little weight, so a few extreme points do not dominate the result.
  • No normality requirement: the coefficients do not assume normally distributed variables, and the rank-based versions apply to ordinal data.
  • Monotone association: Spearman and Kendall measure the strength of a consistently increasing or decreasing association, including curved but monotone patterns.

Applications

  • Measuring the association between two variables when the data contain outliers or are skewed.
  • Assessing monotone relationships between ordinal survey items or other ranked variables.
  • Screening pairwise associations in noisy or contaminated data before fitting a regression model.

How it works

How it works

1

Spearman's rank correlation replaces each value with its rank and computes the correlation of those ranks; for untied data it reduces to 1 minus six times the sum of squared rank differences divided by n(n²−1). It captures any monotone relationship between the two variables, not just a strictly linear one.

Formula
\rho_{S} = 1 - \frac{6\sum d_i^2}{n(n^2-1)}
2

Kendall's tau is the number of concordant pairs minus the number of discordant pairs, divided by the total number of pairs. It can be read as the difference between the probability that a random pair is ordered the same way on both variables and the probability that it is ordered in opposite ways. This division by the total number of pairs holds for untied data; when ties are present, the tie-adjusted version (tau-b) should be used, which most software reports. The biweight midcorrelation centres each variable on its median and multiplies the deviations by weights that decline smoothly to zero for points far from the centre, so outliers are down-weighted rather than removed. The exact weight function and scale constant are implementation-specific and should be checked in the software used. The raw form is not confined to the interval [−1, +1]; the normalised form is the one bounded in that range, so confirm which form the software reports.

Formula
\tau = \frac{C - D}{\binom{n}{2}}, \quad r_{bicor} = \frac{\sum w_i^x w_i^y (x_i-\tilde{x})(y_i-\tilde{y})}{\sqrt{\sum (w_i^x)^2 (x_i-\tilde{x})^2}\,\sqrt{\sum (w_i^y)^2 (y_i-\tilde{y})^2}}

Common pitfalls

  • Reading Spearman or Kendall as a linear effect: they describe monotone association, not how much one variable changes per unit change in the other.
  • Relying on rank measures when outliers are numerous: if contamination is substantial, consider the biweight midcorrelation, and check the weight constant and scale estimate used by the software, since the page's formula does not define them.
  • Interpreting a small difference between coefficients as meaningful when the sample is small; with few observations the estimates are unstable.
  • Ignoring ties: many tied values change the attainable values of Kendall's tau, so a tie-adjusted version should be used and reported.

Frequently asked questions

What is the difference between Spearman and Kendall?

Both are rank-based. Spearman's coefficient is the correlation of the ranks of the two variables. Kendall's tau is the number of concordant pairs minus the number of discordant pairs, divided by the total number of pairs, and it reflects the difference between the probability that a random pair is ordered the same way and the probability that it is ordered in opposite ways. Kendall is commonly preferred when there are few tied values, since many ties affect it more strongly.

When should I use the biweight midcorrelation instead of Spearman or Kendall?

When outliers make up a large share of the data, even rank correlations can be distorted, because the rank order itself can be shaped by the contaminated points. The biweight midcorrelation down-weights points far from the median and is the most resistant choice in this family for that situation. It assumes roughly linear dependence, so it is not suited to monotone but curved relationships. Its weight constant and scale estimate should be checked in the software used.

How is robust correlation different from Pearson correlation?

Pearson's coefficient measures linear association, and a single extreme value can pull it far from the overall pattern. Robust correlations use ranks or down-weighting so that outliers and non-normal, heavy-tailed data have much less influence. Rank-based measures capture monotone rather than strictly linear association, while the biweight remains a linear measure.

What sample size do I need?

The registry lists 20 observations as a minimum for this method. This is a conventional guideline rather than a theoretically established cut-off. With fewer observations the coefficients are less precise, so check the result with a permutation-based test of association.

Related methods

Sources

  1. Wilcox, R. R. (2012). Introduction to Robust Estimation and Hypothesis Testing. Academic Press.

    ISBN: 978-0123869838
  2. Shevlyakov, G. & Oja, H. (2016). Robust Correlation: Theory and Applications. Wiley.

    ISBN: 978-1118493458