zipfpssVariance {zipfextR} | R Documentation |
Variance of the Zipf-PSS distribution.
Description
Computes the variance of the Zipf-PSS distribution for given values of parameters
and
.
Usage
zipfpssVariance(alpha, lambda, isTruncated = FALSE)
Arguments
alpha |
Value of the |
lambda |
Value of the |
isTruncated |
Logical; if TRUE Use the zero-truncated version of the distribution to calculate the expected value (default = FALSE). |
Details
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:
where X follows a Zipf distribution with parameter , and N follows a Poisson distribution with
parameter
. From where one has that:
Particularlly, if one is working with the zero-truncated version of the Zipf-PSS distribution. This values is computed as:
Value
A positive real value corresponding to the variance of the distribution.
References
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.
Examples
zipfpssVariance(4.5, 2.3)
zipfpssVariance(4.5, 2.3, TRUE)