Can one variable be constant?
At least two distinct values are needed in each variable to define the coefficient.
Paste two values for each matched observation. Measure how consistently the two variables increase or decrease together.
Sort each variable separately while preserving which rows are paired. When values tie, replace them with the mean of their occupied rank positions.
A positive coefficient means higher ranks in one variable tend to appear with higher ranks in the other. This detects monotone association even when the relationship curves.
At least two distinct values are needed in each variable to define the coefficient.
The result gives the observed correlation. Different significance approaches apply to small samples and ties.