WebCab Probability and Statistics Web Services for .NET v3.3 Demo

BinomialProbabilityDistribution.CumulativeProbability Method 

Evaluates the cumulative distribution function of the Binomial distribution.

public double CumulativeProbability(
   int numberOfSuccesses
);

Parameters

numberOfSuccesses
An integer at which the cumulative distribution function is evaluated. This corresponds to the maximum number of successes for which the probability will be summed over, that is, if 3 is given then the probability of 0, 1, 2, or 3 success is evaluated and the sum of these probabilities is returned.

Remarks

Before this method is called it is necesary to set the total number of trials and the probability of each of the trials being a successes using SetNumberOfTrials and SetProbabilityOfASuccess, respectively.

Further Explanation

This cumulative distribution function evaluates the probability of 0 or 1 or ... or numberOfSuccesses successes occuring during the trials, where the number of trials considered is set using SetNumberOfTrials, and the probability of each of these trials being a success is set using SetProbabilityOfASuccess.

Exceptions

Exception TypeCondition
BinomialProbabilityDistributionExceptionThrown if numberOfSuccesses does not lie within the interval [0,n].

See Also

BinomialProbabilityDistribution Class | ProbabilityDistributions Namespace