WorksheetFunction.BetaInv Method

Returns the inverse of the cumulative distribution function for a specified beta distribution. That is, if probability = BetaDist(x,...), then BetaInv(probability,...) = x.

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

Syntax

'Declaration
Function BetaInv ( _
    Arg1 As Double, _
    Arg2 As Double, _
    Arg3 As Double, _
    Arg4 As Object, _
    Arg5 As Object _
) As Double
'Usage
Dim instance As WorksheetFunction
Dim Arg1 As Double
Dim Arg2 As Double
Dim Arg3 As Double
Dim Arg4 As Object
Dim Arg5 As Object
Dim returnValue As Double

returnValue = instance.BetaInv(Arg1, Arg2, _
    Arg3, Arg4, Arg5)
double BetaInv(
    double Arg1,
    double Arg2,
    double Arg3,
    Object Arg4,
    Object Arg5
)

Parameters

  • Arg1
    Type: System.Double

    A probability associated with the beta distribution.

  • Arg2
    Type: System.Double

    The Alpha parameter of the distribution.

  • Arg4
    Type: System.Object

    An optional lower bound to the interval of x.

  • Arg5
    Type: System.Object

    An optional upper bound to the interval of x.

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 function, see the Beta_Inv(Double, Double, Double, Object, Object) method.

The beta distribution can be used in project planning to model probable completion times given an expected completion time and variability.

  • If any argument is nonnumeric, BetaInv generates an error value.

  • If alpha ≤ 0 or beta ≤ 0, BetaInv generates an error value.

  • If probability ≤ 0 or probability > 1, BetaInv generates an error value.

  • If you omit values for A and B, BetaInv uses the standard cumulative beta distribution, so that A = 0 and B = 1.

Given a value for probability, BetaInv seeks that value x such that BetaDist(x, alpha, beta, A, B) = probability. Thus, precision of BetaInv depends on precision of BetaDist(Double, Double, Double, Object, Object). BetaInv uses an iterative search technique. If the search has not converged after 100 iterations, the function generates an error value.

See Also

Reference

WorksheetFunction Interface

WorksheetFunction Members

Microsoft.Office.Interop.Excel Namespace