Function Beta(ShapeAlpha, ShapeBeta, Minimum, Maximum)

Beta

The function Beta draws a random value from a beta distribution.

Beta(
ShapeAlpha,            ! (input) numerical expression
ShapeBeta,             ! (input) numerical expression
Minimum,               ! (optional) numerical expression
Maximum                ! (optional) numerical expression
)


Arguments

ShapeAlpha

A scalar numerical expression $$> 0$$.

ShapeBeta

A scalar numerical expression $$> 0$$.

Minimum

A scalar numerical expression.

Maximum

A scalar numerical expression $$>$$min.

Return Value

The function Beta returns a random value drawn from a beta distribution with shapes ShapeAlpha, ShapeBeta, lower bound Minimum and upper bound Maximum.

Note

The prototype of this function has changed with the introduction of AIMMS 3.4. In order to run models that still use the original prototype, the option Distribution_compatibility should be set to Aimms_3_0. The original function Beta(ShapeAlpha, ShapeBeta, s) returns a random value drawn from a beta distribution with shapes ShapeAlpha, ShapeBeta and scale s, where $$s = Maximum$$ and $$Minimum = 0$$.

The Beta distribution is discussed in full detail in Discrete Distributions of the Language Reference.