Calculates the conditional probability which is usually denoted by A|B.
The conditional probability of eventA, when eventB is known to occur.
The conditional probability is the probability of an event A taking place
when it is known that event B occurs.
If the probability measure on a set is p = {0.2, 0.3, 0.4, 0.1}, and
we have two sets of events A = {0, 2}, and B = {0, 3}, then
the probability of A|B, will be 0.33.
| Exception Type | Condition |
|---|---|
| IncompatibleEventException | Thrown if any of two events is incorrect. |
| ProbabilityNotSetException | Thrown if the probability measure has not been set using SetProbability. |
Probability Class | DiscreteProbability Namespace | SetProbability | SetProbability