def test_ks_2samp(self): "Testing ks_2samp" data1 = [self.L, self.A] data2 = [self.M, self.B] results = (-0.20000000000000007, 0.77095294467662123) i = 0 for d in data1: self.assertEqual(stats.ks_2samp(d, data2[i])[i], results[i]) i += 1
def test_ks_2samp(self): "Testing ks_2samp" data1 = [ self.L, self.A ] data2 = [ self.M, self.B ] results = (-0.20000000000000007, 0.77095294467662123) i = 0 for d in data1: self.assertEqual( stats.ks_2samp( d, data2[i] )[i], results[i] ) i += 1
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)) print('chisquare:') print(stats.chisquare(l)) print(stats.chisquare(a)) print('ks_2samp:') print(stats.ks_2samp(l, m)) print(stats.ks_2samp(a, b)) print('mannwhitneyu:') print(stats.mannwhitneyu(l, m)) print(stats.mannwhitneyu(a, b)) print('ranksums:') print(stats.ranksums(l, m)) print(stats.ranksums(a, b)) print('wilcoxont:') print(stats.wilcoxont(l, m)) print(stats.wilcoxont(a, b)) print('kruskalwallish:') print(stats.kruskalwallish(l, m, l)) print(len(l), len(m)) print(stats.kruskalwallish(a, b, a))
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) print 'chisquare:' print stats.chisquare(l) print stats.chisquare(a) print 'ks_2samp:' print stats.ks_2samp(l,m) print stats.ks_2samp(a,b) print 'mannwhitneyu:' print stats.mannwhitneyu(l,m) print stats.mannwhitneyu(a,b) print 'ranksums:' print stats.ranksums(l,m) print stats.ranksums(a,b) print 'wilcoxont:' print stats.wilcoxont(l,m) print stats.wilcoxont(a,b) print 'kruskalwallish:' print stats.kruskalwallish(l,m,l) print len(l), len(m) print stats.kruskalwallish(a,b,a)
def evaluate( self, *args, **params): return _stats.ks_2samp(*args, **params)
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) print 'chisquare:' print stats.chisquare(l) print stats.chisquare(a) print 'ks_2samp:' print stats.ks_2samp(l, m) print stats.ks_2samp(a, b) print 'mannwhitneyu:' print stats.mannwhitneyu(l, m) print stats.mannwhitneyu(a, b) print 'ranksums:' print stats.ranksums(l, m) print stats.ranksums(a, b) print 'wilcoxont:' print stats.wilcoxont(l, m) print stats.wilcoxont(a, b) print 'kruskalwallish:' print stats.kruskalwallish(l, m, l) print len(l), len(m) print stats.kruskalwallish(a, b, a)