bundles / scipy latest / docs
Doc
Hyperbolic Secant Distribution
docs/tutorial:stats:continuous_hypsecant
Related to the logistic distribution and used in lifetime analysis. Standard form is (defined over all )
\begin{eqnarray*} \mu_{n}^{\prime} & = & \frac{1+\left(-1\right)^{n}}{2\pi2^{2n}}n!\left[\zeta\left(n+1,\frac{1}{4}\right)-\zeta\left(n+1,\frac{3}{4}\right)\right]\\
& = & \left\{
\begin{array}{cc}
0 & n \text{ odd}\\
C_{n/2}\frac{\pi^{n}}{2^{n}} & n \text{ even}
\end{array}
\right.\end{eqnarray*}where is an integer given by
where is the Bernoulli polynomial of order evaluated at Thus
Implementation: scipy.stats.hypsecant