WorksheetFunction.Binom_Dist Method

Returns the individual term binomial distribution probability.

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

Syntax

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

returnValue = instance.Binom_Dist(Arg1, _
    Arg2, Arg3, Arg4)
double Binom_Dist(
    double Arg1,
    double Arg2,
    double Arg3,
    bool Arg4
)

Parameters

  • Arg1
    Type: System.Double

    Number_s - the number of successes in trials.

  • Arg2
    Type: System.Double

    Trials - the number of independent trials.

  • Arg3
    Type: System.Double

    Probability_s - the probability of success on each trial.

  • Arg4
    Type: System.Boolean

    Cumulative - a logical value that determines the form of the function. If cumulative is True, then the Binom_Dist(Double, Double, Double, Boolean) method returns the cumulative distribution function, which is the probability that there are at most number_s successes; if False, it returns the probability mass function, which is the probability that there are number_s successes.

Return Value

Type: System.Double

Remarks

Use the Binom_Dist method in problems with a fixed number of tests or trials, when the outcomes of any trial are only success or failure, when trials are independent, and when the probability of success is constant throughout the experiment. For example, the Binom_Dist method can calculate the probability that two of the next three babies born are male.

  • Number_s and trials are truncated to integers.

  • If number_s, trials, or probability_s is nonnumeric, the Binom_Dist method generates an error.

  • If number_s < 0 or number_s > trials, the Binom_Dist method generates an error.

  • If probability_s < 0 or probability_s > 1, the Binom_Dist method generates an error. The binomial probability mass function is:

    Figure 1: Binomial probability mass function

    Binomial probability mass function

Where:

Figure 2: Equation

Equation

is COMBIN(n,x).

The cumulative binomial distribution is:

Figure 3: Cumulative binomial distribution

Cumulative binomial distribution

See Also

Reference

WorksheetFunction Interface

WorksheetFunction Members

Microsoft.Office.Interop.Excel Namespace