Skip to main content

F_DIST

Returns the (left-tailed) F probability distribution (degree of diversity) for two data sets.

Syntax

expression.F_DIST(arg1, arg2, arg3, arg4);

expression - A variable that represents a ApiWorksheetFunction class.

Parameters

NameRequired/OptionalData typeDefaultDescription
arg1RequiredApiRange | ApiName | numberThe value at which to evaluate the function, a nonnegative number.
arg2RequiredApiRange | ApiName | numberThe numerator degrees of freedom, a number between 1 and 10^10, excluding 10^10.
arg3RequiredApiRange | ApiName | numberThe denominator degrees of freedom, a number between 1 and 10^10, excluding 10^10.
arg4RequiredApiRange | ApiName | booleanA logical value that determines the function form. If this parameter is true, the function will return the cumulative distribution function, if it is false, it will return the probability density function.

Returns

number

Example

Return the (left-tailed) F probability distribution for two data sets.

// Calculate the left-tailed probability of F-distributed values.

// Determine F distribution using F_DIST with specified degrees of freedom.

let worksheet = Api.GetActiveSheet();
let func = Api.WorksheetFunction;
let ans = func.F_DIST(10, 6, 4, false);
worksheet.GetRange("B2").SetValue(ans);