Cantor Distribution — Definition, Formula & Example
The Cantor distribution is the probability distribution of a random number between 0 and 1 whose base-3 digits are chosen by fair coin flips: each digit is 0 or 2, never 1. It has no jumps and no density curve, which makes it the standard example of a singular continuous distribution.
A random variable has the Cantor distribution if its cumulative distribution function is the Cantor function (the "devil's staircase"). is continuous and nondecreasing on , with and , and for almost every . The distribution assigns probability 1 to the Cantor set , which has Lebesgue measure 0, and probability 0 to every single point. So it is neither discrete nor absolutely continuous.
Key Formula
Where:
- = The Cantor-distributed random variable, taking values in the Cantor set inside
- = Independent fair coin flips equal to 0 or 1, each with probability
- = The -th base-3 digit of , which is always 0 or 2
- = Place value of the -th digit after the ternary point
Worked Example
Problem: Use the self-similarity of the Cantor distribution to find its mean and variance.
Step 1: Split off the first ternary digit. The remaining digits form a scaled copy with the same Cantor distribution, independent of the first flip .
Step 2: Take expected values. Since and , you get an equation in .
Step 3: Take variances. Because and are independent, the variances add. Use and solve for .
Answer: The mean is and the variance is . That variance is larger than the uniform distribution's , because the Cantor distribution never places mass in the middle third .
Why It Matters
In a measure-theoretic probability or real analysis course, the Cantor distribution is the go-to counterexample showing that "continuous" does not mean "has a density." It is the concrete case behind the singular part of the Lebesgue decomposition, which splits every distribution into discrete, absolutely continuous, and singular continuous pieces. It also appears in fractal geometry as the natural measure on a self-similar set.
Common Mistakes
Mistake: Assuming that a continuous CDF always has a density, so you try to get one by differentiating the Cantor function.
Correction: The Cantor function has derivative 0 almost everywhere, so integrating that "density" over gives 0, not 1. The distribution has no probability density function. Compute probabilities from the CDF or from the digit construction instead.
