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

Probability.ComplementaryProbability Method 

Calculates the probability for the complementary set of events.

public double ComplementaryProbability(
   int[] eventsA
);

Parameters

eventsA
The set of events given as an array of integer which corresponds to the index of the events within the set of all events.

Return Value

The probability of the complement of the set of events eventA, that is the probability of an event taking place from the probability space which is not contained within the set of events eventA.

Remarks

Example

If the probability measure of the set is p = {0.2, 0.3, 0.4, 0.1}, and we consider a (sub)set of events A = {1, 3}, then the events which form the complimentary set of events is A = {0, 2}, and the probability of one of these events occurring is 0.2+0.4=0.6.

Exceptions

Exception TypeCondition
IncompatibleEventExceptionThrown if any of two events is incorrect.
ProbabilityNotSetExceptionThrown if the probability measure has not been set using SetProbability.

See Also

Probability Class | DiscreteProbability Namespace | SetProbability | SetProbability