Skip to content
LeetQuant
F3 Probability and Bayesian Reasoning

F3 · Probability and Bayesian Reasoning · Lesson 2 of 4

Axioms and Sample Spaces

Build a probability model from Kolmogorov's axioms, derive the rules you use every day, and choose sample spaces that make the classic ambiguities disappear.

16 min

Why bother with axioms?

Most wrong answers to interview probability puzzles are not arithmetic slips. They come from an unstated or inconsistent model: the candidate counts outcomes that are not equally likely, or conditions on an event different from the one described. The objective of this lesson is to make the model explicit every time: what are the outcomes, which events can we ask about, and how much probability does each get?

A probability model is a triple (Ω,F,P)(\Omega, \mathcal F, P):

  • Ω\Omega, the sample space: the set of all outcomes of the experiment, one of which occurs.
  • F\mathcal F, the events: the subsets of Ω\Omega we may assign probabilities to (for finite Ω\Omega, take every subset).
  • PP, the probability measure, satisfying Kolmogorov's three axioms:
  1. Non-negativity: P(A)≥0P(A) \ge 0 for every event AA.
  2. Normalisation: P(Ω)=1P(\Omega) = 1.
  3. Countable additivity: if A1,A2,…A_1, A_2, \dots are pairwise disjoint, then P(⋃iAi)=∑iP(Ai)P\big(\bigcup_i A_i\big) = \sum_i P(A_i).

Everything else is a theorem.

Consequences you should be able to derive on the spot

  • Empty set: Ω=Ω∪∅∪∅∪⋯\Omega = \Omega \cup \varnothing \cup \varnothing \cup \cdots with disjoint pieces, so P(∅)=0P(\varnothing) = 0.
  • Complement: AA and AcA^c are disjoint with union Ω\Omega, so P(Ac)=1−P(A)P(A^c) = 1 - P(A).
  • Monotonicity: if A⊆BA \subseteq B then B=A∪(B∖A)B = A \cup (B \setminus A), so P(A)≤P(B)P(A) \le P(B); in particular P(A)≤1P(A) \le 1.
  • Inclusion–exclusion: split A∪BA \cup B into the disjoint pieces AA and B∖AB \setminus A, and BB into A∩BA \cap B and B∖AB \setminus A: P(A∪B)=P(A)+P(B)−P(A∩B).P(A \cup B) = P(A) + P(B) - P(A \cap B).
  • Union bound (Boole): P(⋃iAi)≤∑iP(Ai)P\big(\bigcup_i A_i\big) \le \sum_i P(A_i).
  • Bounds on an intersection (Fréchet): from inclusion–exclusion and P(A∪B)≤1P(A \cup B) \le 1, max⁡(0,  P(A)+P(B)−1)  ≤  P(A∩B)  ≤  min⁡(P(A),P(B)).\max\big(0,\; P(A) + P(B) - 1\big) \;\le\; P(A \cap B) \;\le\; \min\big(P(A), P(B)\big).

The Fréchet bounds are an interview favourite because they need no assumption about dependence. If two signals each fire on 90% of days, they fire together on at least 80% of days, whatever their correlation.

Choose the sample space that makes outcomes equally likely

When Ω\Omega is finite and every outcome has the same probability, P(A)=∣A∣/∣Ω∣P(A) = |A| / |\Omega|. The skill is choosing an Ω\Omega for which "equally likely" is actually true. The reliable recipe is to label everything, even objects that look identical, and record outcomes in the order the physical randomness produces them.

  • Two dice: use the 36 ordered pairs (i,j)(i, j), not the 11 sums or the 21 unordered pairs. Treating the sums as equally likely would give P(sum=7)=111P(\text{sum} = 7) = \tfrac1{11} instead of the correct 636=16\tfrac{6}{36} = \tfrac16.
  • Two coin flips: d'Alembert famously argued that "at least one head in two tosses" has probability 23\tfrac23, using the outcomes {H,TH,TT}\{H, TH, TT\} (stop once a head appears). Those three outcomes are not equally likely: HH has probability 12\tfrac12. With {HH,HT,TH,TT}\{HH, HT, TH, TT\} the answer is 34\tfrac34.
  • Cards: treat the deck as 52 distinct cards and a deal as an ordered sequence or a subset of distinct cards. Coarser descriptions ("a pair and three others") are events, not outcomes.

