WorksheetFunction.BetaDist Method
Returns the beta cumulative distribution function.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Function BetaDist ( _
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.BetaDist(Arg1, _
Arg2, Arg3, Arg4, Arg5)
double BetaDist(
double Arg1,
double Arg2,
double Arg3,
Object Arg4,
Object Arg5
)
Parameters
Arg1
Type: System.DoubleThe value between A and B at which to evaluate the function.
Arg2
Type: System.DoubleA parameter of the distribution.
Arg3
Type: System.DoubleA parameter of the distribution.
Arg4
Type: System.ObjectAn optional lower bound to the interval of x.
Arg5
Type: System.ObjectAn 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_Dist(Double, Double, Double, Boolean, Object, Object) method.
The beta distribution is commonly used to study variation in the percentage of something across samples, such as the fraction of the day people spend watching television.
If any argument is nonnumeric, BetaDist returns the #VALUE! error value.
If alpha ≤ 0 or beta ≤ 0, BetaDist generates an error value.
If x < A, x > B, or A = B, BetaDist generates an error value.
If you omit values for A and B, BetaDist uses the standard cumulative beta distribution, so that A = 0 and B = 1.