Skip to main content

BETAINV

Returns the inverse of the cumulative beta probability density function for a specified beta distribution (BETADIST).

Syntax

expression.BETAINV(arg1, arg2, arg3, arg4, arg5);

expression - A variable that represents a ApiWorksheetFunction class.

Parameters

NameRequired/OptionalData typeDefaultDescription
arg1RequiredApiRange | ApiName | numberA probability associated with the beta distribution.
arg2RequiredApiRange | ApiName | numberThe alpha parameter of the distribution which must be greater than 0.
arg3RequiredApiRange | ApiName | numberThe beta parameter of the distribution which must be greater than 0.
arg4OptionalApiRange | ApiName | numberAn optional lower bound to the interval of x (A). If omitted, it is equal to 0.
arg5OptionalApiRange | ApiName | numberAn optional upper bound to the interval of x (B). If omitted, it is equal to 1.

Returns

number

Example

Find the value corresponding to a specific probability in the beta distribution in a spreadsheet.

// How do I locate the data point that matches a given probability level in a spreadsheet?

// Reverse-calculate from probability to the original data value in a spreadsheet.

let worksheet = Api.GetActiveSheet();
let func = Api.WorksheetFunction;
worksheet.GetRange("A1").SetValue(func.BETAINV(0.2, 4, 5));