Description Usage Arguments Value References Examples
This function implements pseudo-random number generation for a Zeta (Zipf) distribution with pmf
f(x|α)=\frac{1}{ζ(α)x^{α}}
for x=1,2,3,... and α > 1 where ζ(α)=∑_{x=1}^{∞} x^{-α}.
1 | draw.zeta(nrep, alpha)
|
nrep |
Number of data points to generate. |
alpha |
Parameter of the desired zeta distribution. |
A list of length five containing generated data, the theoretical mean, the empirical mean, the theoretical variance, and the empirical variance with names y, theo.mean, emp.mean, theo.var, and emp.var, respectively.
Devroye, L. (1986). Non-Uniform random variate generation. New York: Springer-Verlag.
1 | draw.zeta(nrep=100000,alpha=4)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.