File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ dependencies:
22
22
- jupyter-sphinx
23
23
- myst-nb
24
24
- numpydoc
25
+ - polyagamma
25
26
- pre-commit>=2.8.0
26
27
- pymc-sphinx-theme==0.13
27
28
- sphinx-copybutton
Original file line number Diff line number Diff line change @@ -3797,7 +3797,8 @@ class PolyaGamma(PositiveContinuous):
3797
3797
import matplotlib.pyplot as plt
3798
3798
import numpy as np
3799
3799
from polyagamma import polyagamma_pdf
3800
- plt.style.use('seaborn-darkgrid')
3800
+ import arviz as az
3801
+ plt.style.use('arviz-darkgrid')
3801
3802
x = np.linspace(0.01, 5, 500);x.sort()
3802
3803
hs = [1., 5., 10., 15.]
3803
3804
zs = [0.] * 4
@@ -3811,7 +3812,7 @@ class PolyaGamma(PositiveContinuous):
3811
3812
3812
3813
======== =============================
3813
3814
Support :math:`x \in (0, \infty)`
3814
- Mean :math:`dfrac{h}{4} if :math:`z=0`, :math:`\dfrac{tanh(z/2)h}{2z}` otherwise.
3815
+ Mean :math:`\ dfrac{h}{4}` if :math:`z=0`, :math:`\dfrac{tanh(z/2)h}{2z}` otherwise.
3815
3816
Variance :math:`0.041666688h` if :math:`z=0`, :math:`\dfrac{h(sinh(z) - z)(1 - tanh^2(z/2))}{4z^3}` otherwise.
3816
3817
======== =============================
3817
3818
You can’t perform that action at this time.
0 commit comments