Salick Academy

Probability Theory

No calculator

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 AA in a sample space SS:

0P(A)10 \le P(A) \le 1 P(S)=1P(S) = 1 P(AB)=P(A)+P(B)when A and B are mutually exclusiveP(A \cup B) = P(A) + P(B) \quad \text{when } A \text{ and } B \text{ are mutually exclusive}

From these follows the complement rule:

P(A)=1P(A)P(A') = 1 - P(A)

so if P(A)=0.3P(A) = 0.3 then P(A)=0.7P(A') = 0.7.

Venn diagrams and set notation

Notation Meaning
ABA \cap B both AA and BB
ABA \cup B AA or BB or both
AA' not AA
ABA \cap B' AA but not BB

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.5P(A) = 0.5, P(B)=0.4P(B) = 0.4 and P(AB)=0.2P(A \cap B) = 0.2:

  • Only AA: 0.50.2=0.30.5 - 0.2 = 0.3
  • Only BB: 0.40.2=0.20.4 - 0.2 = 0.2
  • Both: 0.20.2
  • Neither: 1(0.3+0.2+0.2)=0.31 - (0.3 + 0.2 + 0.2) = 0.3

The four regions total 1 ✓

The addition rule

P(AB)=P(A)+P(B)P(AB)P(A \cup B) = P(A) + P(B) - P(A \cap B)

With the figures above:

P(AB)=0.5+0.40.2=0.7P(A \cup B) = 0.5 + 0.4 - 0.2 = 0.7

The subtraction removes the overlap, which adding P(A)P(A) and P(B)P(B) counts twice.

Mutually exclusive events cannot both occur, so P(AB)=0P(A \cap B) = 0 and the rule simplifies to P(A)+P(B)P(A) + P(B).

Conditional probability and independence

P(AB)=P(AB)P(B)P(A \mid B) = \frac{P(A \cap B)}{P(B)}

Rearranged, this is the multiplication rule:

P(AB)=P(B)P(AB)=P(A)P(BA)P(A \cap B) = P(B)\,P(A \mid B) = P(A)\,P(B \mid A)

With the figures above:

P(AB)=0.20.4=0.5P(A \mid B) = \frac{0.2}{0.4} = 0.5

Since P(AB)=0.5=P(A)P(A \mid B) = 0.5 = P(A), knowing that BB occurred tells us nothing about AA: the events are independent. Confirming it the other way, P(A)P(B)=0.5×0.4=0.2=P(AB)P(A)P(B) = 0.5 \times 0.4 = 0.2 = P(A \cap 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)=410P(R) = \frac{4}{10}, P(B)=610P(B) = \frac{6}{10}.

Second branches depend on the first — after a red is taken, 9 balls remain of which 3 are red.

P(RR)=410×39=1290=215P(RR) = \frac{4}{10} \times \frac{3}{9} = \frac{12}{90} = \frac{2}{15} P(RB)=410×69=2490P(BR)=610×49=2490P(RB) = \frac{4}{10} \times \frac{6}{9} = \frac{24}{90} \qquad P(BR) = \frac{6}{10} \times \frac{4}{9} = \frac{24}{90} P(BB)=610×59=3090=13P(BB) = \frac{6}{10} \times \frac{5}{9} = \frac{30}{90} = \frac13

Check: 12+24+24+3090=1\frac{12 + 24 + 24 + 30}{90} = 1

Bayes' theorem

P(AB)=P(BA)P(A)P(B)P(A \mid B) = \frac{P(B \mid A)\,P(A)}{P(B)}

where the denominator is usually built from the law of total probability:

P(B)=P(BA)P(A)+P(BA)P(A)P(B) = P(B\mid A)P(A) + P(B\mid 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?

P(D)=0.01P(+D)=0.95P(+D)=0.04P(D) = 0.01 \qquad P(+\mid D) = 0.95 \qquad P(+\mid D') = 0.04

P(+)=(0.95)(0.01)+(0.04)(0.99)=0.0095+0.0396=0.0491P(+) = (0.95)(0.01) + (0.04)(0.99) = 0.0095 + 0.0396 = 0.0491

P(D+)=0.00950.0491=0.193 (3 s.f.)P(D \mid +) = \frac{0.0095}{0.0491} = 0.193 \text{ (3 s.f.)}

So fewer than one in five people who test positive actually have the disease — despite a test that sounds highly accurate.