def test_kendalltau(self): "Testing kendalltau" data1 = [self.L, self.A] data2 = [self.M, self.B] results = (0.86313455447495724, 1.0335817091423592e-007) i = 0 for d in data1: self.assertEqual(stats.kendalltau(d, data2[i])[i], results[i]) i += 1
def test_kendalltau(self): "Testing kendalltau" data1 = [ self.L, self.A ] data2 = [ self.M, self.B ] results = (0.86313455447495724, 1.0335817091423592e-007) i = 0 for d in data1: self.assertEqual( stats.kendalltau( d, data2[i] )[i], results[i] ) i += 1
#stats.paired(l,m) #stats.paired(a,b) print() print() print('pearsonr:') print(stats.pearsonr(l, m)) print(stats.pearsonr(a, b)) print('spearmanr:') print(stats.spearmanr(l, m)) print(stats.spearmanr(a, b)) print('pointbiserialr:') print(stats.pointbiserialr(pb, l)) print(stats.pointbiserialr(apb, a)) print('kendalltau:') print(stats.kendalltau(l, m)) print(stats.kendalltau(a, b)) print('linregress:') print(stats.linregress(l, m)) print(stats.linregress(a, b)) print('\nINFERENTIAL') print('ttest_1samp:') print(stats.ttest_1samp(l, 12)) print(stats.ttest_1samp(a, 12)) print('ttest_ind:') print(stats.ttest_ind(l, m)) print(stats.ttest_ind(a, b)) print('ttest_rel:') print(stats.ttest_rel(l, m)) print(stats.ttest_rel(a, b))
def evaluate( self, *args, **params): return _stats.kendalltau(*args, **params)
#stats.paired(l,m) #stats.paired(a,b) print print print 'pearsonr:' print stats.pearsonr(l,m) print stats.pearsonr(a,b) print 'spearmanr:' print stats.spearmanr(l,m) print stats.spearmanr(a,b) print 'pointbiserialr:' print stats.pointbiserialr(pb,l) print stats.pointbiserialr(apb,a) print 'kendalltau:' print stats.kendalltau(l,m) print stats.kendalltau(a,b) print 'linregress:' print stats.linregress(l,m) print stats.linregress(a,b) print '\nINFERENTIAL' print 'ttest_1samp:' print stats.ttest_1samp(l,12) print stats.ttest_1samp(a,12) print 'ttest_ind:' print stats.ttest_ind(l,m) print stats.ttest_ind(a,b) print 'ttest_rel:' print stats.ttest_rel(l,m) print stats.ttest_rel(a,b)
#stats.paired(l,m) #stats.paired(a,b) print print print 'pearsonr:' print stats.pearsonr(l, m) print stats.pearsonr(a, b) print 'spearmanr:' print stats.spearmanr(l, m) print stats.spearmanr(a, b) print 'pointbiserialr:' print stats.pointbiserialr(pb, l) print stats.pointbiserialr(apb, a) print 'kendalltau:' print stats.kendalltau(l, m) print stats.kendalltau(a, b) print 'linregress:' print stats.linregress(l, m) print stats.linregress(a, b) print '\nINFERENTIAL' print 'ttest_1samp:' print stats.ttest_1samp(l, 12) print stats.ttest_1samp(a, 12) print 'ttest_ind:' print stats.ttest_ind(l, m) print stats.ttest_ind(a, b) print 'ttest_rel:' print stats.ttest_rel(l, m) print stats.ttest_rel(a, b)