Methods · Sensitivity
Spearman Rank Correlation (Spearman Rank Correlation)
A method that measures how alike two separate rankings are with a single number: plus one means perfect agreement, minus one means perfect disagreement, and zero means no relationship at all.
Base method's data type: Classical
What Is the Method?
In a decision process the same alternatives can be ranked more than once: by two different methods (TOPSIS and VIKOR, say), by two different weight sets, or at two different points in time. Spearman rank correlation compares two such rankings and compresses their similarity into a single number between minus one and plus one. Plus one shows that the two rankings are identical; zero shows no systematic relationship between them; minus one shows that one is the exact reverse of the other. The method looks only at the alternatives' rank positions, not at their underlying scores, so it can even compare rankings produced on entirely different scales. Spearman introduced it in 1904 to study the relationship between two measurements in psychology, and it has since become the standard tool for measuring agreement between two rankings in decision analysis.
The Philosophy Behind It
The idea behind this method is to compress the question "how much do two rankings say the same thing" into a single number. When a decision process tries several methods or weight sets, agreement on the same winner and the same order reassures the decision-maker; when the rankings differ, the decision cannot be made without knowing the size of that difference. Spearman correlation renders that difference measurable. Its philosophical consequence is this: the method does not decide which ranking is "correct," it only reports how far the two rankings overlap. It is a measure of agreement, not a tool for elimination or preference.
How It Works
The method proceeds through three steps.
First, the two rankings. The two rankings to be compared are placed side by side; each alternative's position (first, second, third) in each ranking is recorded.
Second, the rank differences. For every alternative, the difference between its two rank positions is taken, squared, and summed. An alternative holding the same position in both rankings contributes zero to this sum; the further apart the positions, the larger the total grows.
Third, compression into a single number. The summed squared difference is scaled according to the number of alternatives and subtracted from one. When every alternative sits in the same position in both rankings, the sum is zero and the result is one; when the rankings are exact reverses of each other, the result is minus one.
The formula behind each step is given on the DecisionMind method page; this card carries no formulas.
How to Read the Output
The result is a single number between minus one and one, and it shows only the agreement between the two rankings; it says nothing about which ranking is correct. A value close to one (0.80 or above, say) points to strong agreement: two methods or two weight sets have produced almost the same order. A value close to zero shows no systematic relationship between the two rankings. Negative values indicate a reversed relationship, where an alternative near the top of one ranking sits near the bottom of the other. The value itself is not a percentage; 0.50 does not mean "fifty per cent alike," only a moderate degree of agreement. With small numbers of alternatives (three or four, say) this figure can shift substantially from just a couple of alternatives swapping places, so a correlation computed on few alternatives is not, on its own, enough for a firm conclusion. For this reason:
"The two methods gave the same result"
should be written instead as:
"The Spearman correlation between the two methods' rankings is such-and-such; this corresponds to such-and-such a degree of similarity between perfect agreement and no relationship"
Data Type and Inputs
Spearman rank correlation works with crisp data; all it needs is two separate rankings produced over the same set of alternatives, whether these come from two different methods, two different weight sets, or two different points in time. It does not need the alternatives' own scores, only their rank positions. The two rankings being compared must cover the same set of alternatives; if an alternative appears in one ranking but not the other, the rankings must first be redone over the alternatives they share. DecisionMind holds no extension of this method; when more than two rankings must be compared at once, neighbouring tools such as Kendall's W coefficient of concordance fill that gap.
When to Use It, When Not To
Spearman correlation is exactly the right tool when the question is how alike the rankings produced by several methods, weight sets or points in time are, over the same set of alternatives. It is also used to compare every scenario of a sensitivity analysis (a weight change, a Monte Carlo run) against the baseline ranking.
The cases where it should not be used are as follows. If the only question is whether the winner (the top-ranked alternative) stays the same, Spearman correlation, which accounts for the whole ranking, carries more information than needed; a simple "is the winner the same" comparison suffices. If the two lists being compared are raw scores rather than rankings (both being numerical measurements), a direct correlation between the scores, such as Pearson's, is more informative than Spearman's. If the question is how far more than two rankings agree all at once, Spearman is limited to pairwise comparison; a separate tool is needed for agreement across several rankings.
General similarity between two rankings is being measured → Spearman Rank Correlation
Only whether the winner changes is in question → Weight Sensitivity Analysis (stability ratio)
Agreement across more than two rankings at once is in question → Kendall's W coefficient of concordance
The consistency of a pairwise comparison matrix is in question, not the similarity of rankings → GCI, HCI
Strengths
The method's greatest strength is its simplicity: a single number summarises the agreement between two rankings and is easy to explain to anyone. It does not look at the alternatives' own scoring scale, only at rank position, so it can directly compare the rankings of two very different methods, one producing scores between 0 and 1 and another using a different unit entirely. Its computational burden is very light, it can be paired with any ranking method, and it can be recalculated for every scenario inside a sensitivity analysis without difficulty.
Weaknesses
Its limitations stem from small sample size and information loss. Calculated on few alternatives (three or four, say), the figure can jump substantially from just a couple of alternatives swapping places; a single correlation value should not be over-interpreted in small samples. The method uses only rank information and ignores the size of the score gap between alternatives; a small gap between first and second looks the same in the ranking as a large one. It assumes the relationship between the two rankings is monotonic; it does not capture a complex, irregular type of relationship. Finally, a high correlation does not mean the two methods are "correct": two methods can also produce a high correlation because they share the same bias.
Common Mistakes
The most common mistake is reading the correlation value as a percentage: 0.50 means a moderate degree of agreement, not "fifty per cent the same." A second mistake is presenting a correlation computed on a small number of alternatives (three, say) as firm evidence, the way it would be treated in a large sample. A third is interpreting a high correlation between two methods' rankings as "both reached the correct result"; the correlation only shows that the two rankings resemble each other, not that either reflects the truth. A fourth mistake is directly comparing two rankings produced over different sets of alternatives (one with four, the other with five); the correlation is meaningful only over the same set of alternatives.
The governing principle is this:
Spearman correlation measures how much two rankings say the same thing; it does not say which one is correct, and that judgement must come from the data and the method themselves.
Cases
Each case opens with a decision table, describes in words what the method does to it, and shows how to read the result. The first case is the DM3 manifest's own validation example; the figures match the manifest's golden value exactly and have been recomputed and verified in Python. The remaining cases are illustrative constructions.
1. General: Comparing the rankings produced by two decision methods
Three alternatives (A1, A2, A3) have been ranked by both TOPSIS and VIKOR. Under TOPSIS the order is A1 first, A2 second, A3 third. Under VIKOR, A1 is again first, but A3 is second and A2 third.
| Alternative | TOPSIS rank | VIKOR rank |
|---|---|---|
| A1 | 1 | 1 |
| A2 | 2 | 3 |
| A3 | 3 | 2 |
The method takes the squared difference between the two rank positions for every alternative: for A1, (1-1)²=0; for A2, (2-3)²=1; for A3, (3-2)²=1; the total is 2. For three alternatives, this total is scaled by the standard constant and subtracted from one, giving a Spearman correlation of 0.5.
The result reads as follows. The two methods agree completely on the winner (A1), but have swapped second and third place. A correlation of 0.5 shows that the two rankings are neither identical nor unrelated, but carry a moderate degree of agreement. Because only three alternatives are involved, this figure is determined by a single pair of alternatives changing places; the same-sized correlation in a larger sample would count as stronger evidence.
The analyst hesitates here: with only three alternatives, how reliable this correlation of 0.5 is remains debatable. Whether the difference between A2 and A3 stems from the two methods' differing assumptions (TOPSIS's compensatory logic against VIKOR's compromise-seeking logic) or from measurement noise needs separate examination.
In the report: "The Spearman correlation between the TOPSIS and VIKOR rankings is 0.5; the two methods agree on the winner and diverge on second and third place. It should be kept in mind that this comparison is limited to three alternatives."
Source: This example is the DM3 manifest's own validation example (golden fixture); the manifest record states explicitly that these figures come from DecisionMind's own audit tool rather than from a publication, so it is presented here as an illustrative example, not a table taken from Spearman's (1904) own paper.
2. Education: The effect of two different weight sets on a scholarship ranking
A university scholarship committee has ranked five candidates on four criteria (academic achievement, income level, family circumstances, interview score). Two subgroups of the committee proposed different weight sets, and each was run separately with the same method (weighted sum). Suppose the Spearman correlation between the rankings produced by the two weight sets comes out at 0.90.
The committee hesitates here: although the correlation is high, it is not perfect; at least one pair of candidates has swapped position between the two weight sets. If the number of scholarships is limited, whether the candidate sitting exactly at the cut-off receives one depends on which weight set is adopted.
In the report: "The Spearman correlation between the rankings produced by the two weight sets is 0.90; the overall ranking largely overlaps, but one candidate at the scholarship cut-off changes position between the two weight sets."
3. Agriculture: Ranking the same farms by irrigation efficiency in two different years
An agricultural cooperative has ranked ten farms by irrigation efficiency in two separate years. Suppose the Spearman correlation between the two years' rankings comes out at 0.40, pointing to agreement below the moderate level.
The cooperative hesitates here: it is not known whether this low correlation shows that the farms' efficiency genuinely changed from year to year, or that the measurement method changed between the two years. A low correlation does not, on its own, explain the cause; it only shows how far the two rankings have drifted apart from each other.
In the report: "The Spearman correlation between the two years' irrigation-efficiency rankings is 0.40; the ranking has changed markedly from year to year, and the reason for this change (a genuine shift in efficiency, or a measurement difference) needs separate examination."
4. What Not to Do
In the TOPSIS–VIKOR example from the first case, reporting the correlation of 0.5 as "the two methods gave the same result fifty per cent of the time" is something not to be done; a correlation is not a percentage. A second error is presenting a correlation computed on just three alternatives as firm evidence, as though it came from a large sample. A third error is interpreting a high correlation between two methods' rankings as "both reached the correct result"; the correlation only shows that the two rankings resemble each other, not that either is accurate.
Sources
For the formula behind each step and the intermediate tables, see the DecisionMind method page: decisionmind.app/library/spearman-rho
Spearman, C. (1904). The proof and measurement of association between two things. American Journal of Psychology, 15(1), 72–101. DOI: 10.2307/1412159
Kendall, M. G. (1938). A new measure of rank correlation. Biometrika, 30(1–2), 81–93. DOI: 10.1093/biomet/30.1-2.81
Saltelli, A., Tarantola, S., Campolongo, F., & Ratto, M. (2002). Sensitivity Analysis in Practice: A Guide to Assessing Scientific Models. Wiley. DOI: 10.1002/0470870958