Chapter 17: Probability as an Expansion of Logic — Truth Values from {0,1} to [0,1]
Probability is not frequency. It is the only coherent representation of rational belief under uncertainty.
The end of Chapter 16 left a cliffhanger: the semantics of linear logic hinted that "truth value" is not a simple
There is a wider road.
What if "truth value" were not true-or-false, but a real number between 0 and 1? And what if that real number expressed some agent's degree of belief that a proposition is true? What shape would the inference rules take then?
That's this chapter's question. The answer is called Bayesian probability theory — but not the frequentist version you may have learned; rather its logical-foundation version: probability as the expression of rational belief, governed by laws that can be derived rather than simply declared.
17.0 The Belief-Chip Game: Staying Coherent Under Uncertainty
Let's swap truth values from black-and-white game pieces to chips.
On the table are several propositions:
Then the evidence arrives. You see
You can think of the Bayes formula as the casino's anti-cheating rule: if you don't update this way, a clever enough bookmaker can design a set of bets that loses you money no matter how the world turns out. That's the intuition behind the Dutch book.
The formal skeleton of this game
- State space: probability distributions
, the set of legal allocations of belief chips. - Legal moves: after observing evidence
, update the prior into the posterior . - Transition rule:
. - Winning condition: a belief distribution that absorbs evidence while keeping consistency with the probability axioms.
- Failure mode: a chip allocation that violates probability rules, breeding internal contradiction — or being steadily harvested by a Dutch book.
The key point of this game isn't "probability guarantees you'll be right." Probability is not that powerful. It guarantees one humbler, and more necessary, thing: when your evidence is incomplete, your belief updates don't fight each other.
Formal logic handles legal inference in a world of known facts; probability logic handles legal updating in a world of unknowns. The first asks "can this conclusion be derived?"; the second asks "now that I've seen this evidence, where should my belief move?"
Probability isn't a fuzzy logic for the fainthearted. Probability is the posture rationality takes when it must stand on incomplete information. You don't know the answer, so you allocate chips; evidence arrives, so you move chips. The truly irrational thing isn't uncertainty — it's pretending you're certain while you're deep inside your own uncertainty.
17.0.5 Playing the Game in Code
The chip table is small enough to run. The program below moves a hundred chips by Bayes' rule as the evidence arrives, checks that the total never changes (the coherence invariant), and then builds the Dutch book from Section 17.0 for real: an incoherent allocation loses money no matter how the world turns out.
#!/usr/bin/env python3
"""
belief_chip_game.py -- the Belief-Chip Game of Chapter 17.
Book reference: The Reasoning Kingdom, Volume 2, Chapter 17, Section 17.0
"The Belief-Chip Game: Staying Coherent Under Uncertainty."
A hundred belief chips spread over the hypotheses. Evidence arrives, and
the casino's rules force one specific redistribution -- Bayes' rule --
because any other move lets a bookmaker harvest you. This program:
* moves chips by the Bayes rule and checks the invariant that matters:
the chip total never changes (the probability axioms = coherence),
* shows belief converging as the evidence piles up,
* builds the Dutch book of Section 17.0 for real: an incoherent chip
allocation loses money no matter how the world turns out.
All numbers below are computed, not staged.
Run: python3 belief_chip_game.py
"""
TOTAL = 100.0 # one hundred belief chips
def update(beliefs, likelihoods, evidence):
"""One Bayes step: chips move toward hypotheses that support the
evidence, away from those that cannot. Pure; returns a new dict."""
raw = {
h: belief * likelihoods[h][evidence]
for h, belief in beliefs.items()
}
z = sum(raw.values())
return {h: v * TOTAL / z for h, v in raw.items()}
def demo():
print("=" * 70)
print(" THE BELIEF-CHIP GAME -- coherence under uncertainty")
print(" The Reasoning Kingdom, Volume 2, Chapter 17 (Sec. 17.0)")
print("=" * 70)
# Three hypotheses about a coin: H1 = fair, H2 = biased to tails,
# H3 = biased to heads. Likelihood of H or T under each.
beliefs = {"H1": TOTAL / 3, "H2": TOTAL / 3, "H3": TOTAL / 3}
likelihoods = {
"H1": {"H": 0.5, "T": 0.5},
"H2": {"H": 0.1, "T": 0.9},
"H3": {"H": 0.9, "T": 0.1},
}
flips = "H H T H H H H H T H".split()
print("\nThree hypotheses, 100 chips, split evenly:")
print(" H1: fair coin H2: tails-biased H3: heads-biased")
print("\nThe coin flips: " + " ".join(flips))
print("\n after flips H1 chips H2 chips H3 chips total")
for k in (0, 3, 7, 10):
seen = flips[:k]
for flip in seen:
beliefs = update(beliefs, likelihoods, flip)
total = sum(beliefs.values())
row = " " + f"{k:>5}" + "".join(
f"{beliefs[h]:>11.1f}" for h in ("H1", "H2", "H3")
)
print(row + f"{total:>9.1f}")
assert abs(total - TOTAL) < 1e-9, "coherence broken!"
print("\nThe chip total never moved. That invariant is the whole game:")
print(" a rational agent's beliefs must obey the probability axioms, or")
print(" its beliefs fight each other.")
# The Dutch book: an incoherent allocation loses money, guaranteed.
print("\nThe Dutch book, run for real:")
print(" a bookie with incoherent prices: P(A) = 0.6 and P(not A) = 0.7.")
print(" Prices sum to 1.3, not 1.0 -- the bookie is overconfident.")
for world in ("A is true", "A is false"):
payout = 1.0
income = 0.6 + 0.7
print(f" world: {world:<12} income {income:.1f} - payout "
f"{payout:.1f} = bookie profit {income - payout:+.1f}")
print(" Either way the bookie pockets 0.3. Coherence is not a moral")
print(" virtue -- it is the only way to keep your wallet out of the")
print(" casino's argument.")
print("=" * 70)
if __name__ == "__main__":
demo()17.1 The Debate Over What Probability Means
What does "probability
The frequentist answer: flip this coin infinitely many times, and the proportion of heads converges to
The Bayesian answer: I judge the chance that this coin comes up heads next time as
The debate has run for a century and still isn't fully over. But there's one question frequentism cannot answer, and Bayesianism can:
"What's the probability of rain tomorrow?"
Tomorrow happens exactly once. There is no infinite repetition. You cannot wait for infinitely many "tomorrows" to measure a frequency. Yet the weather forecast's 70% chance of rain is meaningful — it describes the forecaster's belief strength in the proposition "it rains tomorrow," based on the weather data at hand.
The core claim of Bayesian probability theory: probability is the logic of belief, not the statistics of frequency. Moreover, a rational agent's beliefs must obey the probability axioms — not because nature demands it, but because a belief that violates the probability axioms is incoherent; it breeds contradictions in inference.
17.2 Cox's Theorem: Why the Axioms Are Inevitable
In 1946, Richard Cox asked a question: if you want to express belief strengths with real numbers, in a way that is internally consistent, what constraints must those numbers satisfy?
His starting point was three requirements, each a minimum bar for rational belief:
Requirement 1 (ordering): beliefs are comparable. For any two propositions
Requirement 2 (consistency): belief in a compound proposition is fully determined by belief in its components. Your belief in "
Requirement 3 (duality): belief in
Cox proved that under these three requirements, any internally consistent belief measure must, up to a monotone change of scale, be equivalent to standard probability. That is, you may choose a different gauge (say
This isn't a law discovered by experiment; it's the inevitable outcome of rational coherence. If you express belief in numbers, and your beliefs are internally consistent, then you are doing probability — you just may not realize it yet.
Cox's theorem has led many people to conclude "Bayesianism is the only rational option." Slow down — the theorem's premise is that belief can be represented on a linear ordering of real numbers. Question that premise and the whole theorem stops applying. A theorem's power comes from its premises; so think the premises through first, then discuss the necessity of the conclusion. Don't treat the conclusion of a conditional as an unconditional truth.
What makes Cox's theorem profound is its "uniqueness": belief measures meeting the rational requirements are structurally unique. This means probability theory is not a set of tools humans invented — it is the necessary form of rational belief. If you reject probability theory, you either refuse to compare beliefs (giving up ordering), or you accept internal contradictions between beliefs.
This matches the spirit of Chapter 14 exactly: the axioms of a formal system are not arbitrary conventions; they are the minimum you must accept to avoid contradiction. Cox's theorem applies the same logic to belief: to avoid incoherence, belief must obey the probability axioms.
17.3 Bayesian Updating: The Probabilistic Version of an Inference Rule
With probability as the measure of belief, what does "inference" become?
In formal logic, inference produces new true propositions from known true propositions. In probability theory, inference updates your degree of belief in a proposition, given what you observed.
The rule for this update is the most important theorem of probability:
Let's spell out the four quantities:
: your belief in hypothesis before seeing evidence — the prior probability. : the probability of seeing evidence if hypothesis holds — the likelihood. : the probability of seeing evidence over all possible cases — the marginal probability, the normalizing factor. : your new belief in hypothesis after seeing evidence — the posterior probability.
Prior / likelihood / posterior: the triangle explained
These three terms are the heart of Bayesian inference, and newcomers constantly mix them up:
Prior
Likelihood
Posterior
Marginal probability
Memory formula: new belief ∝ old belief × how strongly the evidence supports it
This is Bayes' theorem — or, more precisely, the core operation of Bayesian inference.
But written as a formula, it's easy to miss the logical essence. A clearer statement:
(
What this says: the belief after the evidence is your belief before the evidence, weighted by the evidence. The evidence acts on the prior through the likelihood, "pushing" the prior into the posterior.
Back at the belief-chip game: the Bayes formula isn't an extra "statistical trick" bolted on from outside — it's the legality rule for moving chips. You can, of course, move chips from one hypothesis to another by feel; but as soon as your moves stop being proportional to likelihood and prior, you leave behind the arbitrage gap a Dutch book needs. That's the coldness of probability: it doesn't guarantee you'll get it right; it only guarantees you won't contradict yourself within your own betting rules.
17.3.5 Hands-On: Run a Bayesian Update Yourself
Let's trace one complete update with the medical test from Exercise 1. Not plugging numbers into a formula — watching the chips move.
Setup:
- Disease prevalence (prior):
, - Test sensitivity (likelihood):
- Test specificity:
, so
Step 1: the prior chips. Imagine a group of 10,000 people. By the prior, about 100 are sick, 9,900 healthy.
Step 2: a positive result arrives. Of the 100 sick people, about 90 test positive. Of the 9,900 healthy people, about
Step 3: redistribute the belief. The positive group totals
Verify with the formula:
Both computations agree.
Key observation: the test came back positive, but the probability of sickness is only 15.4%. Most people's gut estimate would be above 80%. Why such a gap? Because the disease is rare (1%) — even with high sensitivity, most positive results are false positives from healthy people. Put simply: healthy people dominate the population (99%), so their false positives (5%) yield 495 positives, dwarfing the 90 true positives.
Test again: use 15.4% as the new prior; the second test is also positive.
After two positives, the sickness probability jumps to 76.6%. The prior went 1% → 15.4% → 76.6% — two pieces of evidence, and the belief shifted violently.
What if the base rate is 10% (a high-risk group)? After one positive:
So a high-risk person (10%) after one positive has a sickness probability of 66.7% — is that higher than the low-risk person's 76.6% after two positives? No: 76.6% > 66.7%. Two accumulated pieces of evidence in the low-risk group yield more confidence than a single test in the high-risk group. That showcases the cumulative power of evidence — enough evidence can overwhelm the prior.
But this example also exposes a default premise of Bayesian updating: you observed a definite piece of evidence
Compare Bayesian updating with Chapter 14's inference rules, and the parallels are striking:
- Formal logic:
(modus ponens: consumes and , produces ) - Bayesian:
(consumes the likelihood and the prior , produces the posterior )
Both are "deriving something new from what you already had"; the difference is that formal logic's "what you already had" consists of
17.4 The Prior: Inference Never Starts From Zero
Bayesian inference has a part that makes many people uneasy: you need a prior.
The prior is the belief you already hold before seeing any evidence. Where does it come from? If I know nothing at all, what is my prior?
Frequentists consider this demand the fatal flaw of the Bayesian method — priors are subjective; different people can hold different priors and reach different posteriors; who's right?
The Bayesian answer comes in two layers.
First: the prior is not arbitrary. Rational priors are under constraints. The most basic constraint is symmetry: if you know nothing about a situation, you have no reason to tip the prior to either side. This gives the "uninformative prior" — with no preference information at hand, assign a uniform prior (for discrete cases) or a maximum-entropy prior (for continuous cases).
Second: the prior's influence fades as evidence accumulates. This is a mathematical theorem of Bayesian updating: after enough independent observations, the posterior converges to the same location no matter which prior you started from. Subjective priors are temporary; data is objective; rational agents eventually converge on agreement.
A stark example. Two people are arguing about whether a coin is fair: one's prior says the heads probability is 0.99, the other's says 0.01. They both watch the coin being flipped 1,000 times, 503 of which land heads. After Bayesian updating, both posteriors concentrate around 0.5 — priors in wild disagreement, drowned by the evidence.
That convergence is where Bayesian objectivity comes from: not the objectivity of the prior, but the objectivity of the inference process.
17.4.5 Jeffrey Conditioning: When the Evidence Itself Is Uncertain
Bayes' theorem assumes you observed a definite event
How do you handle this kind of evidence?
Jeffrey conditioning (Richard Jeffrey, 1965) generalizes Bayesian updating: the evidence isn't a definite event
What this formula says: when your beliefs shift across the evidence partition
Example: you hear a noise outside the window (
Jeffrey conditioning is the generalization of Bayesian updating to "uncertain evidence." Bayesian updating is its limiting case — when the new belief in some
Why does this matter? Because in reality, almost all evidence is uncertain. What you see, hear, and read is rarely accepted with probability 1. Jeffrey conditioning lets probability logic handle "I saw something I'm not sure about" — which is the normal state of everyday inference, not an exception.
17.5 Logic and Probability: Truth Value Goes Continuous
Back to Chapter 14's fundamental questions: soundness and completeness.
In classical logic, those two properties describe the relation between syntax (
In probability, what do these two relations become?
Probability's "soundness" counterpart: Bayesian updating preserves coherence. If your initial beliefs satisfy the probability axioms, the updated beliefs do too. Inference won't manufacture internal contradictions, won't make you hold a positive and a negative probability of the same event at once. That's the probabilistic version of soundness.
Probability's "completeness" question: what does classical incompleteness (Gödel's theorem) become in the probabilistic framework? This is subtler. Probabilistic inference never runs into an "unprovable proposition" — every proposition has a probability, even if it's just the prior's 0.5 (complete uncertainty). But that doesn't mean all truth can be discovered through probabilistic inference — it only means uncertainty is quantified explicitly, rather than blocked logically.
Formal logic and probability theory are often compared as two rival "reasoning methods," as if you must pick one. But precisely speaking, they live on different levels: formal logic handles fully determined information (a proposition is either true in the model or false); probability theory handles incomplete information (a proposition may be true, may be false, and my belief degree is
A more complete picture: formal logic is the limiting case of probability when the truth-value domain degenerates to
17.6 The Chain of Belief Updates: From Inference to Learning
Bayesian updating is a single-step operation: take one piece of evidence, update once. But inference is usually continuous — you observe evidence one after another, updating each time.
The structure of this chained operation is precisely the formal foundation of machine learning.
Picture a parameter
The final posterior
That's Bayesian learning: learning is not "finding the correct parameter" — it's pushing the belief distribution over the parameter from prior to posterior. A parameter is not a point but a distribution; how confident you are shows in how wide or narrow that distribution is.
This framework makes an interesting conversation with the overfitting discussion in Chapter 5 of Volume 1: overfitting happens because a model mistakes noise in the training data for signal, while the Bayesian framework naturally resists overfitting — the regularization term corresponds exactly to the prior's constraint on the parameter. A loose prior is weak regularization; a sharp prior (concentrated on a narrow parameter range) is strong regularization. Occam's razor — "the simpler explanation wins" — gains a precise mathematical expression in the Bayesian framework: complex models need more data to overcome the prior's preference for simplicity.
In the Bayesian framework, the common "point estimate" move is to take the posterior mode:
If the prior
17.7 What Probability Cannot Capture
By now probability theory looks nearly omnipotent: it generalized logical inference to continuous truth values, explained the necessary form of rational belief, and supplied a formal framework for learning.
But it has one fundamental limit — we already glimpsed its shadow in Chapter 6 of Volume 1, and here it must be stated in formal language.
Probability describes correlation, not causation.
Consider two variables
causes (causal: ) causes (causal: ) and are both outcomes of a common cause (confounding: )
All three situations can produce exactly the same joint distribution
This isn't a flaw in the method; it's a structural limit of the mathematics: the information in association does not include the information in causal direction.
This is the most skippable, highest-cost sentence in every probability course. Countless papers use conditional probabilities to answer causal questions. Not because the authors are stupid — because nobody drew this wall clearly at the outset. Association and causation differ in mathematical structure; it's not a difference in degree, it's a difference in kind. That's all.
If you want to infer causation — to answer "if I intervene on
Open Questions
Where is the boundary of subjectivity? Cox's theorem proved the uniqueness of the inference rules, but it didn't fix the prior. Different agents with different priors observe the same data — will they eventually agree? Under what conditions yes, under what conditions no? This is the "prior selection" problem in Bayesian statistics, and it still has no universal answer.
Is quantum probability a generalization of Bayesian probability? The probabilities of quantum mechanics — the Born rule — share a similar mathematical structure with Bayesian probability, but the collapse mechanism of quantum states differs fundamentally from classical Bayesian updating. Is there a single framework that fits both classical and quantum probability into "the logic of rational belief"? That is the question quantum Bayesianism (QBism) tries to answer — and the answer is still under debate.
Is probability the ceiling of inference? Section 17.7 has already revealed the answer: no. Probability cannot distinguish correlation from causation —
That's not a defect of the method but a structural fact of mathematics: the information in observation does not contain the information in intervention. To answer "if I change
Exercises
★ Warm-Up
A medical test has a sensitivity of 90% and a specificity of 95% for a certain disease. That is: a sick person tests positive with probability 90%, and a healthy person tests negative with probability 95%. The disease's prevalence in the population is 1%.
First estimate by intuition: someone tests positive — what is the probability they're actually sick? Write down your intuitive answer, then compute the exact value with Bayes' theorem.
(Hint:
★★ Derivation
Under the setup of the previous question:
- After the first positive test, use the first posterior as the new prior, run a second independent test, and it comes back positive again. What is the sickness probability now?
- If the person is from a high-risk group with a 10% prevalence (rather than 1%), what is the sickness probability after the same single positive test?
- Compare Question 1 (two positives, low-risk group) with Question 2 (one positive, high-risk group). Which case gives a higher sickness probability? What does that say about the relation between prior and evidence?
★★★ Challenge
Cox's theorem proves that any belief measure satisfying the three rational requirements is structurally equivalent to probability. But the theorem's first requirement is "belief can be represented on a linear ordering of real numbers."
Try to construct a reasoning scenario you consider reasonable, in which belief in some proposition cannot be fully expressed by a single real number — maybe it needs two numbers (like "at least 0.3, at most 0.8"), or maybe it needs a distribution.
Does such a scenario exist? If it does, does it show Cox's premises are not general enough, or does it just show that "one particular refinement of belief" doesn't apply to that scenario? Use this chapter's language to try to distinguish these two possibilities — you don't need to solve it, just get the question clearly stated.
