Skip to content

Commit

Permalink
Update notation
Browse files Browse the repository at this point in the history
\alpha -> a
\beta -> b
  • Loading branch information
jarad committed Dec 5, 2017
1 parent e34b8ff commit c4c48fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions courses/stat615/slides/ABC/ABC.Rnw
Original file line number Diff line number Diff line change
Expand Up @@ -269,11 +269,11 @@ ggplot(melt(d, id.var='time', variable.name='species', value.name='count'),
\[ \hat{\theta}_j = \frac{n_j}{I_j} \]
\item \pause Conjugate Bayesian inference \pause
\[ \begin{array}{ll}
p(\theta) &= \prod_{j=1}^M Ga(\theta_j; \alpha_j,\beta_j) \\
p(\theta) &= \prod_{j=1}^M Ga(\theta_j; a_j,b_j) \\
\pause \\
p(\theta|X) &= \prod_{j=1}^M Ga(\theta_j; \alpha_j+n_j, \beta_j+I_j) \\
p(\theta|X) &= \prod_{j=1}^M Ga(\theta_j; a_j+n_j, b_j+I_j) \\
\pause \\
E[\theta_j|X] &= \frac{\alpha_j+n_j}{\beta_j+I_j}
E[\theta_j|X] &= \frac{a_j+n_j}{b_j+I_j}
\end{array} \]
\end{itemize}
\end{frame}
Expand Down Expand Up @@ -380,7 +380,7 @@ g + xlim(30,31)
\frametitle{Summary}
\begin{itemize}
\item With complete observations and independent gamma priors, the posterior is
\[ p(\theta|X) = \prod_{j=1}^M Ga(\theta_j; \alpha_j+n_j, \beta_j+I_j) \]
\[ p(\theta|X) = \prod_{j=1}^M Ga(\theta_j; a_j+n_j, b_j+I_j) \]
where
\[ \begin{array}{ll}
n_j &= \sum_{i=1}^n \mathrm{I}(r_i=j) \\
Expand Down
Binary file modified courses/stat615/slides/ABC/ABC.pdf
Binary file not shown.

0 comments on commit c4c48fb

Please sign in to comment.