Probability is built on three axioms, and everything else — the addition rule, conditional probability, Bayes' theorem — follows from them. Knowing which rule applies is a matter of reading the question's connective: and, or, or given.
The axioms of probability
For any event A in a sample space S:
0≤P(A)≤1P(S)=1P(A∪B)=P(A)+P(B)when A and B are mutually exclusive
From these follows the complement rule:
P(A′)=1−P(A)
so if P(A)=0.3 then P(A′)=0.7.
Venn diagrams and set notation
Notation
Meaning
A∩B
both AandB
A∪B
AorBor both
A′
notA
A∩B′
A but not B
A Venn diagram is the fastest way to organise the information. Fill in the intersection first, then work outwards by subtraction.
Given P(A)=0.5, P(B)=0.4 and P(A∩B)=0.2:
Only A: 0.5−0.2=0.3
Only B: 0.4−0.2=0.2
Both: 0.2
Neither: 1−(0.3+0.2+0.2)=0.3
The four regions total 1 ✓
The addition rule
P(A∪B)=P(A)+P(B)−P(A∩B)
With the figures above:
P(A∪B)=0.5+0.4−0.2=0.7
The subtraction removes the overlap, which adding P(A) and P(B) counts twice.
Mutually exclusive events cannot both occur, so P(A∩B)=0 and the rule simplifies to P(A)+P(B).
Conditional probability and independence
P(A∣B)=P(B)P(A∩B)
Rearranged, this is the multiplication rule:
P(A∩B)=P(B)P(A∣B)=P(A)P(B∣A)
With the figures above:
P(A∣B)=0.40.2=0.5
Since P(A∣B)=0.5=P(A), knowing that B occurred tells us nothing about A: the events are independent. Confirming it the other way, P(A)P(B)=0.5×0.4=0.2=P(A∩B) ✓
Tree diagrams
A tree diagram handles several stages, especially without replacement, where the probabilities change as you go.
A bag holds 4 red and 6 blue balls. Two are drawn without replacement.
First branches: P(R)=104, P(B)=106.
Second branches depend on the first — after a red is taken, 9 balls remain of which 3 are red.
where the denominator is usually built from the law of total probability:
P(B)=P(B∣A)P(A)+P(B∣A′)P(A′)
Bayes reverses a conditional probability — from "the probability of a positive test given the disease" to "the probability of the disease given a positive test".
A disease affects 1% of a population. The test detects it in 95% of those who have it, and gives a false positive for 4% of those who do not. A person tests positive. What is the probability they have the disease?