Skip to content

Commit

Permalink
Use the rule notation in docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
rlouf committed Jun 23, 2022
1 parent 6feadda commit 685de07
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions aemcmc/conjugates.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,13 @@ def beta_binomial_conjugateo(observed_rv_expr, posterior_expr):
.. math::
\begin{align*}
p &\sim \operatorname{Beta}\left(\alpha, \beta\right)\\
y &\sim \operatorname{Binomial}\left(n, p\right)
\end{align*}
\frac{
Y \sim \operatorname{Binom}\left(N, p\right), \quad
p \sim \operatorname{Beta}\left(\alpha, \beta\right)
}{
\left(p|Y=y\right) \sim \operatorname{Beta}\left(\alpha+y, \beta+N-y\right)
}
If we observe :math:`y=Y`, then :math:`p` follows a beta distribution:
.. math::
p \sim \operatorname{Beta}\left(\alpha + Y, \beta + n - Y\right)
Parameters
----------
Expand Down

0 comments on commit 685de07

Please sign in to comment.