Types of Set Sparsity
Several terms describe a set that is “small” or “negligible,” even when it has infinitely many points. “Nowhere dense” means small in a topological sense (and a meager set is a countable union of nowhere dense sets), and “measure zero” means small in a size sense. Neither implies the other. An event of probability zero is a set of measure zero for a probability measure.
Definitions
Consider a set $A$ in a topological space, with its closure $\closure{A}$. The set $A$ is nowhere dense if the interior of its closure is empty:
\[\operatorname{int}(\closure{A}) = \emptyset.\]Examples
-
The Cantor set is nowhere dense, because the interior of its closure is empty. The Cantor set is closed, so its closure is the Cantor set itself. After $n$ steps of the construction, what remains is a union of intervals of length $3^{-n}$, so the Cantor set contains no interval of positive length, and therefore no open set: its interior is empty.
-
A fat Cantor set is nowhere dense, because it contains no interval.
Non-examplesThings that may be mistaken for examples of this term.
-
$\rationals$ is not nowhere dense, because it is dense in $\reals$.
Missing definition: meager_set
Consider a set $A \subseteq \reals$. The set $A$ has measure zero if for every $\varepsilon > 0$, it can be covered by countably many intervals with total length less than $\varepsilon$.
Consider a measure $\mu$ on a space (by default, Lebesgue measure) and a measurable set $A$. The set $A$ has measure zero if $\mu(A) = 0$.
Examples
-
$\rationals$ has measure zero, because it is countable.
-
The Cantor set is nowhere dense and has measure zero, even though it is uncountable.
Non-examplesThings that may be mistaken for examples of this term.
-
A fat Cantor set does not have measure zero, because the intervals removed in its construction are small enough that it keeps a positive length.
Properties
- Every countable set of real numbers has measure zero, and so do some uncountable sets, such as the Cantor set.
- A countable union of sets of measure zero has measure zero.
Consider an event in a random experiment. The event has probability zero if its probability is $0$.
Consider a probability space with probability measure $P$, and an event $E$. The event $E$ has probability zero if $P(E) = 0$.
Examples
-
The event that a uniform random number on $[0, 1]$ is rational has probability zero, because $\rationals \cap [0, 1]$ has measure zero. The event is not impossible, however, because every rational number in $[0, 1]$ is a possible outcome.
Properties
- An event with probability zero can still happen. If $X$ is uniformly distributed on $[0, 1]$, then $P(X = 1/2) = 0$, but $X$ must take some value, and every value has probability zero.
Examples
| Example | nowhere dense | meager_set | measure zero | probability zero | Why |
|---|---|---|---|---|---|
| The Cantor set | ✓ | ✓ | ✓ | – | The Cantor set is nowhere dense and has measure zero, even though it is uncountable. |
| The set of rational numbers, $\rationals$ | ✗ | ✓ | ✓ | – | nowhere dense: $\rationals$ is not nowhere dense, because it is dense in $\reals$.
meager_set: $\rationals$ is meager, because it is a countable union of single points, and each point is nowhere dense in $\reals$.
measure zero: $\rationals$ has measure zero, because it is countable.
|
| A “fat” Cantor set | ✓ | ✓ | ✗ | – | nowhere dense: A fat Cantor set is nowhere dense, because it contains no interval.
meager_set: A fat Cantor set is meager, because it is nowhere dense, even though its measure is positive.
measure zero: A fat Cantor set does not have measure zero, because the intervals removed in its construction are small enough that it keeps a positive length.
|
| The probability that a uniform random number on $[0, 1]$ is rational | – | – | – | ✓ | probability zero: The event that a uniform random number on $[0, 1]$ is rational has probability zero, because $\rationals \cap [0, 1]$ has measure zero. The event is not impossible, however, because every rational number in $[0, 1]$ is a possible outcome.
|
Notes
-
A countable union of nowhere dense sets is called meager (or of first category). The Baire category theorem says $\reals$ is not meager.
-
“Almost every” means “except on a set of measure zero,” and “almost never” means “with probability zero.”