Skip to content

Commit 8886d35

Browse files
authored
minor fix of formatting & typo (#1522)
* fix typsetting by adding escapes to $ * add missing "log" to be consistent with previous definition of alpha * !fixup 06edb64
1 parent 56552a2 commit 8886d35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/for-developers/interface.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ As a refresher, Metropolis-Hastings implements a very basic algorithm:
161161
Of course, it's much easier to do this in the log space, so the acceptance probability is
162162
more commonly written as
163163

164-
$$\alpha = \min\Big[\log \pi(θ'\_t) - \log \pi(θ\_{t-1}) + \log q(θ\_{t-1} \mid θ'\_t) - \log q(θ'\_t \mid θ\_{t-1}), 0\Big]$$
164+
\$\$\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]\$\$
165165

166166
In interface terms, we should do the following:
167167

0 commit comments

Comments
 (0)