统计学基础4-卡方分布与方差分析
卡方分布
- 定义
- 概率密度函数
卡方检验
python代码
import numpy as np
from scipy.stats import chisquare
c1 = np.array([[0.1, 1.1], [6.8, 7.1], [-3.5, -4.1], [2.0, 2.7], [4.1, 2.8],
[3.1, 5.0], [-0.8, -1.3], [0.9, 1.2], [5.0, 6.4], [3.9, 4.0]])
k = chisquare(c1)
print(k)
参考文献
https://www.deeplearn.me/1446.html
https://blog.****.net/jinxiaonian11/article/details/78617936
https://en.wikipedia.org/wiki/Chi-squared_distribution