ChanceDist - Custom discrete distribution

Revision as of 20:03, 3 October 2007 by Lchrisman (talk | contribs)


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:
Red White Blue
Array_1:
Index_b →
Red White Blue
0.3 0.2 0.5

Usage:

ChanceDist(Array_q,Index_b,Index_b)

See Also

Comments


You are not allowed to post comments.