statistical. beta

new beta()

Methods

(static) dist(x, alpha, beta, cumulative, a, b) → {number}

Returns the beta cumulative distribution function.

Parameters:
NameTypeDescription
xnumber

The value between A and B at which to evaluate the function

alphanumber

A parameter of the distribution.

betanumber

A parameter of the distribution.

cumulativeboolean

A logical value that determines the form of the function. If cumulative is TRUE, BETA.DIST returns the cumulative distribution function; if FALSE, it returns the probability density function.

anumber

Optional. A lower bound to the interval of x.

bnumber

Optional. An upper bound to the interval of x.

Returns:

the beta cumulative distribution function or an error if the arguments are incorrect.

Type: 
number

(static) inv(probability, alpha, beta, a, b) → {number}

Returns the inverse of the cumulative distribution function for a specified beta distribution.

Parameters:
NameTypeDescription
probabilitynumber

A probability associated with the beta distribution.

alphanumber

A parameter of the distribution.

betanumber

A parameter the distribution.

anumber

Optional. A lower bound to the interval of x.

bnumber

Optional. An upper bound to the interval of x.

Returns:

the inverse of the cumulative distribution function for a specified beta distribution or an error if the arguments are incorrect.

Type: 
number