The Timpson Lyceum seal

The Timpson Lyceum · Discrete Math (2025)

Probability: Events, Conditional Probability, and Independence - Lecture 15 (Discrete Math)

Overview

This lecture builds the working machinery of discrete probability on top of last week's sample spaces. An event is formalized as any subset of the sample space, and its probability is the sum of the probabilities of the outcomes it contains. We compute event probabilities across many settings — dice sums, repeated coin flips, poker hands, family compositions, and the birthday problem — leaning heavily on counting and on the complement trick for "at least one" questions. We then prove the inclusion–exclusion identity P(A)+P(B)=P(A∩B)+P(A∪B)P(A) + P(B) = P(A \cap B) + P(A \cup B) and read off its consequences. The second half introduces conditional probability and independence, the nn-fold repeated trial sample space, and closes with the classic Monty Hall problem.

Key Concepts

Sample space (recap). A sample space is an ordered pair (S,P)(S, P) where SS is the set of all possible outcomes and PP is a probability function. Two rules constrain PP: every outcome has P(s)≥0P(s) \ge 0, and the probabilities of all outcomes sum to 11, i.e. ∑s∈SP(s)=1\sum_{s \in S} P(s) = 1. For a fair mechanism, every outcome is equally likely; e.g. rolling two dice gives ∣S∣=36|S| = 36 and P(s)=136P(s) = \tfrac{1}{36} for each ss.

Event. Given a sample space (S,P)(S,P), any subset A⊆SA \subseteq S is an event. Its probability is the sum of the probabilities of the outcomes inside it: P(A)=∑a∈AP(a).P(A) = \sum_{a \in A} P(a). The full set SS and the empty set ∅\varnothing are both valid events; the set of all events is the power set of SS.

Equally-likely shortcut. When every outcome has the same probability, P(A)=∣A∣∣S∣.P(A) = \frac{|A|}{|S|}. This is why "rolling a 7" with two dice has probability 636\tfrac{6}{36} — six of the thirty-six outcomes sum to 77. This shortcut requires the fairness assumption; it fails for biased coins or uneven spinners.

Counting events with combinations. For five coin flips, ∣S∣=25=32|S| = 2^5 = 32. The number of outcomes with exactly kk heads is (5k)\binom{5}{k}, using (nk)=n!(n−k)! k!.\binom{n}{k} = \frac{n!}{(n-k)!\,k!}. So exactly two heads gives (52)=10\binom{5}{2} = 10 outcomes. Note (nk)=(nn−k)\binom{n}{k} = \binom{n}{n-k} (choosing which to include is the same as choosing which to leave out), and the counts 1,5,10,10,5,11,5,10,10,5,1 form a row of Pascal's triangle — the binomial coefficients.

Complement rule and the "at least one" trick. The complement AcA^c is everything in SS not in AA, and P(Ac)=1−P(A).P(A^c) = 1 - P(A). For "at least one" questions, count the complement instead. Rolling one die ten times, the chance of at least one 1 is hard to count directly, but its complement (no 1's) has 5105^{10} outcomes out of 6106^{10}, so P(at least one 1)=1−510610≈0.838.P(\text{at least one }1) = 1 - \frac{5^{10}}{6^{10}} \approx 0.838. Caution: you cannot cancel exponents — 510610=(56)10\tfrac{5^{10}}{6^{10}} = \left(\tfrac{5}{6}\right)^{10}, not 56\tfrac{5}{6}.

Inclusion–exclusion identity. For any two events A,BA, B in the same sample space, P(A)+P(B)=P(A∩B)+P(A∪B).P(A) + P(B) = P(A \cap B) + P(A \cup B). The proof is a counting argument: for any outcome ss, check the four cases (in neither, in AA only, in BB only, in both) and verify P(s)P(s) appears the same number of times on each side. An outcome in both sides shows up twice on each side; an outcome in exactly one set shows up once on each; an outcome in neither shows up zero times. Since both sides accumulate the same terms, they are equal.

Consequences of the identity.

Conditional probability. The probability of AA given BB has occurred, written P(A∣B)P(A \mid B), restricts attention to the outcomes inside BB. For P(B)≠0P(B) \ne 0, P(A∣B)=P(A∩B)P(B).P(A \mid B) = \frac{P(A \cap B)}{P(B)}. Geometrically, it is the fraction of BB's region that AA covers. Order matters: P(A∣B)P(A \mid B) and P(B∣A)P(B \mid A) are generally very different.

Independence. Events AA and BB are independent if and only if P(A∩B)=P(A) P(B).P(A \cap B) = P(A)\,P(B). Equivalently, knowing BB occurred does not change the odds of AA: P(A∣B)=P(A)P(A \mid B) = P(A). Example: the first flip being heads is independent of the last flip being tails. But conditioning on aggregate information can break independence — "first flip is heads" is not independent of "exactly three of five flips are tails." A common gambler's error is confusing these two kinds of questions (e.g. the roulette "due for red" fallacy).

nn-fold repeated trial sample space. Given (S,P)(S, P) and a positive integer nn, let Sn=S×S×⋯×SS^n = S \times S \times \cdots \times S (nn copies). Then (Sn,P)(S^n, P) is the nn-fold repeated trial sample space, where an outcome's probability is the product of its components' probabilities: P(s1,s2,…,sn)=∏k=1nP(sk).P(s_1, s_2, \ldots, s_n) = \prod_{k=1}^{n} P(s_k). This lets you reuse one die's sample space for rolling several dice without redefining it. For one fair die, P(1,1)=16⋅16=136P(1,1) = \tfrac16 \cdot \tfrac16 = \tfrac{1}{36}. For a biased coin with P(heads)=pP(\text{heads}) = p (so P(tails)=1−pP(\text{tails}) = 1 - p), the sequence HHTHH has probability p4(1−p)p^4(1-p).

Monty Hall problem. Three doors hide one car and two goats. You pick a door; the host then opens a different door revealing a goat and offers a switch. You should always switch: your original pick is correct with probability 13\tfrac13, so the car is behind one of the other doors with probability 23\tfrac23 — and the host's reveal concentrates that 23\tfrac23 onto the single remaining unopened door. Switching wins exactly when your first pick was wrong, which happens 23\tfrac23 of the time.

Worked Example

Two dice. Let AA = "rolled an 8" and BB = "rolled an even total." Find P(A∣B)P(A \mid B).

There are 55 ways to total 88 (namely 2+6, 3+5, 4+4, 5+3, 6+22{+}6,\,3{+}5,\,4{+}4,\,5{+}3,\,6{+}2), so P(A)=536P(A) = \tfrac{5}{36}. Half of the 3636 outcomes give an even total, so ∣B∣=18|B| = 18 and P(B)=1836=12P(B) = \tfrac{18}{36} = \tfrac12. Since every "total of 8" outcome is also even, A∩B=AA \cap B = A, giving P(A∩B)=536P(A \cap B) = \tfrac{5}{36}.

Apply the conditional probability definition (symbolic rule first, then substitute):

P(A∣B)=P(A∩B)P(B)=5/3618/36=536⋅3618=518.\begin{aligned} P(A \mid B) &= \frac{P(A \cap B)}{P(B)} \\ &= \frac{5/36}{18/36} \\ &= \frac{5}{36} \cdot \frac{36}{18} \\ &= \frac{5}{18}. \end{aligned}

This matches the intuitive count: knowing the total is even narrows the world to 1818 outcomes, 55 of which total 88.

Summary