Python:是否可以只输出 scipy.stats.chisquare 的 p 值
Python: Is it possible to just output the p-value from scipy.stats.chisquare
有没有办法选择什么值 scipy.stats.chisquare
returns?
输入:chisquare([16, 18, 16, 14, 12, 12])
输出:(2.0, 0.84914503608460956)
我只想输出 p 值(第二个数字)而不是 chisq。统计,有什么建议吗?
看起来它从该函数返回了一个元组。
chisquare([...])[1]
应该可以解决问题...
有没有办法选择什么值 scipy.stats.chisquare
returns?
输入:chisquare([16, 18, 16, 14, 12, 12])
输出:(2.0, 0.84914503608460956)
我只想输出 p 值(第二个数字)而不是 chisq。统计,有什么建议吗?
看起来它从该函数返回了一个元组。
chisquare([...])[1]
应该可以解决问题...