moezipfR.var: Variance.

Description Usage Arguments Details Value Examples

View source: R/moezipfR.var.R

Description

Computes the variance of the MOEZipf distribution for given values of α and β.

Usage

1
moezipfR.var(alpha, beta, tolerance = 10^(-4))

Arguments

alpha

Value of the α parameter (α > 3).

beta

Value of the β parameter (β > 0).

tolerance

Tolerance used in the calculations. (default = 10^{-4})

Details

The variance of the distribution only exists for α strictly greater than 3. It is calculated as:

Var[Y] = E[Y^2] - (E[Y])^2

Value

A positive real value corresponding to the variance of the distribution.

Examples

1
moezipfR.var(3.5, 1.3)

moezipfR documentation built on May 2, 2019, 3:25 a.m.