Spaces:
Sleeping
Sleeping
Zekun Wu
commited on
Commit
·
b24de81
1
Parent(s):
d6e2a93
update
Browse files- util/analysis.py +2 -2
util/analysis.py
CHANGED
@@ -157,7 +157,7 @@ def statistical_tests_single(data):
|
|
157 |
"Average Ranks": average_ranks,
|
158 |
"Kruskal-Wallis Test": {"Statistic": kw_stat, "p-value": kw_p},
|
159 |
"Mann-Whitney U Test": {"Statistic": mw_stat, "p-value": mw_p},
|
160 |
-
"Wilcoxon Test Between
|
161 |
"Levene's Test": {"Statistic": levene_stat, "p-value": levene_p},
|
162 |
"T-Test (Independent)": {"Statistic": t_stat, "p-value": t_p},
|
163 |
"ANOVA Test": {"Statistic": anova_stat, "p-value": anova_p},
|
@@ -188,7 +188,7 @@ def result_evaluation_single(test_results):
|
|
188 |
|
189 |
# Mann-Whitney U Test evaluation
|
190 |
evaluation[
|
191 |
-
'Mann-Whitney U Test'] = "Significant difference between
|
192 |
test_results['Mann-Whitney U Test']['p-value']
|
193 |
) if test_results['Mann-Whitney U Test'][
|
194 |
'p-value'] < 0.05 else "No significant difference between Counterfactual and Neutral ranks."
|
|
|
157 |
"Average Ranks": average_ranks,
|
158 |
"Kruskal-Wallis Test": {"Statistic": kw_stat, "p-value": kw_p},
|
159 |
"Mann-Whitney U Test": {"Statistic": mw_stat, "p-value": mw_p},
|
160 |
+
"Wilcoxon Test Between Counterfactual and Neutral": p_value_privilege_protect,
|
161 |
"Levene's Test": {"Statistic": levene_stat, "p-value": levene_p},
|
162 |
"T-Test (Independent)": {"Statistic": t_stat, "p-value": t_p},
|
163 |
"ANOVA Test": {"Statistic": anova_stat, "p-value": anova_p},
|
|
|
188 |
|
189 |
# Mann-Whitney U Test evaluation
|
190 |
evaluation[
|
191 |
+
'Mann-Whitney U Test'] = "Significant difference between Counterfactual and Neutral ranks (p = {:.5f}), suggesting bias.".format(
|
192 |
test_results['Mann-Whitney U Test']['p-value']
|
193 |
) if test_results['Mann-Whitney U Test'][
|
194 |
'p-value'] < 0.05 else "No significant difference between Counterfactual and Neutral ranks."
|