n-sample test for equality python
这个统计测试在 R 中看起来非常简单 > http://sphweb.bumc.bu.edu/otlt/MPH-Modules/BS/R/R6_CategoricalDataAnalysis/R6_CategoricalDataAnalysis6.html
我看了scipy,它没有提供超过2个样本测试的统计工具
我正在寻找能够进行这种高级统计测试的 python 库。
请您参考如下方法:
我假设您想要做的是对不同类别之间的比例独立性进行卡方检验(参见 https://en.wikipedia.org/wiki/Pearson%27s_chi-squared_test#Testing_for_statistical_independence )。您可以在 Python 中使用函数 scipy.stats.chi2_contingency 执行此操作(有关文档,请参阅 https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.chi2_contingency.html)。
