Skip to content

Commit 4544ed7

Browse files
committed
remove commas from model 3 maths
1 parent bbcfa05 commit 4544ed7

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

examples/generalized_linear_models/GLM-simpsons-paradox.ipynb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1445,12 +1445,12 @@
14451445
"\n",
14461446
"$$\n",
14471447
"\\begin{aligned}\n",
1448-
"\\beta_0 &\\sim \\text{Normal}(0, 5), \\\\\n",
1449-
"\\beta_1 &\\sim \\text{Normal}(0, 5), \\\\\n",
1450-
"p_{0\\sigma}, p_{1\\sigma} &\\sim \\text{Gamma}(2, 2), \\\\\n",
1451-
"\\vec{u_0} &\\sim \\text{Normal}(0, p_{0\\sigma}), \\\\ \n",
1452-
"\\vec{u_1} &\\sim \\text{Normal}(0, p_{1\\sigma}), \\\\ \n",
1453-
"\\sigma &\\sim \\text{Gamma}(2, 2), \\\\\n",
1448+
"\\beta_0 &\\sim \\text{Normal}(0, 5) \\\\\n",
1449+
"\\beta_1 &\\sim \\text{Normal}(0, 5) \\\\\n",
1450+
"p_{0\\sigma}, p_{1\\sigma} &\\sim \\text{Gamma}(2, 2) \\\\\n",
1451+
"\\vec{u_0} &\\sim \\text{Normal}(0, p_{0\\sigma}) \\\\ \n",
1452+
"\\vec{u_1} &\\sim \\text{Normal}(0, p_{1\\sigma}) \\\\ \n",
1453+
"\\sigma &\\sim \\text{Gamma}(2, 2) \\\\\n",
14541454
"\\mu_i &= \\overbrace{\n",
14551455
" \\left( \n",
14561456
" \\underbrace{\\beta_0}_{\\text{pop}} \n",
@@ -1462,8 +1462,8 @@
14621462
" \\underbrace{\\beta_1 \\cdot x_i}_{\\text{pop}} \n",
14631463
" + \\underbrace{\\vec{u_1}[g_i] \\cdot x_i}_{\\text{group}} \n",
14641464
" \\right)\n",
1465-
" }^{\\text{slope}}, \\\\\n",
1466-
"y_i &\\sim \\text{Normal}(\\mu_i, \\sigma).\n",
1465+
" }^{\\text{slope}} \\\\\n",
1466+
"y_i &\\sim \\text{Normal}(\\mu_i, \\sigma)\n",
14671467
"\\end{aligned}\n",
14681468
"$$\n",
14691469
"\n",

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -433,12 +433,12 @@ And we could describe this model mathematically as:
433433

434434
$$
435435
\begin{aligned}
436-
\beta_0 &\sim \text{Normal}(0, 5), \\
437-
\beta_1 &\sim \text{Normal}(0, 5), \\
438-
p_{0\sigma}, p_{1\sigma} &\sim \text{Gamma}(2, 2), \\
439-
\vec{u_0} &\sim \text{Normal}(0, p_{0\sigma}), \\
440-
\vec{u_1} &\sim \text{Normal}(0, p_{1\sigma}), \\
441-
\sigma &\sim \text{Gamma}(2, 2), \\
436+
\beta_0 &\sim \text{Normal}(0, 5) \\
437+
\beta_1 &\sim \text{Normal}(0, 5) \\
438+
p_{0\sigma}, p_{1\sigma} &\sim \text{Gamma}(2, 2) \\
439+
\vec{u_0} &\sim \text{Normal}(0, p_{0\sigma}) \\
440+
\vec{u_1} &\sim \text{Normal}(0, p_{1\sigma}) \\
441+
\sigma &\sim \text{Gamma}(2, 2) \\
442442
\mu_i &= \overbrace{
443443
\left(
444444
\underbrace{\beta_0}_{\text{pop}}
@@ -450,8 +450,8 @@ p_{0\sigma}, p_{1\sigma} &\sim \text{Gamma}(2, 2), \\
450450
\underbrace{\beta_1 \cdot x_i}_{\text{pop}}
451451
+ \underbrace{\vec{u_1}[g_i] \cdot x_i}_{\text{group}}
452452
\right)
453-
}^{\text{slope}}, \\
454-
y_i &\sim \text{Normal}(\mu_i, \sigma).
453+
}^{\text{slope}} \\
454+
y_i &\sim \text{Normal}(\mu_i, \sigma)
455455
\end{aligned}
456456
$$
457457

0 commit comments

Comments
 (0)