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).
Zipf (Zeta) Distribution¶
A random variable has the zeta distribution (also called the zipf distribution) with parameter α>1 if it’s probability mass function is given by
p(k;α)=1ζ(α)kαk≥1
where
ζ(α)=∞∑n=11nα
is the Riemann zeta function. Other functions of this distribution are
F(x;α)=1ζ(α)⌊x⌋∑k=11kαμ=ζ1ζ0α>2μ2=ζ2ζ0−ζ21ζ20α>3γ1=ζ3ζ20−3ζ0ζ1ζ2+2ζ31[ζ2ζ0−ζ21]3/2α>4γ2=ζ4ζ30−4ζ3ζ1ζ20+12ζ2ζ21ζ0−6ζ41−3ζ22ζ20(ζ2ζ0−ζ21)2.
M(t)=Liα(et)ζ(α)
where ζi=ζ(α−i) and Lin(z) is the nth polylogarithm function of z defined as
Lin(z)≡∞∑k=1zkkn
μ′n=M(n)(t)|t=0=Liα−n(et)ζ(a)|t=0=ζ(α−n)ζ(α)
Implementation: scipy.stats.zipf