Skip to content

Commit 92f1559

Browse files
committed
fixed pooled sd
1 parent 5c8c9e0 commit 92f1559

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

notebooks/03-instructor-two-group-iq.ipynb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,10 @@
236236
" # Calculate the effect size and its uncertainty.\n",
237237
" diff_means = pm.Deterministic('diff_means', mu_drug - mu_placebo)\n",
238238
" pooled_sd = pm.Deterministic('pooled_sd', \n",
239-
" np.sqrt(np.power(sigma_drug, 2) + \n",
240-
" np.power(sigma_placebo, 2) / 2))\n",
239+
" np.sqrt(\n",
240+
" (np.power(sigma_drug, 2) + np.power(sigma_placebo, 2)) / 2\n",
241+
" )\n",
242+
" )\n",
241243
" effect_size = pm.Deterministic('effect_size', \n",
242244
" diff_means / pooled_sd)"
243245
]

0 commit comments

Comments
 (0)