Difference between revisions of "ChanceDist - Custom discrete distribution"
Line 45: | Line 45: | ||
* [[ProbTable]] | * [[ProbTable]] | ||
* [[Uniform]] | * [[Uniform]] | ||
+ | * [[Prob_ChanceDist]] |
Revision as of 20:03, 3 October 2007
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