-
Notifications
You must be signed in to change notification settings - Fork 0
/
wilcox.py
37 lines (34 loc) · 1.29 KB
/
wilcox.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
from scipy.stats import mannwhitneyu
import json
with open("score_first.json", 'r') as first:
fileData = first.read()
first_data = json.loads(fileData)
with open("score_second.json", 'r') as second:
fileData2 = second.read()
second_data = json.loads(fileData2)
res = mannwhitneyu(first_data, second_data)
print("Wilcox score result", res)
with open("score_first_won.json", 'r') as first:
fileData = first.read()
first_data = json.loads(fileData)
with open("score_second_won.json", 'r') as second:
fileData2 = second.read()
second_data = json.loads(fileData2)
res = mannwhitneyu(first_data, second_data)
print("Wilcox win result", res)
with open("score_diff_1.json", 'r') as first:
fileData = first.read()
first_data = json.loads(fileData)
with open("score_diff_2.json", 'r') as second:
fileData2 = second.read()
second_data = json.loads(fileData2)
res = mannwhitneyu(first_data, second_data)
print("Wilcox scorediff result", res)
with open("score_sample_2.json", 'r') as first:
fileData = first.read()
first_data = json.loads(fileData)
with open("score_sample_2.json", 'r') as second:
fileData2 = second.read()
second_data = json.loads(fileData2)
res = mannwhitneyu(first_data, second_data)
print("Wilcox scoresample result", res)