WorksheetFunction.Binom_Dist(Double, Double, Double, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the individual term binomial distribution probability.
public:
double Binom_Dist(double Arg1, double Arg2, double Arg3, bool Arg4);
public double Binom_Dist (double Arg1, double Arg2, double Arg3, bool Arg4);
Public Function Binom_Dist (Arg1 As Double, Arg2 As Double, Arg3 As Double, Arg4 As Boolean) As Double
Parameters
- Arg1
- Double
Number_s - the number of successes in trials.
- Arg2
- Double
Trials - the number of independent trials.
- Arg3
- Double
Probability_s - the probability of success on each trial.
- Arg4
- 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.
Returns
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:
Where:
Figure 2: Equation
is COMBIN(n,x).
The cumulative binomial distribution is:
Figure 3: Cumulative binomial distribution