Share via


WorksheetFunction.FDist Method

Returns the F probability distribution. You can use this function to determine whether two data sets have different degrees of diversity. For example, you can examine the test scores of men and women entering high school and determine if the variability in the females is different from that found in the males.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Function FDist ( _
    Arg1 As Double, _
    Arg2 As Double, _
    Arg3 As Double _
) As Double
'Usage
Dim instance As WorksheetFunction
Dim Arg1 As Double
Dim Arg2 As Double
Dim Arg3 As Double
Dim returnValue As Double

returnValue = instance.FDist(Arg1, Arg2, _
    Arg3)
double FDist(
    double Arg1,
    double Arg2,
    double Arg3
)

Parameters

  • Arg1
    Type: System.Double

    X - the value at which to evaluate the function.

  • Arg2
    Type: System.Double

    Degrees_freedom1 - the numerator degrees of freedom.

  • Arg3
    Type: System.Double

    Degrees_freedom2 - the denominator degrees of freedom.

Return Value

Type: System.Double

Remarks

Important

This function has been replaced with one or more new functions that may provide improved accuracy and whose names better reflect their usage. This function is still available for compatibility with earlier versions of Excel. However, if backward compatibility is not required, you should consider using the new functions from now on, because they more accurately describe their functionality. For more information about the new functions, see the F_Dist_RT(Double, Double, Double) and F_Dist(Double, Double, Double, Boolean) methods.

If any argument is nonnumeric, FDist returns the #VALUE! error value.

If x is negative, FDist returns the #NUM! error value.

If degrees_freedom1 or degrees_freedom2 is not an integer, it is truncated.

If degrees_freedom1 < 1 or degrees_freedom1 ≥ 10^10, FDist returns the #NUM! error value.

If degrees_freedom2 < 1 or degrees_freedom2 ≥ 10^10, FDist returns the #NUM! error value.

FDist is calculated as FDIST=P( F>x ), where F is a random variable that has an F distribution with degrees_freedom1 and degrees_freedom2 degrees of freedom.

See Also

Reference

WorksheetFunction Interface

WorksheetFunction Members

Microsoft.Office.Interop.Excel Namespace