Zekun Wu commited on
Commit
693b882
·
1 Parent(s): 076d436
Files changed (1) hide show
  1. util/evaluation.py +2 -2
util/evaluation.py CHANGED
@@ -25,7 +25,7 @@ def permutation_test_variance(x, y, num_permutations=10000):
25
  n_A = len(x)
26
  n_B = len(y)
27
 
28
- perm_test_stats = []
29
  for _ in range(num_permutations):
30
  np.random.shuffle(pooled_data)
31
  perm_A = pooled_data[:n_A]
@@ -44,7 +44,7 @@ def permutation_test_mean(x, y, num_permutations=10000):
44
  n_A = len(x)
45
  n_B = len(y)
46
 
47
- perm_test_stats = []
48
  for _ in range(num_permutations):
49
  np.random.shuffle(pooled_data)
50
  perm_A = pooled_data[:n_A]
 
25
  n_A = len(x)
26
  n_B = len(y)
27
 
28
+ perm_test_stats = [T_obs]
29
  for _ in range(num_permutations):
30
  np.random.shuffle(pooled_data)
31
  perm_A = pooled_data[:n_A]
 
44
  n_A = len(x)
45
  n_B = len(y)
46
 
47
+ perm_test_stats = [T_obs]
48
  for _ in range(num_permutations):
49
  np.random.shuffle(pooled_data)
50
  perm_A = pooled_data[:n_A]