The Timpson Lyceum seal

The Timpson Lyceum · Discrete Math (2025)

Probabilities and Sample Spaces - Lecture 14 (Discrete Math)

Overview

This lecture opens the unit on probability, the mathematics of how likely an outcome is. The central lesson is that probabilities are deeply unintuitive: you cannot trust gut instinct and must instead reason carefully through every possible outcome. We build the formal object that makes this reasoning precise — the sample space, an ordered pair of a set of outcomes together with a probability function. We practice modeling coins, dice, spinners, and poker hands as sample spaces, then apply the idea to a real medical-testing scenario to show why a "90% accurate" test does not mean a positive result is right 90% of the time. The recurring theme: think it out, do not assume you already know the answer.

Key Concepts

Counting outcomes. To find a probability, list every equally likely outcome, then count how many are the ones you care about. The probability is (favorable outcomes) / (total outcomes).

Order matters in a sequence. A single specific sequence (e.g. HTH) has probability 18\tfrac18, but an event described by a count (e.g. "two heads and one tail") collects several sequences. There are three sequences with exactly two heads (HHT, HTH, THH), so P(exactly two heads in three flips)=38P(\text{exactly two heads in three flips}) = \tfrac38, while P(HHH)=18P(\text{HHH}) = \tfrac18. You are three times more likely to get two-heads-one-tail than three heads.

The two-children puzzle. A couple has two children and at least one is a boy; the chance the other is also a boy is 13\tfrac13, not 12\tfrac12. The ordered outcomes are BB, BG, GB, GG. Knowing one child is a boy rules out GG, leaving three equally likely cases, only one of which (BB) is two boys.

Sample space (the key definition). A sample space is an ordered pair (S,P)(S, P) where:

PP is called the probability function and SS the set of outcomes.

There is no "right" or "wrong" sample space — only more or less useful ones. The same scenario can be modeled many ways. A fair die can be modeled as S={1,2,3,4,5,6}S = \{1,2,3,4,5,6\} with P(s)=16P(s) = \tfrac16, or with lopsided probabilities (as long as they are non-negative and sum to 1, it is still a valid sample space — just not a faithful model of a fair die). The "useful" model is the one that fits your purpose.

Shorthand notation. When every outcome shares the same probability, write P(s)=16 for all s∈SP(s) = \tfrac16 \text{ for all } s \in S instead of listing each outcome separately.

Standard sample spaces:

Independent trials and the gambler's fallacy. After spinning red five times in a row, the next spin is still equally likely red or black — past independent results do not change future ones. The confusion comes from mixing two different questions: before spinning four times, "three reds and one black" is more likely than "four blacks"; but given you have already seen reds, the next single spin is 50/50. The same logic explains why, among many mothers each guessing the sexes of three children, a majority guess "more than half" correct purely by chance — and the lucky ones wrongly credit a method.

Reading a probability function as a table. Given a list like P(1)=0.1,P(2)=0.4,P(3)=0.5,P(4)=0,P(5)=0,P(6)=0P(1)=0.1, P(2)=0.4, P(3)=0.5, P(4)=0, P(5)=0, P(6)=0, check it is a sample space: each value is ≥0\ge 0 (zero is allowed — an outcome can be impossible) and they sum to 1.

Conditional reasoning: accuracy is not predictive value. "90% accurate" means: if you have the condition, the test reads positive 90% of the time, and if you don't, it reads negative 90% of the time. It does not mean a positive result is correct 90% of the time. To find the chance you actually have the condition given a positive test, you must account for how rare the condition is in the whole population — base rates dominate when the condition is uncommon.

All scientific knowledge is probabilistic. Only in mathematics is a proven result certain. Empirical fields carry confidence levels — roughly physics 99.99%, chemistry 99.7–99.99%, biology 90–95%, social sciences 60–80%. Combined with the fact that only a small fraction of all proposed theories are correct, a "proven" social-science result can have a surprisingly low chance of actually being true (worked below).

Worked Example

Positive test, low prevalence. 10% of a population has a condition, and a test is 90% accurate. If your test comes back positive, what is the probability you actually have the condition? Use a population of 100 people and split by true status, then apply the test's accuracy to each group; the answer is (true positives) / (all positives).

P(positive∣has it)=0.90,P(positive∣doesn’t)=0.10Has it:100×0.10=10 ⇒ true positives=10×0.90=9Doesn’t:100×0.90=90 ⇒ false positives=90×0.10=9P(has it∣positive)=true positivesall positives=99+9=918=0.50\begin{aligned} P(\text{positive} \mid \text{has it}) &= 0.90,\quad P(\text{positive} \mid \text{doesn't}) = 0.10 \\ \text{Has it:}\quad 100 \times 0.10 &= 10 \ \Rightarrow\ \text{true positives} = 10 \times 0.90 = 9 \\ \text{Doesn't:}\quad 100 \times 0.90 &= 90 \ \Rightarrow\ \text{false positives} = 90 \times 0.10 = 9 \\ P(\text{has it} \mid \text{positive}) &= \frac{\text{true positives}}{\text{all positives}} = \frac{9}{9 + 9} = \frac{9}{18} = 0.50 \end{aligned}

Even with a "90% accurate" test, a positive result means only a 50% chance of actually having the condition — because most positives come from the much larger healthy group. Lowering the prevalence below 10% makes this even worse.

A social-science theory "proven true." Assume (generously) 10% of all proposed theories are correct, and the field's tests run at 60% accuracy. Among 100 theories:

False theories: 90 ⇒ wrongly "proven true"=90×0.40=36True theories: 10 ⇒ correctly "proven true"=10×0.60=6P(true∣proven true)=66+36=642≈0.14\begin{aligned} \text{False theories:}\ 90 &\ \Rightarrow\ \text{wrongly "proven true"} = 90 \times 0.40 = 36 \\ \text{True theories:}\ 10 &\ \Rightarrow\ \text{correctly "proven true"} = 10 \times 0.60 = 6 \\ P(\text{true} \mid \text{proven true}) &= \frac{6}{6 + 36} = \frac{6}{42} \approx 0.14 \end{aligned}

So a "proven" result in such a field has only about a 14% chance of being correct.

Summary