Skip to content

Commit 84a092e

Browse files
authored
fix typos (#138)
1 parent d453cd5 commit 84a092e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Rethinking_2/Chp_02.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@
167167
"source": [
168168
"#### Code 2.6\n",
169169
"\n",
170-
"Computing the posterior using the quadratic aproximation (quad)."
170+
"Computing the posterior using the quadratic approximation (quad)."
171171
]
172172
},
173173
{
@@ -213,7 +213,7 @@
213213
],
214214
"source": [
215215
"data = np.repeat((0, 1), (3, 6))\n",
216-
"with pm.Model() as normal_aproximation:\n",
216+
"with pm.Model() as normal_approximation:\n",
217217
" p = pm.Uniform(\"p\", 0, 1) # uniform priors\n",
218218
" w = pm.Binomial(\"w\", n=len(data), p=p, observed=data.sum()) # binomial likelihood\n",
219219
" mean_q = pm.find_MAP()\n",
@@ -347,7 +347,7 @@
347347
"\n",
348348
"for idx, ps in enumerate(zip(w, n)):\n",
349349
" data = np.repeat((0, 1), (ps[1] - ps[0], ps[0]))\n",
350-
" with pm.Model() as normal_aproximation:\n",
350+
" with pm.Model() as normal_approximation:\n",
351351
" p = pm.Uniform(\"p\", 0, 1) # uniform priors\n",
352352
" w = pm.Binomial(\"w\", n=len(data), p=p, observed=data.sum()) # binomial likelihood\n",
353353
" mean_q = pm.find_MAP()\n",
@@ -472,4 +472,4 @@
472472
},
473473
"nbformat": 4,
474474
"nbformat_minor": 1
475-
}
475+
}

0 commit comments

Comments
 (0)