The coarse description is still useful as an event; the mistake is giving each coarse category equal weight.

Worked example

Galileo's dice

With three dice, a total of 9 and a total of 10 can each be written as six unordered partitions:

  • 9: {1,2,6},{1,3,5},{1,4,4},{2,2,5},{2,3,4},{3,3,3}\{1,2,6\}, \{1,3,5\}, \{1,4,4\}, \{2,2,5\}, \{2,3,4\}, \{3,3,3\}
  • 10: {1,3,6},{1,4,5},{2,2,6},{2,3,5},{2,4,4},{3,3,4}\{1,3,6\}, \{1,4,5\}, \{2,2,6\}, \{2,3,5\}, \{2,4,4\}, \{3,3,4\}

Gamblers noticed 10 came up more often. Which is more likely, and by how much?

Show solution

Partitions are not equally likely outcomes. Label the dice, so Ω\Omega is the 63=2166^3 = 216 ordered triples, all equally likely. Each partition corresponds to as many ordered triples as it has distinct arrangements:

  • three distinct values: 3!=63! = 6 orderings;
  • one value repeated twice: 33 orderings;
  • all three equal: 11 ordering.

For 9: {1,2,6},{1,3,5},{2,3,4}\{1,2,6\}, \{1,3,5\}, \{2,3,4\} are distinct (3×6=183 \times 6 = 18), {1,4,4},{2,2,5}\{1,4,4\}, \{2,2,5\} have a repeat (2×3=62 \times 3 = 6) and {3,3,3}\{3,3,3\} gives 11. Total 2525.

For 10: {1,3,6},{1,4,5},{2,3,5}\{1,3,6\}, \{1,4,5\}, \{2,3,5\} are distinct (1818), and {2,2,6},{2,4,4},{3,3,4}\{2,2,6\}, \{2,4,4\}, \{3,3,4\} have a repeat (99). Total 2727.

P(9)=25216≈0.116,P(10)=27216=18=0.125.P(9) = \frac{25}{216} \approx 0.116, \qquad P(10) = \frac{27}{216} = \frac18 = 0.125 .

The difference comes entirely from {3,3,3}\{3,3,3\}: a triple has one arrangement where a pair has three.

Knowledge check

70% of a desk's traders drink coffee and 80% drink tea. Without any assumption about how the two habits are related, what is the smallest possible fraction who drink both?

The same words, different events

The earlier lesson showed that "at least one child is a boy" gives P(BB)=13P(BB) = \tfrac13 while "the older child is a boy" gives 12\tfrac12. The deeper point is that a statement in words is not an event until you specify how the information was generated.

Suppose families with two children are equally likely to be BB,BG,GB,GGBB, BG, GB, GG. You learn "I have a boy" from a parent. Model the parent's protocol: a BBBB family always says "boy", a GGGG family never does, and a mixed family says "boy" with probability qq. Then

P(BB∣"boy")=14⋅114⋅1+12⋅q=11+2q.P(BB \mid \text{"boy"}) = \frac{\tfrac14 \cdot 1}{\tfrac14 \cdot 1 + \tfrac12 \cdot q} = \frac{1}{1 + 2q}.
  • q=1q = 1 (the parent answers the question "do you have at least one boy?"): 13\tfrac13.
  • q=12q = \tfrac12 (the parent mentions a randomly chosen child, or you meet one child at random): 12\tfrac12.

Neither answer is "the" answer to the bare sentence. In an interview, say which protocol you are assuming, give that answer, and mention that the other protocol changes it. That is exactly the kind of care interviewers are probing for.

