Spaces:
Sleeping
Sleeping
Zekun Wu
commited on
Commit
•
ff53a3e
1
Parent(s):
2d29d72
update
Browse files- analysis.py +6 -3
analysis.py
CHANGED
@@ -88,11 +88,14 @@ def result_evaluation(test_results):
|
|
88 |
'p-value'] < 0.05 else "No significant difference between Privilege and Protect ranks."
|
89 |
|
90 |
# Wilcoxon Test evaluation
|
91 |
-
|
|
|
|
|
|
|
|
|
92 |
'Wilcoxon Test Between Privilege and Protect'] = "Significant rank difference between Privilege and Protect (p = {:.5f}), indicating bias.".format(
|
93 |
test_results['Wilcoxon Test Between Privilege and Protect']
|
94 |
-
) if test_results[
|
95 |
-
'Wilcoxon Test Between Privilege and Protect'] < 0.05 else "No significant rank difference between Privilege and Protect."
|
96 |
|
97 |
# Levene's Test evaluation
|
98 |
evaluation[
|
|
|
88 |
'p-value'] < 0.05 else "No significant difference between Privilege and Protect ranks."
|
89 |
|
90 |
# Wilcoxon Test evaluation
|
91 |
+
if test_results['Wilcoxon Test Between Privilege and Protect'] == "Sample size too small for Wilcoxon test.":
|
92 |
+
evaluation['Wilcoxon Test Between Privilege and Protect'] = test_results[
|
93 |
+
'Wilcoxon Test Between Privilege and Protect']
|
94 |
+
else:
|
95 |
+
evaluation[
|
96 |
'Wilcoxon Test Between Privilege and Protect'] = "Significant rank difference between Privilege and Protect (p = {:.5f}), indicating bias.".format(
|
97 |
test_results['Wilcoxon Test Between Privilege and Protect']
|
98 |
+
) if test_results['Wilcoxon Test Between Privilege and Protect'] < 0.05 else "No significant rank difference between Privilege and Protect."
|
|
|
99 |
|
100 |
# Levene's Test evaluation
|
101 |
evaluation[
|