WebCab Probability and Statistics for COM v3.3 Demo

Probability.ProbabilityOfUnion Method 

Applies the intersection law to find the probability of the union of two sets of events.

public double ProbabilityOfUnion(
   double probabilityOfA,
   double probabilityOfB,
   double probIntersection
);

Parameters

probabilityOfA
The probability of the first set of events A.
probabilityOfB
The probability of the second set of events B.
probIntersection
The probability of the intersection between the first and second set of events.

Return Value

The probability of the union between the two events.

Remarks

That is, we calculate the probability of the union between two sets of events when the probabilities of each set and the intersection is known.

Exceptions

Exception TypeCondition
WrongProbabilityExceptionThrown if any of the measures of probability is not within [0,1].

See Also

Probability Class | WebCab.COM.Statistics.DiscretePrb Namespace