i believe the generic formula is : P(A OR B) = P(A) + P(B) - P(A/B)
where P(A/B) is the probability of occurrence of A given B has occurred ,i.e, the probability of occurrence of A & B. (or use P(B/A) instead)
Now,
For independent events, P(A/B) = P(A)*P(B) (as in this example)
For dependent events, P(A/B) != P(A)*P(B) (e.g: drawing cards without replacement from a deck)
For mutually exclusive events P(A/B) = 0 (as A & B cant occur together)
lets take a simple example: I roll a fair dice. What's the probability that i get a prime or an odd number?
Solution:
(i) counting method
p = favorable outcomes{1,2,3,5} / total outcomes = 4 / 6 .
(ii) individual probabilities method:
p(prime){2,3,5} = 3 / 6
p(odd){1,3,5} = 3 / 6
p(prime and odd){3,5} = 2 / 6
so, p(prime or odd) = 3/6 + 3/6 - 2/6 = 4 / 6 .
My understanding is that set theory & probability theory are, in a way, analogous.
Any inputs? Anybody?