CRITBINOM
function CRITBINOM(arg1: number = null, arg2: number = null, arg3: number = null): number
Description
Returns the smallest value for which the cumulative binomial distribution is greater than or equal to a criterion value.
Parameters
- arg1
number
null The number of Bernoulli trials.
- arg2
number
null The probability of success on each trial, a number between 0 and 1 inclusive.
- arg3
number
null The criterion value, a number between 0 and 1 inclusive.
Returns
number
Try It
var oWorksheet = Api.GetActiveSheet();
var oFunction = Api.GetWorksheetFunction();
var ans = oFunction.CRITBINOM(678, 0.1, 0.007);
oWorksheet.GetRange("B2").SetValue(ans);