Skip to content

Commit bb30538

Browse files
authored
Fix ICAR docstring latex
1 parent 0a33057 commit bb30538

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pymc/distributions/multivariate.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2373,15 +2373,15 @@ class ICAR(Continuous):
23732373
.. math::
23742374
f(\phi| W,\sigma) =
23752375
-\frac{1}{2\sigma^{2}} \sum_{i\sim j} (\phi_{i} - \phi_{j})^2 -
2376-
\frac{1}{2}*\frac{\sum_{i}{\phi_{i}}}{0.001N}^{2} - \ln{\sqrt{2\\pi}} -
2376+
\frac{1}{2}*\frac{\sum_{i}{\phi_{i}}}{0.001N}^{2} - \ln{\sqrt{2\pi}} -
23772377
\ln{0.001N}
23782378
2379-
The first term represents the spatial covariance component. Each $\\phi_{i}$ is penalized
2380-
based on the square distance from each of its neighbors. The notation $i\\sim j$
2381-
indicates a sum over all the neighbors of $\\phi_{i}$. The last three terms are the
2379+
The first term represents the spatial covariance component. Each :math:`\phi_{i}` is penalized
2380+
based on the square distance from each of its neighbors. The notation :math:`i \sim j`
2381+
indicates a sum over all the neighbors of :math:`\phi_{i}`. The last three terms are the
23822382
Normal log density function where the mean is zero and the standard deviation is
2383-
$N * 0.001$ (where N is the length of the vector $\\phi$). This component imposes
2384-
a zero-sum constraint by finding the sum of the vector $\\phi$ and penalizing based
2383+
N * 0.001 (where N is the length of the vector :math:`\phi`). This component imposes
2384+
a zero-sum constraint by finding the sum of the vector :math:`\phi` and penalizing based
23852385
on its distance from zero.
23862386
23872387
Parameters

0 commit comments

Comments
 (0)