SigmaField
Mathematical Foundations for Quant Finance
0 of 256 lessons
    1. PG6.1 Sets and set operations, provedProof · 30 min
    2. PG6.2 Injective, surjective and bijective mapsProof · 30 min
    3. PG6.3 Countable setsProof · 30 min
    4. PG6.4 Uncountable sets, and infinitely many coin tossesProof · 30 min
    5. PG6.5 Stage review: sets, maps and sizesProof · 30 min
Proof Gym overview →

Proof Gym PG6 Sets and functions Lesson 4 of 5

ProofLesson PG6.4 in the Proof Gym, stage PG6: Sets and functions. About 30 minutes.

Uncountable sets, and infinitely many coin tosses

Simulate

Check the claim with numbers

Toss a coin for ever, and record the result as an infinite sequence of H and T, such as HTTHH…HTTHH\ldots. Lesson PG6.3 listed Z\mathbb{Z} and N×N\mathbb{N} \times \mathbb{N}. Can the set Ω\Omega of all infinite toss sequences be listed too?

A computer cannot hold an infinite list, but it can test the idea behind the answer on finite ones. Take any list of 6 sequences of 6 tosses.

Build a new sequence dd: its toss jj is the opposite of toss jj of sequence jj. That flips the diagonal of the list.

⌘/Ctrl + Enter runs the cell

The six tosses on the diagonal of the first list are T, T, H, H, H, T, so dd is HHTTTH. It differs from the first sequence at toss 1, from the second at toss 2, and so on down the list.

The last line repeats this for 1,000 random lists of 8 sequences of 8 tosses. The flipped diagonal was on its list 0 times.

Conjecture

No list s1,s2,s3,…s_1, s_2, s_3, \ldots contains every infinite sequence of H and T. The set Ω\Omega of infinite toss sequences is uncountable: it is infinite, but not countable.

A thousand finite lists. A list of Ω\Omega would be infinite, and the claim is about every possible list. The proof must flip the diagonal at every place at once.

Proof by contradiction, with a diagonal

To show that no list works, suppose one does and derive something false, as in stage PG2. The false thing is a sequence that the list both contains, by assumption, and misses, by construction. Write si(j)s_i(j) for toss jj of sequence sis_i.

Format 1

Reorder the steps

Here is the proof, with its lines shuffled. Put them in order with the arrows, or drag a line by its handle.

  1. Write si(j)s_i(j) for toss jj of the sequence sis_i; each is H or T.
  2. So dd is an infinite toss sequence that is not on the list, which contradicts the first line.
  3. For every ii, the sequences dd and sis_i differ at toss ii, so d≠sid \ne s_i.
  4. Suppose, for a contradiction, that s1,s2,s3,…s_1, s_2, s_3, \ldots is a list that contains every infinite toss sequence.
  5. Build a sequence dd by flipping the diagonal: toss jj of dd is T when sj(j)s_j(j) is H, and H when sj(j)s_j(j) is T.
  6. So no list contains every sequence: Ω\Omega is uncountable.

This is Cantor's diagonal argument. A version of it, with decimal digits, shows that the real numbers between 0 and 1 cannot be listed either.

Simulate

The probability of one sequence

With a fair coin, the 2n2^n patterns of the first nn tosses are equally likely (lesson 5.1.1). So each pattern has probability 2−n2^{-n}, and together they add up to 1.

⌘/Ctrl + Enter runs the cell

Fix one infinite sequence ω\omega (the Greek letter omega). To get ω\omega exactly, the first nn tosses must match it, which has probability 2−n2^{-n}: 9.77×10−49.77 \times 10^{-4} for n=10n = 10 and 8.88×10−168.88 \times 10^{-16} for n=50n = 50. That holds for every nn, so the chance of ω\omega itself is smaller than any of them.

Conjecture

With a fair coin tossed for ever, every single sequence has probability 0: P({ω})=0P(\{\omega\}) = 0 for each ω∈Ω\omega \in \Omega. Yet P(Ω)=1P(\Omega) = 1.

Tossing for ever is a model, not an experiment, so no simulation can run it. The next proof shows what the model can and cannot do.

Format 3

Find the error

A proof that a fair coin cannot be tossed for ever, because the axioms of lesson 5.1.1 would contradict each other. One line misuses an axiom. Select it.

Why infinitely many tosses need measure theory

With finitely many tosses, a probability is a sum over outcomes: add up 2−n2^{-n} for each pattern in the event. With infinitely many, every outcome has probability 0 and there are too many outcomes to list, so that recipe gives nothing.

Measure theory starts from events instead. It gives each event fixed by finitely many tosses, such as "the first two tosses are HT", the probability its patterns give. Then it extends PP to every event built from those by complements and by unions along a list.

That extension takes real work. It also has a limit. Some subsets of Ω\Omega get no probability at all, if the axioms hold and flipping finitely many tosses changes no probability.

The Stochastic Calculus course builds on this. Its random walks and Brownian motion live on sample spaces like Ω\Omega.

Summary card

  • The set Ω\Omega of infinite toss sequences is uncountable. Given any list, flipping its diagonal builds a sequence that differs from the ii-th at toss ii.
  • With a fair coin, each single sequence has probability 0, since it is at most 2−n2^{-n} for every nn.
  • Axiom 3 adds probabilities along a list only. The outcomes of Ω\Omega cannot be listed, so P(Ω)=1P(\Omega) = 1 is no contradiction.
  • So probability for infinitely many tosses is built from events, not outcomes: that is the job of measure theory.

Free further reading

Optional. This lesson covers what you need; these add more examples and practice. All are free to read.