The CORR Procedure

Kendall’s Tau-b Correlation Coefficient

Kendall’s tau-b is a nonparametric measure of association based on the number of concordances and discordances in paired observations. Concordance occurs when paired observations vary together, and discordance occurs when paired observations vary differently. The formula for Kendall’s tau-b is

tau equals StartFraction sigma-summation Underscript i less-than j Endscripts left-parenthesis normal s normal g normal n left-parenthesis x Subscript i Baseline minus x Subscript j Baseline right-parenthesis normal s normal g normal n left-parenthesis y Subscript i Baseline minus y Subscript j Baseline right-parenthesis right-parenthesis Over StartRoot left-parenthesis upper T 0 minus upper T 1 right-parenthesis left-parenthesis upper T 0 minus upper T 2 right-parenthesis EndRoot EndFraction

where upper T 0 equals n left-parenthesis n minus 1 right-parenthesis slash 2, upper T 1 equals sigma-summation Underscript k Endscripts t Subscript k Baseline left-parenthesis t Subscript k Baseline minus 1 right-parenthesis slash 2, and upper T 2 equals sigma-summation Underscript l Endscripts u Subscript l Baseline left-parenthesis u Subscript l Baseline minus 1 right-parenthesis slash 2. The t Subscript k is the number of tied x values in the kth group of tied x values, u Subscript l is the number of tied y values in the lth group of tied y values, n is the number of observations, and normal s normal g normal n left-parenthesis z right-parenthesis is defined as

normal s normal g normal n left-parenthesis z right-parenthesis equals StartLayout Enlarged left-brace 1st Row 1st Column 1 2nd Column normal i normal f z greater-than 0 2nd Row 1st Column 0 2nd Column normal i normal f z equals 0 3rd Row 1st Column negative 1 2nd Column normal i normal f z less-than 0 EndLayout

PROC CORR computes Kendall’s tau-b by ranking the data and using a method similar to Knight (1966). The data are double sorted by ranking observations according to values of the first variable and reranking the observations according to values of the second variable. PROC CORR computes Kendall’s tau-b from the number of interchanges of the first variable and corrects for tied pairs (pairs of observations with equal values of X or equal values of Y).

Probability Values

Probability values for Kendall’s tau-b are computed by treating

StartFraction s Over StartRoot upper V left-parenthesis s right-parenthesis EndRoot EndFraction

as coming from a standard normal distribution where

s equals sigma-summation Underscript i less-than j Endscripts left-parenthesis normal s normal g normal n left-parenthesis x Subscript i Baseline minus x Subscript j Baseline right-parenthesis normal s normal g normal n left-parenthesis y Subscript i Baseline minus y Subscript j Baseline right-parenthesis right-parenthesis

and upper V left-parenthesis s right-parenthesis, the variance of s, is computed as

upper V left-parenthesis s right-parenthesis equals StartFraction v 0 minus v Subscript t Baseline minus v Subscript u Baseline Over 18 EndFraction plus StartFraction v 1 Over 2 n left-parenthesis n minus 1 right-parenthesis EndFraction plus StartFraction v 2 Over 9 n left-parenthesis n minus 1 right-parenthesis left-parenthesis n minus 2 right-parenthesis EndFraction

where

v 0 equals n left-parenthesis n minus 1 right-parenthesis left-parenthesis 2 n plus 5 right-parenthesis

v Subscript t Baseline equals sigma-summation Underscript k Endscripts t Subscript k Baseline left-parenthesis t Subscript k Baseline minus 1 right-parenthesis left-parenthesis 2 t Subscript k Baseline plus 5 right-parenthesis

v Subscript u Baseline equals sigma-summation Underscript l Endscripts u Subscript l Baseline left-parenthesis u Subscript l Baseline minus 1 right-parenthesis left-parenthesis 2 u Subscript l Baseline plus 5 right-parenthesis

v 1 equals left-parenthesis sigma-summation Underscript k Endscripts t Subscript k Baseline left-parenthesis t Subscript k Baseline minus 1 right-parenthesis right-parenthesis left-parenthesis sigma-summation u Subscript i Baseline left-parenthesis u Subscript l Baseline minus 1 right-parenthesis right-parenthesis

v 2 equals left-parenthesis sigma-summation Underscript l Endscripts t Subscript i Baseline left-parenthesis t Subscript k Baseline minus 1 right-parenthesis left-parenthesis t Subscript k Baseline minus 2 right-parenthesis right-parenthesis left-parenthesis sigma-summation u Subscript l Baseline left-parenthesis u Subscript l Baseline minus 1 right-parenthesis left-parenthesis u Subscript l Baseline minus 2 right-parenthesis right-parenthesis

The sums are over tied groups of values where t Subscript i is the number of tied x values and u Subscript i is the number of tied y values (Noether 1967). The sampling distribution of Kendall’s partial tau-b is unknown; therefore, the probability values are not available.

Last updated: April 10, 2023