Skip to content

Commit

Permalink
minor fix of formatting & typo (#1522)
Browse files Browse the repository at this point in the history
* fix typsetting by adding escapes to $

* add missing "log"

to be consistent with previous definition of alpha

* !fixup 06edb64
  • Loading branch information
jan-glx authored Jan 28, 2021
1 parent 56552a2 commit 8886d35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/for-developers/interface.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ As a refresher, Metropolis-Hastings implements a very basic algorithm:
Of course, it's much easier to do this in the log space, so the acceptance probability is
more commonly written as

$$\alpha = \min\Big[\log \pi(θ'\_t) - \log \pi(θ\_{t-1}) + \log q(θ\_{t-1} \mid θ'\_t) - \log q(θ'\_t \mid θ\_{t-1}), 0\Big]$$
\$\$\log \alpha = \min\Big[0, \log \pi(θ'\_t) - \log \pi(θ\_{t-1}) + \log q(θ\_{t-1} \mid θ'\_t) - \log q(θ'\_t \mid θ\_{t-1}) \Big]\$\$

In interface terms, we should do the following:

Expand Down

0 comments on commit 8886d35

Please sign in to comment.