https://docs.scipy.org/doc/scipy-0.18.0/reference/ (参考链接)
Python 中常用的统计工具有 Numpy, Pandas, PyMC, StatsModels...Scipy 中的子库 scipy.stats 中包含很多统计上的方法。...:
import scipy.stats.stats as st
print('mode, ', st.mode(heights)) # 众数及其出现次数
print('skewness, ',...1.58673896 2.17838223 2.7700255 ]
figure = pyplot.figure(1) # 创建图表1
pyplot.show()
# 归一化直方图(用出现频率代替次数..., 'b-')
pyplot.plot(x, n1.pdf(x), 'g-')
pyplot.plot(x, n2.pdf(x), 'r-')
pyplot.show()
# 独立双样本 t 检验的目的在于判断两组样本之间是否有显著差异