ChanceDist - Custom discrete distribution
ChanceDist( P,A,I )
Creates a discrete probability distribution. A is an array of outcomes, and P is the corresponding array of probabilities. A and P must both be indexed by I.
When to Use
Use ChanceDist() instead of the probability table when:
- The array of outcomes A is multidimensional, or
- The outcomes and probabilities arrays are defined as other Variables; the Variables can be used in other parts of your model.
As of build 4.0.0.51, ChanceDist cannot be used within Random. This enhancement may occur in future releases.
Example
Index_b: | |||
|
Array_1: | ||||||
Index_b → | ||||||
|
Usage:
ChanceDist(Array_q,Index_b,Index_b)
See Also
Comments
Enable comment auto-refresher