如何在Python中执行Dunn's检验?
Dunn's test is a statistical technique for comparing the means of several samples. When it's required to compare the means of numerous samples to identify which ones are noticeably different from one another, Dunn's test is frequently employed in a range of disciplines, including biology, psychology, and education. We shall examine Dunn's test in−depth in this article, along with a python implementation.
Dunn's Test是什么?
Dunn的检验是一种用于比较多个样本均值的统计分析方法。它是一种多重比较检验方法,用于比较超过两个样本的均值,以确定哪些样本之间存在显著差异。
当正态性假设被违反时,有时会使用Dunn的非参数Kruskal−Wallis检验来比较多个样本的均值。如果样本均值之间存在显著差异,就会使用Kruskal−Wallis检验来找出这些差异。对样本的均值进行两两比较,以确定哪些样本之间存在显著差异。然后使用Dunn的检验来比较样本的均值。
在Python中进行Dunn's检验
要在Python中运行Dunn's测试,我们可以使用scikit-posthocs库的posthoc dunn()方法。
下面的代码演示了如何使用这个函数 -
语法
sp.posthoc_dunn(data, p_adjust = 'bonferroni') 登录后复制