Construction of a Probability Space
The book gives a warning at the start of §6.1 that is worth quoting in full, because it is the reason this page exists:
Some machine learning texts on probabilistic models use lazy notation and jargon, which is confusing. This text is no exception. Multiple distinct concepts are all referred to as “probability distribution”, and the reader has to often disentangle the meaning from the context.
So this page does the opposite. There are three distinct objects here, plus a fourth that maps between them, and the whole difficulty of §6.1 is that everyday usage blurs all four into the word “probability”. Once they are separate, nothing in the rest of the chapter is hard.
What you’ll learn
Section titled “What you’ll learn”- The three components of a probability space — and why machine learning almost never writes any of them down.
- Why a random variable is “neither random nor a variable. It is a function.”
- Equation 6.8: the law of a random variable, defined through the pre-image — the one piece of §6.1 that is genuinely a definition rather than a name.
- Example 6.1 in full, with all of Equations 6.1 to 6.7, and the reason rather than .
- The Cox–Jaynes criteria, and what “probability generalises Boolean logic” buys you.
- Bayesian versus frequentist, with the frequentist limit measured rather than described.
- Why §6.1.3’s distinction between probability and statistics is the distinction between the rest of this chapter and the rest of the book.
Intuition: three objects, not one
Section titled “Intuition: three objects, not one”You are at a funfair. A bag holds US and UK coins; you draw one, put it back, draw again. Someone asks “what is the probability of getting one dollar coin?”
Four different things are hiding in that question.
- What could happen. Four things:
$$,$£,£$,££. That list is the sample space . - What you could ask about. “At least one dollar.” “Both the same.” “Nothing at all.” Each question is a subset of , and the collection of permitted questions is the event space .
- How likely each thing is. A number for each event. That is the probability measure .
- What you actually care about. Not the pair of coins — the count of dollar coins: , or . Turning outcomes into the number you care about is the random variable , and the probabilities it inherits are its law .
The count is where the trouble starts. Two different outcomes — $£ and £$ —
both give a count of . The random variable collapses them, and has to
add their probabilities back together. That single fact is what Equation 6.8 is
for, and it is why is not .
flowchart LR
subgraph space["the probability space, Omega A P"]
OM["Omega: sample space
4 outcomes"]
EV["A: event space
the power set, 16 events"]
PR["P: measure
P(Omega) = 1"]
end
OM --> EV --> PR
PR --> X["X : Omega -> T
a FUNCTION, Eq 6.1-6.4"]
X --> T["T: target space
0, 1, 2"]
T --> PX["P_X, the LAW of X
via the pre-image, Eq 6.8"]
PX --> PMF["pmf: 0.49, 0.42, 0.09
Eq 6.5-6.7"]
PMF -.->|"Section 6.2"| D["discrete or continuous?"]
PMF -.->|"Section 6.3"| B["sum rule, product rule, Bayes"]
The math
Section titled “The math”6.1.1 Why probability at all
Section titled “6.1.1 Why probability at all”The book’s motivation is not “we need to count things”. It is that Boolean logic is not enough for plausible reasoning. Its example: you are waiting for a friend, and consider three hypotheses — , she is on time; , she is delayed by traffic; , she has been abducted by aliens.
She is late. Logic forces you to rule out and says nothing whatever about the other two. But you do not treat them equally, and you are right not to. That extra move — became more plausible, stayed absurd — is not available in classical logic.
E. T. Jaynes identified three criteria any notion of plausibility must satisfy:
- Degrees of plausibility are represented by real numbers.
- Those numbers must agree with common sense.
- The reasoning must be consistent, in three senses: non-contradiction (the same result reached two ways gets the same value), honesty (all available data is used), and reproducibility (equal states of knowledge give equal plausibilities).
The Cox–Jaynes theorem then says these are sufficient to pin down the rules of plausibility uniquely, up to an arbitrary monotonic transformation — and those rules are exactly the rules of probability. Probability is not one option for reasoning under uncertainty; it is the only one that satisfies those three requirements.
6.1.2 The probability space
Section titled “6.1.2 The probability space”Three objects, in the order they have to be built.
The sample space — the set of all possible outcomes of the experiment. For two coin tosses, .
The event space — the space of potential results. A subset belongs to if, at the end of the experiment, you can observe whether the outcome is in . For discrete distributions is often the power set of .
The probability — with each event we associate a number measuring the probability, or degree of belief, that the event occurs. It satisfies and .
Together is the probability space, and it is the Kolmogorov construction.
The random variable, and the sentence to remember
Section titled “The random variable, and the sentence to remember”In machine learning we rarely refer to at all. Instead we work with quantities of interest in a target space , whose elements are called states, and we get there through a function
called a random variable. The book puts a warning in the margin, and it is the single most useful sentence in §6.1:
The name “random variable” is a great source of misunderstanding as it is neither random nor is it a variable. It is a function.
For a finite and finite , that function is literally a lookup table. Nothing more.
Equation 6.8: the law, through the pre-image
Section titled “Equation 6.8: the law, through the pre-image”Here is the definition everything rests on. For , let be the pre-image of — the set of outcomes that sends into :
Then
Read the two ends. The left-hand side is a probability about the thing you care
about (“the count is 1”). The right-hand side is a probability about outcomes
(“the draws were $£ or £$”). Equation 6.8 says: to get the first, collect
every outcome that produces it and add up their measures.
— equivalently — is called the law or distribution of .
6.1.3 Probability and statistics are opposite directions
Section titled “6.1.3 Probability and statistics are opposite directions”The book’s framing, which is worth internalising early:
- Probability: the model is known. The uncertainty is captured by random variables, and you use the rules of probability to derive what happens.
- Statistics: something has already happened. You try to figure out the underlying process that explains the observation.
Chapter 6 is almost entirely the first. Chapters 8 onwards are almost entirely the second. The measured comparison at the end of the from-scratch section makes the asymmetry concrete: deriving the pmf from is exact and instant; recovering from data is neither.
Worked example by hand
Section titled “Worked example by hand”The book’s Example 6.1. A funfair game: draw two coins from a bag with
replacement. The bag holds US dollars ($) and UK pounds (£), and a draw
returns $ with probability .
Step 1 — the sample space. Two ordered draws, two possibilities each:
Four outcomes. Note and are different outcomes — order is part of the outcome, even though we are about to throw it away.
Step 2 — the measure on . The draws are independent (we replaced the first coin), so each outcome’s probability is a product:
| value | ||
|---|---|---|
Sum: . Good — that is .
Step 3 — the random variable. We care about the number of $ drawn, so
and is the lookup table of Equations 6.1 to 6.4:
Step 4 — apply Equation 6.8, one state at a time.
. The pre-image is a single outcome:
. The pre-image has two elements, and they are disjoint, so the measures add:
. One outcome again:
Step 5 — check. . The law of is a probability distribution on , as it must be.
| state | pre-image | size | |
|---|---|---|---|
| 1 | |||
| 2 | |||
| 1 |
The 2 in that table is the whole lesson. Every implementation bug in this
chapter is some version of forgetting it.
See it move
Section titled “See it move”From scratch
Section titled “From scratch”Build the whole space, verify Kolmogorov’s axioms on every event, then apply Equation 6.8. Nothing here assumes the answer.
"""§6.1 — the probability space, Example 6.1, and Equation 6.8's pre-image."""
import itertools
import math
import numpy as np
np.set_printoptions(precision=6, suppress=True, linewidth=140)
P_DOLLAR = 0.3
print("########## the_three_objects")
# Omega: the sample space. Two draws with replacement, so ordered pairs.
OMEGA = list(itertools.product(["$", "GBP"], repeat=2))
print(f"sample space Omega = {OMEGA}")
print(f" |Omega| = {len(OMEGA)}")
# A: the event space. For a discrete space, the POWER SET of Omega.
EVENTS = []
for r in range(len(OMEGA) + 1):
EVENTS.extend(itertools.combinations(OMEGA, r))
print(f"event space A = the power set, |A| = 2^{len(OMEGA)} = {len(EVENTS)}")
# P: the probability measure on Omega. Independent draws, so a product.
def p_outcome(o):
return math.prod(P_DOLLAR if c == "$" else 1 - P_DOLLAR for c in o)
P = {o: p_outcome(o) for o in OMEGA}
for o in OMEGA:
print(f" P({o}) = {P[o]:.4f}")
print(f" sum = {sum(P.values()):.10f}")
print()
print("########## kolmogorov_axioms")
# Checked on every one of the 16 events, not asserted.
def p_event(A):
return sum(P[o] for o in A)
nonneg = all(p_event(A) >= 0 for A in EVENTS)
unit = abs(p_event(tuple(OMEGA)) - 1.0)
# Additivity: for every disjoint pair, P(A u B) = P(A) + P(B).
worst_add = 0.0
pairs = 0
for A in EVENTS:
for B in EVENTS:
if set(A) & set(B):
continue
pairs += 1
union = tuple(sorted(set(A) | set(B)))
worst_add = max(worst_add, abs(p_event(union) - p_event(A) - p_event(B)))
print(f" 1. P(A) >= 0 for all {len(EVENTS)} events: {nonneg}")
print(f" 2. P(Omega) = 1: off by {unit:.1e}")
print(f" 3. additive on {pairs} disjoint pairs: worst gap {worst_add:.1e}")
print()
print("########## example_6_1")
# X: Omega -> T, the random variable. A lookup table, exactly as the book says.
X = {("$", "$"): 2, ("$", "GBP"): 1, ("GBP", "$"): 1, ("GBP", "GBP"): 0}
T = sorted(set(X.values()))
print("the random variable X, as the lookup table of Eq 6.1-6.4:")
for o in OMEGA:
print(f" X({o}) = {X[o]}")
print(f"target space T = {T}")
print()
# Eq 6.8: P_X(S) = P(X^-1(S)). Compute it that way, not by a formula.
print("Eq 6.8, via the PRE-IMAGE: P_X(S) = P({omega : X(omega) in S})")
pmf = {}
for t in T:
preimage = tuple(o for o in OMEGA if X[o] == t)
pmf[t] = p_event(preimage)
print(f" X^-1({{{t}}}) = {preimage}")
print(f" P(X = {t}) = {pmf[t]:.4f}")
print(f" sum of the pmf = {sum(pmf.values()):.10f}")
print()
print("against the book's Eq 6.5-6.7:")
book = {2: 0.09, 1: 0.42, 0: 0.49}
for t in (2, 1, 0):
print(f" P(X = {t}): computed {pmf[t]:.10f} book {book[t]:.2f}"
f" gap {abs(pmf[t] - book[t]):.1e}")
print()
print("########## X_is_not_injective")
counts = {t: sum(1 for o in OMEGA if X[o] == t) for t in T}
print(" outcomes mapping to each state:")
for t in T:
print(f" X = {t}: {counts[t]} outcome(s)")
print(" X = 1 has TWO pre-images, which is the entire reason P_X is not P.")
print(" A random variable is a function, and a function may collapse outcomes.")
print()
print("########## two_wrong_shortcuts")
# Wrong 1: assume every element of the TARGET space is equally likely.
naive_T = {t: 1 / len(T) for t in T}
# Wrong 2: assume every element of Omega is equally likely (true only at p = 0.5).
naive_O = {t: counts[t] / len(OMEGA) for t in T}
print(f" {'state':>6} {'correct':>10} {'uniform on T':>13} {'uniform on Omega':>17}")
for t in (0, 1, 2):
print(f" {t:>6} {pmf[t]:>10.4f} {naive_T[t]:>13.4f} {naive_O[t]:>17.4f}")
e1 = max(abs(pmf[t] - naive_T[t]) for t in T)
e2 = max(abs(pmf[t] - naive_O[t]) for t in T)
print(f" worst error, uniform on T: {e1:.4f} ({e1 / max(pmf.values()):.1%} of the largest true value)")
print(f" worst error, uniform on Omega: {e2:.4f} ({e2 / max(pmf.values()):.1%})")
print(" 'uniform on Omega' is right only when the coin is fair. Check:")
for p in (0.3, 0.5, 0.7):
pm = {}
for t in T:
pm[t] = sum(math.prod(p if c == "$" else 1 - p for c in o)
for o in OMEGA if X[o] == t)
gap = max(abs(pm[t] - counts[t] / len(OMEGA)) for t in T)
print(f" p = {p}: worst gap against uniform-on-Omega {gap:.4f}")
print()
print("########## the_frequentist_limit")
# The frequentist reading of P, made concrete: relative frequency as N grows.
rng = np.random.default_rng(6)
print(" simulate the funfair game and count. The pmf is not assumed anywhere.")
print(f" {'draws N':>10} {'P(X=0)':>9} {'P(X=1)':>9} {'P(X=2)':>9} {'max error':>10} {'1/sqrt(N)':>10}")
for N in (10, 100, 1_000, 10_000, 100_000, 1_000_000):
draws = rng.random((N, 2)) < P_DOLLAR
k = draws.sum(axis=1)
emp = {t: float((k == t).mean()) for t in T}
err = max(abs(emp[t] - pmf[t]) for t in T)
print(f" {N:>10,} {emp[0]:>9.5f} {emp[1]:>9.5f} {emp[2]:>9.5f}"
f" {err:>10.5f} {1 / math.sqrt(N):>10.5f}")
print(" the error tracks 1/sqrt(N), which is the rate every Monte Carlo estimate")
print(" pays and the reason 'infinite data' in the frequentist definition matters.")
print()
print("########## power_set_blows_up")
print(" the event space is the power set, so |A| = 2^|Omega|:")
print(f" {'|Omega|':>9} {'|A| = 2^|Omega|':>28}")
for n in (2, 4, 10, 20, 64, 256):
v = 2 ** n
s = str(v)
shown = s if len(s) <= 22 else f"{s[0]}.{s[1:3]}e+{len(s) - 1}"
print(f" {n:>9} {shown:>28}")
print(" at |Omega| = 256 the power set has more elements than there are atoms in")
print(" the observable universe, which is why continuous spaces do NOT use it --")
print(" they use a sigma-algebra of measurable sets instead.")
print()
print("########## probability_vs_statistics")
# The book's contrast, as a number: given data, how many draws to tell p = 0.3
# from p = 0.5? A likelihood-ratio test, measured rather than derived.
print(" PROBABILITY: p is known, derive the pmf. Done above.")
print(" STATISTICS: the pmf is observed, infer p. How much data does that take?")
rng2 = np.random.default_rng(11)
TRIALS = 4000
print(f" {'draws':>7} {'MLE mean':>9} {'MLE sd':>8} {'P(prefer p=0.3 over p=0.5)':>28}")
for N in (5, 10, 25, 50, 100, 400):
x = rng2.random((TRIALS, N)) < P_DOLLAR
khat = x.mean(axis=1)
# log-likelihood ratio between the two candidate values of p
ll = lambda p: x.sum(axis=1) * np.log(p) + (N - x.sum(axis=1)) * np.log(1 - p)
prefer = float((ll(0.3) > ll(0.5)).mean())
print(f" {N:>7} {khat.mean():>9.4f} {khat.std():>8.4f} {prefer:>28.4f}")
print(" the MLE is unbiased at every N, but its SPREAD is what decides whether")
print(" you can tell the two hypotheses apart -- and that is a statistics question,")
print(" not a probability one.")########## the_three_objects
sample space Omega = [('$', '$'), ('$', 'GBP'), ('GBP', '$'), ('GBP', 'GBP')]
|Omega| = 4
event space A = the power set, |A| = 2^4 = 16
P(('$', '$')) = 0.0900
P(('$', 'GBP')) = 0.2100
P(('GBP', '$')) = 0.2100
P(('GBP', 'GBP')) = 0.4900
sum = 1.0000000000
########## kolmogorov_axioms
1. P(A) >= 0 for all 16 events: True
2. P(Omega) = 1: off by 0.0e+00
3. additive on 81 disjoint pairs: worst gap 1.1e-16
########## example_6_1
the random variable X, as the lookup table of Eq 6.1-6.4:
X(('$', '$')) = 2
X(('$', 'GBP')) = 1
X(('GBP', '$')) = 1
X(('GBP', 'GBP')) = 0
target space T = [0, 1, 2]
Eq 6.8, via the PRE-IMAGE: P_X(S) = P({omega : X(omega) in S})
X^-1({0}) = (('GBP', 'GBP'),)
P(X = 0) = 0.4900
X^-1({1}) = (('$', 'GBP'), ('GBP', '$'))
P(X = 1) = 0.4200
X^-1({2}) = (('$', '$'),)
P(X = 2) = 0.0900
sum of the pmf = 1.0000000000
against the book's Eq 6.5-6.7:
P(X = 2): computed 0.0900000000 book 0.09 gap 0.0e+00
P(X = 1): computed 0.4200000000 book 0.42 gap 0.0e+00
P(X = 0): computed 0.4900000000 book 0.49 gap 5.6e-17
########## X_is_not_injective
outcomes mapping to each state:
X = 0: 1 outcome(s)
X = 1: 2 outcome(s)
X = 2: 1 outcome(s)
X = 1 has TWO pre-images, which is the entire reason P_X is not P.
A random variable is a function, and a function may collapse outcomes.
########## two_wrong_shortcuts
state correct uniform on T uniform on Omega
0 0.4900 0.3333 0.2500
1 0.4200 0.3333 0.5000
2 0.0900 0.3333 0.2500
worst error, uniform on T: 0.2433 (49.7% of the largest true value)
worst error, uniform on Omega: 0.2400 (49.0%)
'uniform on Omega' is right only when the coin is fair. Check:
p = 0.3: worst gap against uniform-on-Omega 0.2400
p = 0.5: worst gap against uniform-on-Omega 0.0000
p = 0.7: worst gap against uniform-on-Omega 0.2400
########## the_frequentist_limit
simulate the funfair game and count. The pmf is not assumed anywhere.
draws N P(X=0) P(X=1) P(X=2) max error 1/sqrt(N)
10 0.60000 0.30000 0.10000 0.12000 0.31623
100 0.47000 0.49000 0.04000 0.07000 0.10000
1,000 0.49800 0.42000 0.08200 0.00800 0.03162
10,000 0.48330 0.42360 0.09310 0.00670 0.01000
100,000 0.48940 0.42100 0.08960 0.00100 0.00316
1,000,000 0.49081 0.41936 0.08983 0.00081 0.00100
the error tracks 1/sqrt(N), which is the rate every Monte Carlo estimate
pays and the reason 'infinite data' in the frequentist definition matters.
########## power_set_blows_up
the event space is the power set, so |A| = 2^|Omega|:
|Omega| |A| = 2^|Omega|
2 4
4 16
10 1024
20 1048576
64 18446744073709551616
256 1.15e+77
at |Omega| = 256 the power set has more elements than there are atoms in
the observable universe, which is why continuous spaces do NOT use it --
they use a sigma-algebra of measurable sets instead.
########## probability_vs_statistics
PROBABILITY: p is known, derive the pmf. Done above.
STATISTICS: the pmf is observed, infer p. How much data does that take?
draws MLE mean MLE sd P(prefer p=0.3 over p=0.5)
5 0.3068 0.2073 0.5142
10 0.2996 0.1457 0.6492
25 0.2992 0.0936 0.8095
50 0.2992 0.0640 0.9197
100 0.2995 0.0452 0.9815
400 0.2996 0.0229 1.0000
the MLE is unbiased at every N, but its SPREAD is what decides whether
you can tell the two hypotheses apart -- and that is a statistics question,
not a probability one.Three things in that output are worth stopping on.
The axioms are checked, not asserted. Non-negativity on all events, exactly, and additivity across all disjoint pairs to . That is what it means for to be a probability space rather than to be called one.
The pre-image is computed. X^-1({1}) comes out as
(('$', 'GBP'), ('GBP', '$')) — the code finds the two outcomes rather than
being told there are two, and is then their sum.
The MLE is unbiased at every sample size but useless at small ones. At the mean estimate of is — essentially correct — yet the probability of preferring the true over the wrong is , barely better than guessing. Unbiasedness is about the average over repetitions; what you have is one sample, and its spread is what decides anything. That gap is the whole subject of statistics.
On real data
Section titled “On real data”Reading the plot
Section titled “Reading the plot”From the first figure. Count the arrows. Three of the four outcomes have a box to themselves on the right; the fourth and fifth arrows both land on . If you can see why that box’s number is a sum and the others are not, you have Equation 6.8 — and everything in §6.2 and §6.3 is bookkeeping on top of it.
From the second figure. The band matters more than the line. The median error behaves exactly as theory says, but a single run at can sit anywhere in a range several percent wide. When someone reports a probability estimated from a hundred observations, that band is the honest error bar, and it shrinks only as .
From the third figure. The right panel is the one to remember. The green curve — the error of “count the outcomes” — touches zero at exactly one point. A shortcut that is exactly right on the fair-coin case and badly wrong either side of it is the most dangerous kind, because the fair coin is what everyone tests with.
Pitfalls
Section titled “Pitfalls”Compare
Section titled “Compare”| Object | Symbol | Lives in | What it is |
|---|---|---|---|
| sample space | — | the set of possible outcomes | |
| event space | subsets of | the questions you may ask | |
| probability | a measure, with | ||
| target space | — | the quantity you care about | |
| random variable | a function, often a lookup table | ||
| law / distribution | , Equation 6.8 |
| Probability | Statistics | |
|---|---|---|
| Given | the model | the data |
| Wanted | what the data will look like | what the model is |
| Example 6.1’s version | pmf | observations |
| Cost | exact, immediate | error falls as |
| This book | Chapter 6 | Chapters 8 onwards |
-
In Example 6.1, why is P(X = 1) equal to 0.42 rather than 0.21?
X is a function and it collapses those two distinct outcomes to the same state. If it never collapsed anything, P_X would be a relabelling of P and Equation 6.8 would not need to exist.
pch.quizShowAnswer
B — Because the pre-image of the state 1 contains TWO outcomes — ($, £) and (£, $) — and Equation 6.8 defines P_X of a set as the measure of its whole pre-image, so the two measures add — X is a function and it collapses those two distinct outcomes to the same state. If it never collapsed anything, P_X would be a relabelling of P and Equation 6.8 would not need to exist.
-
The book calls the name 'random variable' a great source of misunderstanding. Why?
Equations 6.1 to 6.4 are that lookup table written out. All the randomness lives in P on Omega; X just relabels outcomes as the quantity you care about.
pch.quizShowAnswer
B — Because it is neither random nor a variable — it is a FUNCTION from the sample space to the target space, and for finite spaces it is literally a lookup table — Equations 6.1 to 6.4 are that lookup table written out. All the randomness lives in P on Omega; X just relabels outcomes as the quantity you care about.
-
Someone computes P(X = 2) = 1/4 by noting that one of the four outcomes is ($,$). When are they right?
This is the dangerous shortcut precisely because it passes a fair-coin test. The bias has to enter through the measure P on Omega, not through counting the elements of Omega.
pch.quizShowAnswer
B — Only when every outcome is equally likely, i.e. p = 0.5. Measured across p, that shortcut is exact at p = 0.5 and off by 0.2400 at both p = 0.3 and p = 0.7 — This is the dangerous shortcut precisely because it passes a fair-coin test. The bias has to enter through the measure P on Omega, not through counting the elements of Omega.
-
Why can the event space not be the power set when the sample space is the real line?
This is the one place in Section 6.1 where the measure-theoretic machinery is doing real work rather than adding formality. Section 6.2 switches to densities for exactly this reason.
pch.quizShowAnswer
B — Because no consistent probability can be assigned to every subset of the reals — so the event space is restricted to a sigma-algebra of measurable sets. Even in the finite case the power set has 2^n elements, which is 1.15e77 at n = 256 — This is the one place in Section 6.1 where the measure-theoretic machinery is doing real work rather than adding formality. Section 6.2 switches to densities for exactly this reason.
-
At N = 5 the maximum-likelihood estimate of p has mean 0.3068 — almost exactly right. Why is that not reassuring?
The spread, not the mean, decides whether a single estimate is usable. Getting from 0.5142 to 1.0000 on that discrimination took 400 draws — and that asymmetry between deriving a pmf and recovering a parameter is exactly Section 6.1.3's distinction between probability and statistics.
pch.quizShowAnswer
B — Because unbiasedness is a statement about the average over many repetitions, and you have one sample. Its standard deviation at N = 5 is 0.2073, and the chance of correctly preferring p = 0.3 over p = 0.5 is only 0.5142 — barely better than a coin flip — The spread, not the mean, decides whether a single estimate is usable. Getting from 0.5142 to 1.0000 on that discrimination took 400 draws — and that asymmetry between deriving a pmf and recovering a parameter is exactly Section 6.1.3's distinction between probability and statistics.
🧪 Try It Yourself
Section titled “🧪 Try It Yourself”Exercise 1 – Build the measure on Omega
Section titled “Exercise 1 – Build the measure on Omega”Exercise 2 – Apply Equation 6.8
Section titled “Exercise 2 – Apply Equation 6.8”Exercise 3 – Check Kolmogorov’s additivity
Section titled “Exercise 3 – Check Kolmogorov’s additivity”Exercise 4 – Watch the wrong shortcut be right once
Section titled “Exercise 4 – Watch the wrong shortcut be right once”Exercise 5 – Probability against statistics
Section titled “Exercise 5 – Probability against statistics”Recall card
Section titled “Recall card”- Three objects, not one. The probability space is (Omega, A, P): the sample space of outcomes, the event space of askable questions, and the measure with P(Omega) = 1.
- A random variable is a FUNCTION, X : Omega -> T, and for finite spaces literally a lookup table. The book’s margin note is the thing to remember: it is neither random nor a variable.
- Equation 6.8 defines the law through the PRE-IMAGE: P_X(S) is the measure of the set of every outcome omega whose image X(omega) lands in S. The left side is about states, the right side about outcomes.
- The pre-image exists because X can collapse outcomes. In Example 6.1 two outcomes map to X = 1, so P(X=1) = 0.21 + 0.21 = 0.42 while the other two states get a single measure each.
- Example 6.1’s pmf is 0.49, 0.42, 0.09 for zero, one and two dollar coins at p = 0.3, and it sums to 1 exactly.
- Counting outcomes is not computing probability. “One of four outcomes, so 1/4” is exact only at p = 0.5, and off by 0.2400 at p = 0.3 — a shortcut that passes the fair-coin test and fails everywhere else.
- “All states equally likely” is never right — worst error 0.2433 at p = 0.3, about half the largest true probability.
- The event space is the power set for discrete spaces, and cannot be for continuous ones. 2^|Omega| is 16 at |Omega| = 4 and 1.15e77 at 256; on the reals no consistent probability on every subset exists at all, hence the sigma-algebra.
- Kolmogorov’s axioms are checkable. On Example 6.1: non-negative on all 16 events, P(Omega) = 1 exactly, additive across all 81 disjoint pairs to 1.1e-16.
- The Cox-Jaynes theorem says three requirements — real-valued plausibilities, common sense, and consistency in the senses of non-contradiction, honesty and reproducibility — force the rules of probability, up to a monotonic transformation.
- Bayesian and frequentist disagree about MEANING, not arithmetic. Degree of belief versus limiting relative frequency; every number on this page is the same either way.
- The frequentist limit costs 1/sqrt(N). Measured on this game: worst pmf error 0.12 at N = 10 and 0.00081 at N = 1000000. A hundred times the data buys one decimal place.
- Probability and statistics are opposite directions. Given p, the pmf is exact and immediate; given data, recovering p is neither. At N = 5 the MLE is unbiased (mean 0.3068) yet prefers the true p over a wrong one only 51.4 percent of the time.
Next: Discrete and Continuous Probabilities — what changes when the target space stops being a finite list, and why a density is not a probability.
pch.coffeeTagline
pch.coffeeCtapch.feedbackHeading
pch.feedbackSubheading