Free Access Week-  Data Engineering + BI
Data engineering and BI courses are free!
Free AI Access Week from June 2-8

distr6 (version 1.3.7)

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 pgfX(z)=EX[exp(zx)] where X is the distribution and EX 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