Python 推断基础
Paul Savala
Assistant Professor of Mathematics

比较两组配对观测的中位数

很可能不服从正态分布
s, p_value, m, table = stats.median_test(df['thew_score'], df['arw_score'])
print(p_value < 0.05)
TRUE

tau, p_value = stats.kendalltau( df['thew_rank'], df['arw_rank'])print(tau, p_value < 0.05)
0.651, TRUE
Python 推断基础