Processing math: 100%
SciPy

This is documentation for an old release of SciPy (version 0.19.0). Search for this page in the documentation of the latest stable release (version 1.15.1).

Logarithmic (Log-Series, Series) Distribution

The logarithmic distribution with parameter p has a probability mass function with terms proportional to the Taylor series expansion of log(1p)

p(k;p)=pkklog(1p)k1F(x;p)=1log(1p)xk=1pkk=1+p1+xΦ(p,1,1+x)log(1p)

where

Φ(z,s,a)=k=0zk(a+k)s

is the Lerch Transcendent. Also define r=log(1p)

μ=p(1p)rμ2=p[p+r](1p)2r2γ1=2p2+3pr+(1+p)r2r(p+r)p(p+r)rγ2=6p3+12p2r+p(4p+7)r2+(p2+4p+1)r3p(p+r)2.
M(t)=1log(1p)k=1etkpkk=log(1pet)log(1p)

Thus,

μn=M(n)(t)|t=0=Li1n(pet)log(1p)|t=0=Li1n(p)log(1p).

Implementation: scipy.stats.logser