Mathematical and statistical functions for the EmpiricalMV distribution, which is commonly used in sampling such as MCMC.
The EmpiricalMV distribution is defined by the pmf,
p(x) = ∑ I(x = x_i) / k
for x_i ε R, i = 1,...,k.
Sampling from this distribution is performed with the sample function with the elements given as the support set and uniform probabilities. Sampling is performed with replacement, which is consistent with other distributions but non-standard for Empirical distributions. Use simulateEmpiricalDistribution to sample without replacement.
The cdf assumes that the elements are supplied in an indexed order (otherwise the results are meaningless).
Returns an R6 object inheriting from class SDistribution.
The distribution is supported on x_1,...,x_k.
EmpMV(data = data.frame(1, 1))
Full name of distribution.
Short name of distribution for printing.
Brief description of the distribution.
Creates a new instance of this R6 class.
EmpiricalMV$new(data = NULL, decorators = NULL)
Matrix-like object where each column is a vector of observed samples corresponding to each variable.
Decorators to add to the distribution during construction.
The arithmetic mean of a (discrete) probability distribution X is the expectation
E_X(X) = ∑ p_X(x)*x
with an integration analogue for continuous distributions.
The variance of a distribution is defined by the formula
var_X = E[X^2] - E[X]^2
where E_X is the expectation of distribution X. If the distribution is multivariate the covariance matrix is returned.
Sets the value(s) of the given parameter(s).
EmpiricalMV$setParameterValue( ..., lst = NULL, error = "warn", resolveConflicts = FALSE )
Named arguments of parameters to set values for. See examples.
Alternative argument for passing parameters. List names should be parameter names and list values are the new values to set.
"warn" then returns a warning on error, otherwise breaks if
FALSE (default) throws error if conflicting parameterisations are provided, otherwise
automatically resolves them by removing all conflicting parameters.
The objects of this class are cloneable with this method.
EmpiricalMV$clone(deep = FALSE)
Whether to make a deep clone.
McLaughlin, M. P. (2001). A compendium of common probability distributions (pp. 2014-01). Michael P. McLaughlin.
1 2 3 4 5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.