statistical. binom

new binom()

Methods

(static) dist(number_s, trials, probability_s, cumulative) → {number}

Returns the individual term binomial distribution probability.

Parameters:
NameTypeDescription
number_snumber

The number of successes in trials.

trialsnumber

The number of independent trials.

probability_snumber

The probability of success on each trial.

cumulativeboolean

A logical value that determines the form of the function. If cumulative is TRUE, then BINOM.DIST returns the cumulative distribution function, which is the probability that there are at most number_s successes; if FALSE, it returns the probability mass function, which is the probability that there are number_s successes.

Returns:

the individual term binomial distribution probability as number or an error if the arguments are incorrect.

Type: 
number

(static) inv(trials, probability_s, alpha) → {number}

Returns the smallest value for which the cumulative binomial distribution is less than or equal to a criterion value.

Parameters:
NameTypeDescription
trialsnumber

The number of Bernoulli trials.

probability_snumber

The probability of a success on each trial.

alphanumber

The criterion value.

Returns:

the smallest value for which the cumulative binomial distribution is less than or equal to a criterion value or an error if the arguments are incorrect.

Type: 
number