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 and read off its consequences. The second half introduces conditional probability and independence, the -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 where is the set of all possible outcomes and is a probability function. Two rules constrain : every outcome has , and the probabilities of all outcomes sum to , i.e. . For a fair mechanism, every outcome is equally likely; e.g. rolling two dice gives and for each .
Event. Given a sample space , any subset is an event. Its probability is the sum of the probabilities of the outcomes inside it: The full set and the empty set are both valid events; the set of all events is the power set of .
Equally-likely shortcut. When every outcome has the same probability, This is why "rolling a 7" with two dice has probability — six of the thirty-six outcomes sum to . This shortcut requires the fairness assumption; it fails for biased coins or uneven spinners.
Counting events with combinations. For five coin flips, . The number of outcomes with exactly heads is , using So exactly two heads gives outcomes. Note (choosing which to include is the same as choosing which to leave out), and the counts form a row of Pascal's triangle — the binomial coefficients.
Complement rule and the "at least one" trick. The complement is everything in not in , and 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 outcomes out of , so Caution: you cannot cancel exponents — , not .
Inclusion–exclusion identity. For any two events in the same sample space, The proof is a counting argument: for any outcome , check the four cases (in neither, in only, in only, in both) and verify 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.
- If (disjoint events), then .
- In general (subadditivity), with equality exactly when .
- and (the empty sum is ).
Conditional probability. The probability of given has occurred, written , restricts attention to the outcomes inside . For , Geometrically, it is the fraction of 's region that covers. Order matters: and are generally very different.
Independence. Events and are independent if and only if Equivalently, knowing occurred does not change the odds of : . 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).
-fold repeated trial sample space. Given and a positive integer , let ( copies). Then is the -fold repeated trial sample space, where an outcome's probability is the product of its components' probabilities: This lets you reuse one die's sample space for rolling several dice without redefining it. For one fair die, . For a biased coin with (so ), the sequence HHTHH has probability .
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 , so the car is behind one of the other doors with probability — and the host's reveal concentrates that onto the single remaining unopened door. Switching wins exactly when your first pick was wrong, which happens of the time.
Worked Example
Two dice. Let = "rolled an 8" and = "rolled an even total." Find .
There are ways to total (namely ), so . Half of the outcomes give an even total, so and . Since every "total of 8" outcome is also even, , giving .
Apply the conditional probability definition (symbolic rule first, then substitute):
This matches the intuitive count: knowing the total is even narrows the world to outcomes, of which total .
Summary
- An event is any subset , and ; for equally likely outcomes this reduces to .
- Count events with combinations (Pascal's triangle / binomial coefficients), and use the complement to handle "at least one" questions cleanly.
- The identity holds for all events; it gives the disjoint-additivity rule, the bound , and , .
- Conditional probability is , restricting the world to ; note in general.
- Events are independent iff , equivalently ; the -fold repeated trial space multiplies component probabilities, .
- In Monty Hall, always switch: staying wins with probability , switching with probability .