Skip to content

Commit 9e6167b

Browse files
committed
hide short plot code cell + grammatical fix
1 parent 8944da3 commit 9e6167b

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

examples/generalized_linear_models/GLM-simpsons-paradox.ipynb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1399,7 +1399,11 @@
13991399
{
14001400
"cell_type": "code",
14011401
"execution_count": 22,
1402-
"metadata": {},
1402+
"metadata": {
1403+
"tags": [
1404+
"hide-input"
1405+
]
1406+
},
14031407
"outputs": [
14041408
{
14051409
"data": {
@@ -2013,7 +2017,7 @@
20132017
"cell_type": "markdown",
20142018
"metadata": {},
20152019
"source": [
2016-
"The panel on the right shows the posterior group level posterior of the slope and intercept parameters as a contour plot. We can also just plot the marginal distribution below to see how much belief we have in the slope being less than zero."
2020+
"The panel on the right shows the group level posterior of the slope and intercept parameters as a contour plot. We can also just plot the marginal distribution below to see how much belief we have in the slope being less than zero."
20172021
]
20182022
},
20192023
{

examples/generalized_linear_models/GLM-simpsons-paradox.myst.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,8 @@ plot(idata2);
420420
In contrast to Model 1, when we consider groups we can see that now the evidence points toward _negative_ relationships between $x$ and $y$.
421421

422422
```{code-cell} ipython3
423+
:tags: [hide-input]
424+
423425
ax = az.plot_forest(idata2.posterior["β1"], combined=True, figsize=(12, 4))
424426
ax[0].set(
425427
title="Model 2 suggests negative slopes for each group", xlabel=r"$\beta_1$", ylabel="Group"
@@ -577,7 +579,7 @@ sns.kdeplot(
577579
ax[2].set(xlim=[-2, 1], ylim=[-5, 5]);
578580
```
579581

580-
The panel on the right shows the posterior group level posterior of the slope and intercept parameters as a contour plot. We can also just plot the marginal distribution below to see how much belief we have in the slope being less than zero.
582+
The panel on the right shows the group level posterior of the slope and intercept parameters as a contour plot. We can also just plot the marginal distribution below to see how much belief we have in the slope being less than zero.
581583

582584
```{code-cell} ipython3
583585
:tags: [hide-input]

0 commit comments

Comments
 (0)