discreteProbabilityDistribution f
To construct a discrete probability distribution, provide the probability mass function and, if different than the default of \([0, \infty\]), the support.
|
|
Non-integers and values outside the support are automatically sent to 0.
|
|
The cumulative distribution, quantile, and random generation functions are set to defaults based on the probability mass function.
|
|
|
However, if possible, it is good to provide these directly to improve performance. A description may also be provided.
|
When defining a probability mass function, the user must be careful that it satisfies the definition, i.e., it must be nonnegative and its values must sum to 1 on its support.
The object discreteProbabilityDistribution is a method function with options.