Skip to content

Commit 135ed47

Browse files
committed
Refactor ZSN docs
1 parent 6b07a2a commit 135ed47

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pymc/distributions/multivariate.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2399,7 +2399,7 @@ class ZeroSumNormal(Distribution):
23992399
By default, the last axis is constrained to sum to zero.
24002400
See `zerosum_axes` kwarg for more details.
24012401
2402-
.. math:
2402+
.. math::
24032403
24042404
ZSN(\sigma) = N(0, \sigma^2 (I - \tfrac{1}{n}J)
24052405
where $J_{ij} = 1$
@@ -2431,7 +2431,9 @@ class ZeroSumNormal(Distribution):
24312431
24322432
Examples
24332433
--------
2434-
.. code-block:: python
2434+
Define a `ZeroSumNormal` variable, with `sigma=1` and
2435+
`zerosum_axes=1` by default::
2436+
24352437
COORDS = {
24362438
"regions": ["a", "b", "c"],
24372439
"answers": ["yes", "no", "whatever", "don't understand question"],

0 commit comments

Comments
 (0)