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).

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αk1

where

ζ(α)=n=11nα

is the Riemann zeta function. Other functions of this distribution are

F(x;α)=1ζ(α)xk=11kαμ=ζ1ζ0α>2μ2=ζ2ζ0ζ21ζ20α>3γ1=ζ3ζ203ζ0ζ1ζ2+2ζ31[ζ2ζ0ζ21]3/2α>4γ2=ζ4ζ304ζ3ζ1ζ20+12ζ2ζ21ζ06ζ413ζ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