BINOM_DIST_RANGE
function BINOM_DIST_RANGE(
arg1: number = null,
arg2: number = null,
arg3: number = null,
arg4: number = null,
): number
Description
Returns the probability of a trial result using a binomial distribution.
Parameters
- arg1
number
null The number of independent trials.
- arg2
number
null The probability of success on each trial.
- arg3
number
null The minimum number of successes in the trials to calculate probability for, a numeric value greater than or equal to 0.
- arg4
number
null The maximum number of successes in the trials to calculate probability for, a numeric value greater than the minimum number of successes and less than or equal to trials.
Returns
number
Try It
var oWorksheet = Api.GetActiveSheet();
var oFunction = Api.GetWorksheetFunction();
oWorksheet.GetRange("A1").SetValue(oFunction.BINOM_DIST_RANGE(60, 0.75, 45, 50));