Learn R Programming

distr6 (version 1.1.0)

pgf: Probability Generating Function

Description

Probability generating function of a distribution

Usage

pgf(object, z)

Arguments

object

Distribution.

z

integer to evaluate characteristic function at.

Value

Probability generating function evaluated at z as a numeric if distribution is discrete, otherwise NaN.

R6 Usage

$pgf(z)

Details

The probability generating function is defined by $$pgf_X(z) = E_X[exp(z^x)]$$ where X is the distribution and \(E_X\) is the expectation of the distribution X.

If an analytic expression isn't available, returns error. To impute a numerical expression, use the CoreStatistics decorator.

See Also

CoreStatistics and decorate