Skip to content

Commit b944a08

Browse files
committed
fix admonitions + add notebook reference to LKJ notebook
1 parent 9a7729c commit b944a08

File tree

4 files changed

+26
-13
lines changed

4 files changed

+26
-13
lines changed

examples/generalized_linear_models/GLM-simpsons-paradox.ipynb

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@
372372
"cell_type": "markdown",
373373
"metadata": {},
374374
"source": [
375-
":::{info}\n",
375+
":::{note}\n",
376376
"We can also express Model 1 in Wilkinson notation as `y ~ 1 + x` which is equivalent to `y ~ x` as the intercept is included by default.\n",
377377
"\n",
378378
"* The `1` term corresponds to the intercept term $\\beta_0$.\n",
@@ -934,7 +934,7 @@
934934
"cell_type": "markdown",
935935
"metadata": {},
936936
"source": [
937-
":::{info}\n",
937+
":::{note}\n",
938938
"We can also express this Model 2 in Wilkinson notation as `y ~ g + x:g`.\n",
939939
"\n",
940940
"* The `g` term captures the group specific intercept $\\beta_0[g_i]$ parameters.\n",
@@ -1451,7 +1451,7 @@
14511451
"cell_type": "markdown",
14521452
"metadata": {},
14531453
"source": [
1454-
":::{info}\n",
1454+
":::{note}\n",
14551455
"We can also express this Model 3 in Wilkinson notation as `1 + x + (1 + x | g)`.\n",
14561456
"\n",
14571457
"* The `1` captures the global intercept, $\\mathrm{Normal}(p_{0\\mu}, p_{0\\sigma})$.\n",
@@ -1466,10 +1466,17 @@
14661466
"cell_type": "markdown",
14671467
"metadata": {},
14681468
"source": [
1469-
":::{note}\n",
1470-
"The hierarchical model we are considering contains a simplification in that the population level slope and intercept are assumed to be independent. It is possible to relax this assumption and model any correlation between these parameters by using a multivariate normal distribution.\n",
1471-
"\n",
1472-
"In one sense this move from Model 2 to Model 3 can be seen as adding parameters, and therefore increasing model complexity. However, in another sense, adding this knowledge about the nested structure of the data actually provides a constraint over parameter space.\n",
1469+
":::{seealso}\n",
1470+
"The hierarchical model we are considering contains a simplification in that the population level slope and intercept are assumed to be independent. It is possible to relax this assumption and model any correlation between these parameters by using a multivariate normal distribution. See the {ref}`lkj_prior_for_multivariate_normal` notebook for more details.\n",
1471+
":::"
1472+
]
1473+
},
1474+
{
1475+
"cell_type": "markdown",
1476+
"metadata": {},
1477+
"source": [
1478+
":::{seealso}\n",
1479+
"In one sense this move from Model 2 to Model 3 can be seen as adding parameters, and therefore increasing model complexity. However, in another sense, adding this knowledge about the nested structure of the data actually provides a constraint over parameter space. It would be possible to engage in model comparison to arbitrate between these models - see for example the {ref}`GLM-model-selection` notebook for more details.\n",
14731480
":::"
14741481
]
14751482
},

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

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ $$
119119

120120
+++
121121

122-
:::{info}
122+
:::{note}
123123
We can also express Model 1 in Wilkinson notation as `y ~ 1 + x` which is equivalent to `y ~ x` as the intercept is included by default.
124124

125125
* The `1` term corresponds to the intercept term $\beta_0$.
@@ -283,7 +283,7 @@ Where $g_i$ is the group index for observation $i$. So the parameters $\beta_0$
283283

284284
+++
285285

286-
:::{info}
286+
:::{note}
287287
We can also express this Model 2 in Wilkinson notation as `y ~ g + x:g`.
288288

289289
* The `g` term captures the group specific intercept $\beta_0[g_i]$ parameters.
@@ -450,7 +450,7 @@ This model could also be called a partial pooling model.
450450

451451
+++
452452

453-
:::{info}
453+
:::{note}
454454
We can also express this Model 3 in Wilkinson notation as `1 + x + (1 + x | g)`.
455455

456456
* The `1` captures the global intercept, $\mathrm{Normal}(p_{0\mu}, p_{0\sigma})$.
@@ -462,10 +462,14 @@ We can also express this Model 3 in Wilkinson notation as `1 + x + (1 + x | g)`.
462462

463463
+++
464464

465-
:::{note}
466-
The hierarchical model we are considering contains a simplification in that the population level slope and intercept are assumed to be independent. It is possible to relax this assumption and model any correlation between these parameters by using a multivariate normal distribution.
465+
:::{seealso}
466+
The hierarchical model we are considering contains a simplification in that the population level slope and intercept are assumed to be independent. It is possible to relax this assumption and model any correlation between these parameters by using a multivariate normal distribution. See the {ref}`lkj_prior_for_multivariate_normal` notebook for more details.
467+
:::
468+
469+
+++
467470

468-
In one sense this move from Model 2 to Model 3 can be seen as adding parameters, and therefore increasing model complexity. However, in another sense, adding this knowledge about the nested structure of the data actually provides a constraint over parameter space.
471+
:::{seealso}
472+
In one sense this move from Model 2 to Model 3 can be seen as adding parameters, and therefore increasing model complexity. However, in another sense, adding this knowledge about the nested structure of the data actually provides a constraint over parameter space. It would be possible to engage in model comparison to arbitrate between these models - see for example the {ref}`GLM-model-selection` notebook for more details.
469473
:::
470474

471475
+++

examples/howto/LKJ.ipynb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"id": "XShKDkNir2PX"
77
},
88
"source": [
9+
"(lkj_prior_for_multivariate_normal)=\n",
910
"# LKJ Cholesky Covariance Priors for Multivariate Normal Models"
1011
]
1112
},

examples/howto/LKJ.myst.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ kernelspec:
1212

1313
+++ {"id": "XShKDkNir2PX"}
1414

15+
(lkj_prior_for_multivariate_normal)=
1516
# LKJ Cholesky Covariance Priors for Multivariate Normal Models
1617

1718
+++ {"id": "QxSKBbjKr2PZ"}

0 commit comments

Comments
 (0)