I compare the computeKendallTau method available for NumericalSample and the Kendalltau function available in scipy.stats.stats on the numerical sample :
RpE=NumericalSample(10,2)
RpE[0][0]=4
RpE[1][0]=10
RpE[2][0]=3
RpE[3][0]=1
RpE[4][0]=9
RpE[5][0]=2
RpE[6][0]=6
RpE[7][0]=7
RpE[8][0]=8
RpE[9][0]=5
RpE[0][1]=5
RpE[1][1]=8
RpE[2][1]=6
RpE[3][1]=2
RpE[4][1]=10
RpE[5][1]=3
RpE[6][1]=9
RpE[7][1]=4
RpE[8][1]=7
RpE[9][1]=1
Open TURNS returns me
Kendall Tau class=CorrelationMatrix dimension=2 implementation=class=MatrixImplementation name=Unnamed rows=2 columns=2 values=[1,0.418182,0.418182,1]
and the function
0.511111111111
Am I calculating the same thing ? Why is there a difference ?