Mean and variance for hyper-Poisson distribution
This function calculates the mean and variance for the hyper-Poisson distribution with parameters and .
mean_var_hp(mu, sigma) mean_var_hp2(mu, sigma)
mu
: value of the mu parameter.sigma
: value of the sigma parameter.the function returns a list with the mean and variance.
The hyper-Poisson distribution with parameters and
has a support 0, 1, 2, ... and density given by
where the function is defined as
and for and positive integer.
This function calculates the mean and variance of this distribution.
# Example 1 # Theoretical values mean_var_hp(mu=5.5, sigma=0.1) # Using simulated values y <- rHYPERPO(n=1000, mu=5.5, sigma=0.1) mean(y) var(y) # Example 2 # Theoretical values mean_var_hp2(mu=5.5, sigma=1.9) # Using simulated values y <- rHYPERPO2(n=1000, mu=5.5, sigma=1.9) mean(y) var(y)
\insertRef saez2013hyperpoDiscreteDists
HYPERPO .
Freddy Hernandez, fhernanb@unal.edu.co
Useful links