Skip to content

Commit 7abb24d

Browse files
committed
fix lognormal formulas
1 parent 6c7d63a commit 7abb24d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

knitr/lotka-volterra/lotka-volterra-predator-prey.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,11 +347,11 @@ Because $\exp(\epsilon_{n,k})$ is positive and the underlying population size $z
347347
This transform and its associated fractional error is so common that they are jointly known as the lognormal distribution, so that we can simplify the above notation as we did with linear regression and write
348348

349349
$$
350-
y_{n, k} \sim \mathsf{LogNormal}(z_{n, k}, \sigma_n).
350+
y_{n, k} \sim \mathsf{LogNormal}(\log(z_{n, k}), \sigma_n).
351351
$$
352352
whenever
353353
$$
354-
\log y_{n, k} \sim \mathsf{Normal}(z_{n, k}, \sigma_n).
354+
\log y_{n, k} \sim \mathsf{Normal}(\log(z_{n, k}), \sigma_n).
355355
$$
356356
The $\mathsf{LogNormal}$ density accounts for the non-linear change of variables through a Jacobian adjustment.^[The [Stan manual chapter on changes of variables](https://mc-stan.org/docs/stan-users-guide/changes-of-variables.html) works through this particular example.]
357357

0 commit comments

Comments
 (0)