How is choosing a random number from zero to one related to tossing a fair coin infinitely many times?

Created from Britannica articles using AI. AI can make mistakes, so verify using Britannica articles.

Choosing a random number from the interval is mathematically equivalent to the experiment of tossing a fair coin infinitely many times. This relationship is established by representing the sequence of coin toss outcomes as a real number in base 2.12

If we let Xk represent the outcome of the kth toss (where Xk=1 for heads and Xk=0 for tails), the sequence of tosses (X1,X2,…) corresponds to the number:
∑k=1∞Xk2k=X121+X222+X323+…

In this model, any specific sequence of n outcomes has a probability of 1/2n. This corresponds exactly to the length of the interval [i1/21+…+in/2n,i1/21+…+in/2n+1/2n] in the unit interval. Because both models assign the same probabilities to these intervals, they are considered mathematically consistent. This connection is a fundamental example of how probability theory utilizes measure theory to handle experiments with infinite sample spaces.123