{ } Raw JSON

bundles / scipy 1.17.1 / scipy / stats / _discrete_distns / zipfian_gen

class

scipy.stats._discrete_distns:zipfian_gen

source: /scipy/stats/_discrete_distns.py :1370

Signature

class   zipfian_gen ( a = 0 b = inf name = None badvalue = None moment_tol = 1e-08 values = None inc = 1 longname = None shapes = None seed = None )

Members

Summary

A Zipfian discrete random variable.

Extended Summary

%(before_notes)s

Notes

The probability mass function for zipfian is:

for , , .

zipfian takes and as shape parameters. is the th generalized harmonic number of order .

The SciPy implementation of this distribution requires . For larger values of , the zipfian methods (pmf, cdf, mean, etc.) will return nan.

When , the Zipfian distribution reduces to the Zipf (zeta) distribution as .

%(after_notes)s

See also

zipf

Aliases

  • scipy.stats._discrete_distns.zipfian_gen