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 . Lesson PG6.3 listed and . Can the set 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 : its toss is the opposite of toss of sequence . That flips the diagonal of the list.
The six tosses on the diagonal of the first list are T, T, H, H, H, T, so 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 contains every infinite sequence of H and T. The set of infinite toss sequences is uncountable: it is infinite, but not countable.
A thousand finite lists. A list of 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 for toss of sequence .
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.
- Write for toss of the sequence ; each is H or T.
- So is an infinite toss sequence that is not on the list, which contradicts the first line.
- For every , the sequences and differ at toss , so .
- Suppose, for a contradiction, that is a list that contains every infinite toss sequence.
- Build a sequence by flipping the diagonal: toss of is T when is H, and H when is T.
- So no list contains every sequence: 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 patterns of the first tosses are equally likely (lesson 5.1.1). So each pattern has probability , and together they add up to 1.
Fix one infinite sequence (the Greek letter omega). To get exactly, the first tosses must match it, which has probability : for and for . That holds for every , so the chance of itself is smaller than any of them.
Conjecture
With a fair coin tossed for ever, every single sequence has probability 0: for each . Yet .
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 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 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 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 .
Summary card
- The set of infinite toss sequences is uncountable. Given any list, flipping its diagonal builds a sequence that differs from the -th at toss .
- With a fair coin, each single sequence has probability 0, since it is at most for every .
- Axiom 3 adds probabilities along a list only. The outcomes of cannot be listed, so is no contradiction.
- So probability for infinitely many tosses is built from events, not outcomes: that is the job of measure theory.