Skip to content

Commit

Permalink
Latex fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
WardBrian committed Jun 3, 2024
1 parent f2a561b commit acd4dc3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/header.tex
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
\usepackage{mathpazo}
\usepackage[scale=0.9]{sourcecodepro}
\usepackage{amssymb}
\usepackage{mathtools}
\linespread{1.03}

\usepackage{titlesec}
Expand Down
6 changes: 3 additions & 3 deletions src/stan-users-guide/finite-mixtures.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ $$
As with other event probabilities, this can be calculated in the
generated quantities block either by sampling $z_i$ and $z_j$ and
using the indicator function on their equality, or by computing the
term inside the integral as a generated quantity. As with posterior
term inside the integral as a generated quantity. As with posterior
predictive distribute, working in expectation is more statistically
efficient than sampling.

Expand Down Expand Up @@ -575,12 +575,12 @@ The hurdle model is similar to the zero-inflated model, but more
flexible in that the zero outcomes can be deflated as well as
inflated. Given the probability $\theta$ and the intensity $\lambda$,
the distribution for $y_n$ can be written as
$$
\[
\begin{align*}
y_n & = 0 \quad\text{with probability } \theta, \text{ and}\\
y_n & \sim \textsf{Poisson}_{x\neq 0}(y_n \mid \lambda) \quad\text{with probability } 1-\theta,
\end{align*}
$$
\]
Where $\textsf{Poisson}_{x\neq 0}$ is a truncated Poisson distribution, truncated at $0$.

The corresponding likelihood function for the hurdle model is
Expand Down

0 comments on commit acd4dc3

Please sign in to comment.