Skip to content

Commit 69262bb

Browse files
Fix reject H0 condition in MMD_simple.ipynb
1 parent 45b3da5 commit 69262bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/source/examples/data_drift/MMD_simple.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@
306306
],
307307
"source": [
308308
"print(f\"MMD statistic={round(mmd.distance, 3)}, p-value={round(p_value, 3)}\")\n",
309-
"if p_value < alpha:\n",
309+
"if p_value <= alpha:\n",
310310
" print(\"Drift detected. We can reject H0, so both samples come from different distributions.\")\n",
311311
"else:\n",
312312
" print(\"No drift detected. We fail to reject H0, so both samples come from the same distribution.\")"

0 commit comments

Comments
 (0)