Most probability questions reduce to counting: how many outcomes are there, and how many of them are the ones you want. The rules that follow all rest on that.
Sample spaces
The sample space S S S is the set of all possible outcomes. When they are equally likely,
P ( A ) = n ( A ) n ( S ) P(A) = \frac{n(A)}{n(S)} P ( A ) = n ( S ) n ( A )
Two fair dice. The sample space has 6 × 6 = 36 6 \times 6 = 36 6 × 6 = 36 ordered pairs.
P ( sum = 7 ) = 6 36 = 1 6 P ( sum ≥ 10 ) = 3 + 2 + 1 36 = 1 6 P(\text{sum} = 7) = \frac{6}{36} = \frac16 \qquad P(\text{sum} \ge 10) = \frac{3+2+1}{36} = \frac16 P ( sum = 7 ) = 36 6 = 6 1 P ( sum ≥ 10 ) = 36 3 + 2 + 1 = 6 1
since 10 arises 3 ways, 11 two ways and 12 one way.
Common mistake ( 1 , 6 ) (1,6) ( 1 , 6 ) and ( 6 , 1 ) (6,1) ( 6 , 1 ) are different outcomes — the dice are distinguishable even when identical in appearance. Counting them once halves the answer and is the most common error with two dice.
For "at least one", the complement is quicker:
P ( at least one six ) = 1 − P ( no six ) = 1 − ( 5 6 ) 2 = 11 36 P(\text{at least one six}) = 1 - P(\text{no six}) = 1 - \left(\frac56\right)^2 = \frac{11}{36} P ( at least one six ) = 1 − P ( no six ) = 1 − ( 6 5 ) 2 = 36 11
Counting and probability
When the sample space is too large to list, count it with combinations.
A committee of 3 is chosen at random from 6 men and 4 women.
Total ways: ( 10 3 ) = 120 \binom{10}{3} = 120 ( 3 10 ) = 120 .
P ( all three women ) = ( 4 3 ) ( 10 3 ) = 4 120 = 1 30 P(\text{all three women}) = \frac{\binom43}{\binom{10}{3}} = \frac{4}{120} = \frac{1}{30} P ( all three women ) = ( 3 10 ) ( 3 4 ) = 120 4 = 30 1
P ( exactly two women ) = ( 4 2 ) ( 6 1 ) ( 10 3 ) = 6 × 6 120 = 3 10 P(\text{exactly two women}) = \frac{\binom42\binom61}{\binom{10}{3}} = \frac{6 \times 6}{120} = \frac{3}{10} P ( exactly two women ) = ( 3 10 ) ( 2 4 ) ( 1 6 ) = 120 6 × 6 = 10 3
Key result Choose the required members from each group and multiply, then divide by the total number of selections. Since order does not matter in a committee, combinations are used throughout — top and bottom must be consistent.
The addition and multiplication rules
P ( A ∪ B ) = P ( A ) + P ( B ) − P ( A ∩ B ) P(A \cup B) = P(A) + P(B) - P(A \cap B) P ( A ∪ B ) = P ( A ) + P ( B ) − P ( A ∩ B )
P ( A ∩ B ) = P ( A ) P ( B ∣ A ) P(A \cap B) = P(A)\,P(B \mid A) P ( A ∩ B ) = P ( A ) P ( B ∣ A )
The second holds always. When the events are independent it simplifies to P ( A ) P ( B ) P(A)P(B) P ( A ) P ( B ) .
Common mistake Use P ( A ) P ( B ) P(A)P(B) P ( A ) P ( B ) only after checking independence. Drawing without replacement is the classic case where it fails — the second probability depends on the first.
Conditional probability from a table
Two-way tables make conditional probability almost mechanical: the condition selects a row or column, and that becomes the new denominator.
Male
Female
Total
Passed
30
45
75
Failed
20
15
35
Total
50
60
110
P ( passed ) = 75 110 = 15 22 P(\text{passed}) = \frac{75}{110} = \frac{15}{22} P ( passed ) = 110 75 = 22 15
P ( passed ∣ female ) = 45 60 = 3 4 P(\text{passed} \mid \text{female}) = \frac{45}{60} = \frac34 P ( passed ∣ female ) = 60 45 = 4 3
P ( female ∣ passed ) = 45 75 = 3 5 P(\text{female} \mid \text{passed}) = \frac{45}{75} = \frac35 P ( female ∣ passed ) = 75 45 = 5 3
Are passing and being female independent?
P ( passed ) × P ( female ) = 75 110 × 60 110 = 0.372 P(\text{passed}) \times P(\text{female}) = \frac{75}{110} \times \frac{60}{110} = 0.372 P ( passed ) × P ( female ) = 110 75 × 110 60 = 0.372
P ( passed ∩ female ) = 45 110 = 0.409 P(\text{passed} \cap \text{female}) = \frac{45}{110} = 0.409 P ( passed ∩ female ) = 110 45 = 0.409
These differ, so the events are not independent — women passed at a higher rate than the group as a whole.
Key result Conditioning changes the denominator . "Given female" restricts attention to the 60 women, so 60 replaces 110. Notice how different P ( passed ∣ female ) = 0.75 P(\text{passed}\mid\text{female}) = 0.75 P ( passed ∣ female ) = 0.75 is from P ( female ∣ passed ) = 0.6 P(\text{female}\mid\text{passed}) = 0.6 P ( female ∣ passed ) = 0.6 .
Tree diagrams for several stages
A factory has three machines. A makes 50% of output, B 30%, C 20%. Their defect rates are 2%, 3% and 5%.
The first branches give the machine, the second whether the item is defective.
P ( A ∩ D ) = 0.5 × 0.02 = 0.010 P(A \cap D) = 0.5 \times 0.02 = 0.010 P ( A ∩ D ) = 0.5 × 0.02 = 0.010
P ( B ∩ D ) = 0.3 × 0.03 = 0.009 P(B \cap D) = 0.3 \times 0.03 = 0.009 P ( B ∩ D ) = 0.3 × 0.03 = 0.009
P ( C ∩ D ) = 0.2 × 0.05 = 0.010 P(C \cap D) = 0.2 \times 0.05 = 0.010 P ( C ∩ D ) = 0.2 × 0.05 = 0.010
Multiply along a branch; add between branches. The branches leaving any node must sum to 1, and so must the complete set of end-points.
Total probability and Bayes
The law of total probability collects every route to an outcome:
P ( D ) = P ( D ∣ A ) P ( A ) + P ( D ∣ B ) P ( B ) + P ( D ∣ C ) P ( C ) P(D) = P(D\mid A)P(A) + P(D\mid B)P(B) + P(D\mid C)P(C) P ( D ) = P ( D ∣ A ) P ( A ) + P ( D ∣ B ) P ( B ) + P ( D ∣ C ) P ( C )
= 0.010 + 0.009 + 0.010 = 0.029 = 0.010 + 0.009 + 0.010 = 0.029 = 0.010 + 0.009 + 0.010 = 0.029
So 2.9% of output is defective.
Bayes' theorem then reverses the conditioning:
P ( A ∣ D ) = P ( D ∣ A ) P ( A ) P ( D ) = 0.010 0.029 = 0.345 P(A \mid D) = \frac{P(D \mid A)P(A)}{P(D)} = \frac{0.010}{0.029} = 0.345 P ( A ∣ D ) = P ( D ) P ( D ∣ A ) P ( A ) = 0.029 0.010 = 0.345
A defective item is most likely to have come from machine A — despite A having the lowest defect rate, because it makes half of everything.
Key result On a tree diagram, Bayes is simply "the branch you want, divided by the sum of all branches ending in that outcome". The formula and the picture are the same calculation.
Common mistake Machine C has the worst defect rate but produces the fewest defective items in total. Confusing "the rate given the machine" with "the machine given a defect" is the single most consequential error in applied probability.