来自
http://docs.scipy.org/doc/scipy/reference/tutorial/stats.html
tt = (sm-m)/np.sqrt(sv/float(n)) # t-statistic for meanpval = stats.t.sf(np.abs(tt), n-1)*2 # two-sided pvalue = Prob(abs(t)>tt)print 't-statistic = %6.3f pvalue = %6.4f' % (tt, pval)t-statistic = 0.391 pvalue = 0.6955
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)