Calculates the probability of the intersection of two sets of events occurring where the two sets of events are taken from the same probability space.
The probability of the intersection of eventsA
and eventsB
.
Before this method is called the set of events and the corresponding probabilities of each event within each of the two sets of events must be set using SetProbability, or SetProbability.
If the probability measure of the set under consideration is
p = {0.2, 0.3, 0.4, 0.1}
, and we consider the two (sub)sets of
events eventsA = {0, 2}
(i.e. the events corresponding to
probabilities 0.2
, 0.4
), and eventB = {0, 3}
(i.e. the events corresponding to probabilities 0.2
, 0.1
).
In such situations this method will return the probability of the events corresponding
to the intersection of these two sets of events occurring. That is, the probability of
the 0th event with a probability of 0.2
occurring.
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 | WebCab.COM.Statistics.DiscretePrb Namespace | SetProbability | SetProbability