statsmodels.stats.contingency_tables.Table.test_nominal_association
-
Table.test_nominal_association()[source]
评估名义因素的独立性。
使用卡方检验评估行和列之间的独立性。行和列被视为名义(无序)分类变量。
- Returns:
A bunch containing the following attributes:
- statistic
float 卡方检验统计量。
- df
int 参考分布的自由度
- pvalue
float 测试的p值。
Last update:
Oct 16, 2024