Description Usage Arguments Details Value References Examples
View source: R/zipfpssVariance.R
Computes the variance of the Zipf-PSS distribution for given values of parameters α and λ.
1 | zipfpssVariance(alpha, lambda, isTruncated = FALSE)
|
alpha |
Value of the α parameter (α > 3). |
lambda |
Value of the λ parameter (λ > 0). |
isTruncated |
Logical; if TRUE Use the zero-truncated version of the distribution to calculate the expected value (default = FALSE). |
The variance of the Zipf-PSS distribution only exists for α values strictly greater than 3. The value is obtained from the law of total variance that says that:
Var[Y] = E[N]\, Var[X] + E[X]^2 \, Var[N],
where X follows a Zipf distribution with parameter α, and N follows a Poisson distribution with parameter λ. From where one has that:
Var[Y] = λ\, \frac{ζ(α - 2)}{ζ(α)}
Particularlly, if one is working with the zero-truncated version of the Zipf-PSS distribution. This values is computed as:
Var[Y^{ZT}] = \frac{λ\, ζ(α)\, ζ(α - 2)\, (1 - e^{-λ}) - λ^2 \, ζ(α - 1)^2 \, e^{-λ}}{ζ(α)^2 \, (1 - e^{-λ})^2}
A positive real value corresponding to the variance of the distribution.
Sarabia Alegría, JM. and Gómez Déniz, E. and Vázquez Polo, F. Estadística actuarial: teoría y aplicaciones. Pearson Prentice Hall.
1 2 | zipfpssVariance(4.5, 2.3)
zipfpssVariance(4.5, 2.3, TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.