Extra detail shifts the answer too. "At least one is a boy born on a Tuesday" conditions on a smaller event in which both-boy families are relatively more common, because they have two chances to contain a Tuesday boy.

Knowledge check

Each child is independently a boy or girl with probability 1/2 and born on each weekday with probability 1/7. A family with two children answers yes to 'Do you have a son born on a Tuesday?'. What is the probability both children are boys?

Bertrand's paradox: "at random" is not a sample space

Take a circle of radius rr and the equilateral triangle inscribed in it, whose side is 3 r\sqrt3\, r. Choose a chord "at random". What is the probability it is longer than 3 r\sqrt3\, r?

The paradox is that three natural readings of "at random" define three different probability measures on the same set of chords, and they give three different answers. None of the computations is wrong. The question is underspecified.

Worked example

three answers to Bertrand's question

Compute the probability that a random chord is longer than 3 r\sqrt3\, r under each model:

  1. two endpoints chosen independently and uniformly on the circle;
  2. a radius chosen at random, a point chosen uniformly along it, and the chord drawn perpendicular to the radius through that point;
  3. the chord's midpoint chosen uniformly over the disc.
Show solution

A chord whose midpoint is at distance dd from the centre has length 2r2−d22\sqrt{r^2 - d^2}. This exceeds 3 r\sqrt3\, r exactly when d<r/2d < r/2.

1. Random endpoints. By rotational symmetry fix one endpoint. The other is at a uniform angle θ∈[0,2π)\theta \in [0, 2\pi) and the chord has length 2rsin⁡(θ/2)2r\sin(\theta/2), which exceeds 3 r\sqrt3\, r when sin⁡(θ/2)>32\sin(\theta/2) > \tfrac{\sqrt3}{2}, i.e. θ∈(2π/3,4π/3)\theta \in (2\pi/3, 4\pi/3). That arc is a third of the circle: P=13P = \tfrac13.

2. Random point on a radius. Here dd is uniform on [0,r][0, r], so P(d<r/2)=12P(d < r/2) = \tfrac12.

3. Random midpoint in the disc. The midpoint is uniform over area, so P(d<r/2)P(d < r/2) is the area ratio π(r/2)2/πr2=14\pi (r/2)^2 / \pi r^2 = \tfrac14.

A simulation of a million chords under each model gives about 0.3330.333, 0.5000.500 and 0.2500.250. The three models put different distributions on dd: model 3 favours midpoints far from the centre (short chords), model 1 sits in between.

Jaynes argued that requiring the answer not to change when the circle is shifted or rescaled singles out model 2, and that is the answer you get by throwing long straws at a small circle. The interview lesson is simpler: when a continuous problem says "random", state the distribution you assume before integrating.

Knowledge check

Why can there be no uniform probability distribution on the positive integers?

Saying it out loud in an interview

  1. Name the outcomes. "Let me label the dice / children / cards so that outcomes are equally likely."
  2. Translate the words into an event, including how the information was revealed.
  3. Check the model with a quick sanity case (probabilities sum to 1, symmetric cases match).
  4. Flag ambiguity briefly and pick the natural reading, rather than refusing to answer.

Key takeaways

  • A model is (Ω,F,P)(\Omega, \mathcal F, P); non-negativity, normalisation and countable additivity imply the complement rule, inclusion–exclusion, the union bound and the Fréchet bounds.
  • Equal-likelihood counting only works on a well-chosen Ω\Omega: label identical objects and record outcomes in the order randomness produces them.
  • "I have a boy" is not an event until you specify the protocol; P(BB∣"boy")=1/(1+2q)P(BB \mid \text{"boy"}) = 1/(1 + 2q) makes the dependence explicit.
  • "Random" in a continuous setting needs a distribution. Bertrand's chord gives 13\tfrac13, 12\tfrac12 or 14\tfrac14 depending on which one you pick.
  • There is no uniform distribution on the integers.

Practice problems

Finished reading?

Answer the 3 knowledge checks to complete this lesson (0 done).