Definition:
A conditional probability is the probability of one proposition given that another proposition holds. For the probability of proposition A given proposition B, we write P(A|B).
Formula
The probability of A given B is equal to the probability of A and B divided by the probability of B. Look at the example below; because we know B is true, we are only comparing the probabilities in the first row, $ P(A \cap B) $ and $ P(\lnot A \cap B) $. Therefore, we must divide the probability we are looking for, $ P(A \cap B) $, by the sum of all probabilities in the first row, P(B).
Example:
Assume the following probability distribution for propositions A and B (not A and not B are written as !A and !B respectively):
A | !A | |
---|---|---|
B | 0.08 | 0.23 |
!B | 0.12 | 0.57 |