You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/sources/CHANGELOG.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ The CHANGELOG for the current development version is available at
23
23
24
24
##### Changes
25
25
26
-
--
26
+
-`permutation_test` (`mlxtend.evaluate.permutation`) ìs corrected to give the proportion of permutations whose statistic is *at least as extreme* as the one observed. ([#721](https://github.com/rasbt/mlxtend/pull/721) via [Florian Charlier](https://github.com/DarthTrevis))
Copy file name to clipboardexpand all lines: docs/sources/user_guide/evaluate/permutation_test.ipynb
+6-6
Original file line number
Diff line number
Diff line change
@@ -43,13 +43,13 @@
43
43
"4. Divide the permuted dataset into two datasets x' and y' of size *n* and *m*, respectively\n",
44
44
"5. Compute the difference (here: mean) of sample x' and sample y' and record this difference\n",
45
45
"6. Repeat steps 3-5 until all permutations are evaluated\n",
46
-
"7. Return the p-value as the number of times the recorded differences were more extreme than the original difference from 1. and divide this number by the total number of permutations\n",
46
+
"7. Return the p-value as the number of times the recorded differences were at least as extreme as the original difference from 1. and divide this number by the total number of permutations\n",
47
47
"\n",
48
48
"Here, the p-value is defined as the probability, given the null hypothesis (no difference between the samples) is true, that we obtain results that are at least as extreme as the results we observed (i.e., the sample difference from 1.).\n",
49
49
"\n",
50
-
"More formally, we can express the computation of the p-value as follows ([2]):\n",
50
+
"More formally, we can express the computation of the p-value as follows (adapted from [2]):\n",
"where $t_0$ is the observed value of the test statistic (1. in the list above), and $t$ is the t-value, the statistic computed from the resamples (5.) $t(x'_1, x'_2, ..., x'_n, y'_1, y'_2, ..., x'_m) = |\\bar{x'} - \\bar{y'}|$, and *I* is the indicator function.\n",
0 commit comments