Skip to content

Covering number and metric entropy

Count the representatives needed at a chosen distance tolerance, prove exact interval covering numbers, and distinguish metric entropy, packing and empirical function geometry.

A covering number is the smallest number of representative points needed to approximate every point in a set within a specified distance tolerance. Metric entropy is the logarithm of that number. For a quant modelling an infinite family of return forecasts, this provides a way to count distinguishable prediction patterns at a chosen resolution rather than count parameter values.

State the distance and the covering rules

Let TT be a nonempty subset of a metric space, with distance dd, and let ε>0\varepsilon>0. This article uses closed balls with centres in TT. Its covering number is
N(T,d,ε)=min⁡{m: ∃c1,…,cm∈T,∀t∈T, min⁡1≤j≤md(t,cj)≤ε}.N(T,d,\varepsilon)=\min\left\{m:\ \exists c_1,\ldots,c_m\in T,\quad \forall t\in T,\ \min_{1\leq j\leq m}d(t,c_j)\leq\varepsilon\right\}.
Set N=∞N=\infty if no finite cover exists. A set of centres satisfying the distance condition is an ε\varepsilon-net; it need not have the smallest possible size. Exhibiting ten suitable centres proves only N≤10N\leq10.
These are Vershynin's covering conventions. Other authors allow centres outside TT, or use the strict inequality d(t,cj)<εd(t,c_j)<\varepsilon. Keep the convention attached to an exact count.

Two balls really are enough—and necessary

Take T=[0,1]T=[0,1] with ordinary absolute distance d(x,y)=∣x−y∣d(x,y)=\lvert x-y\rvert. All coordinates and radii here are dimensionless. At radius ε=0.25\varepsilon=0.25, the centres 0.250.25 and 0.750.75 cover respectively [0,0.5][0,0.5] and [0.5,1][0.5,1]. Their union contains every point, including the meeting point 0.50.5.

That proves N≤2N\leq2. For the reverse inequality, one radius-0.250.25 ball has length at most 0.50.5 inside the interval, so it cannot cover an interval of length 11. Therefore

N([0,1],∣⋅∣,0.25)=2.N([0,1],\lvert\cdot\rvert,0.25)=2.

The same argument works at every positive radius. If mm balls cover the interval, their union has length at most 2mε2m\varepsilon, so m≥⌈1/(2ε)⌉m\geq\lceil1/(2\varepsilon)\rceil. Conversely, partition [0,1][0,1] into that many equal subintervals and place a centre at each midpoint. Each half-width is at most ε\varepsilon. Thus

N([0,1],∣⋅∣,ε)=⌈12ε⌉.N([0,1],\lvert\cdot\rvert,\varepsilon) =\left\lceil\frac{1}{2\varepsilon}\right\rceil.
Radius ε\varepsilonOne smallest set of centresCovering number
0.50.50.50.511
0.250.250.25, 0.750.25,\ 0.7522
0.1250.1250.125, 0.375, 0.625, 0.8750.125,\ 0.375,\ 0.625,\ 0.87544
Closed-ball covers of the dimensionless interval from 0 to 1: radius 0.5 needs 1 centre at 0.5; radius 0.25 needs 2 at 0.25 and 0.75; radius 0.125 needs 4 at 0.125, 0.375, 0.625 and 0.875. Each ball includes its endpoints.
Closed-ball covers of the dimensionless interval from 0 to 1: radius 0.5 needs 1 centre at 0.5; radius 0.25 needs 2 at 0.25 and 0.75; radius 0.125 needs 4 at 0.125, 0.375, 0.625 and 0.875. Each ball includes its endpoints.
An exact geometric example. Blue dots mark centres; the bars show closed balls restricted to the interval. The length lower bound proves that each displayed cover is minimal.
Boundary conventions change exact answers. With open radius-0.250.25 balls, two cannot cover [0,1][0,1]: covering 00 needs a centre below 0.250.25, while covering 11 needs one above 0.750.75, leaving a gap between those two balls. Three centres at 1/6,1/2,5/61/6,1/2,5/6 do cover it. Separately, for the set T={0,1}T=\{0,1\} at closed radius 0.50.5, requiring centres in TT gives N=2N=2; allowing an ambient centre at 0.50.5 gives N=1N=1.

Count, logarithm and separation

Write metric entropy here using the natural logarithm:
H(T,d,ε)=ln⁡N(T,d,ε).H(T,d,\varepsilon)=\ln N(T,d,\varepsilon).

At radius 0.250.25, the interval has covering number 22 and entropy ln⁡2≈0.693147\ln2\approx0.693147. Using log⁡2\log_2 instead gives 11. Changing the logarithm base rescales entropy; it does not change the cover. Metric entropy concerns geometric approximation, rather than the probabilities used in Shannon entropy.

A packing number instead counts the largest subset of TT whose distinct points are more than ε\varepsilon apart. Under this strict-separation convention, for a totally bounded set (one with a finite cover at every positive radius),
M(T,d,2ε)≤N(T,d,ε)≤M(T,d,ε).M(T,d,2\varepsilon)\leq N(T,d,\varepsilon)\leq M(T,d,\varepsilon).
The left bound holds because a closed radius-ε\varepsilon ball cannot contain two points separated by more than 2ε2\varepsilon. For the right bound, a packing to which no further point can be added already covers TT: any uncovered point could be added. Covering controls approximation; packing controls separation. They are related at different scales, not identical counts. These are Vershynin's covering–packing bounds.

For forecasts, cover functions in the relevant geometry

For a function class F\mathcal F, closeness must specify a norm or pseudometric. On fixed inputs x1,…,xnx_1,\ldots,x_n, the empirical root-mean-square distance is

dn(f,g)=(1n∑i=1n(f(xi)−g(xi))2)1/2.d_n(f,g)=\left(\frac1n\sum_{i=1}^n(f(x_i)-g(x_i))^2\right)^{1/2}.
This is Liang's empirical L2L_2 geometry. It depends on the observed inputs and can be zero for different functions. For example, on [0,1][0,1], f(x)=0f(x)=0 and g(x)=x(1−x)g(x)=x(1-x) agree at the two sampled inputs 00 and 11, giving d2(f,g)=0d_2(f,g)=0. Yet their uniform distance is 0.250.25, attained at x=0.5x=0.5.

Population L2L_2 distance instead uses a stated input distribution PP:

dP(f,g)=(EX∼P[(f(X)−g(X))2])1/2.d_P(f,g)=\left(\mathbb E_{X\sim P}[(f(X)-g(X))^2]\right)^{1/2}.
Assume the functions are square-integrable. This too is a pseudometric on pointwise functions: differences on a set of PP-probability zero do not count. Uniform distance on a specified domain is d∞(f,g)=sup⁡x∣f(x)−g(x)∣d_\infty(f,g)=\sup_x\lvert f(x)-g(x)\rvert, when finite. These choices can produce different covering numbers; a grid in parameter space needs a separate argument relating parameter changes to prediction changes. The inner-products and norms lesson develops induced norms, including an integral example for functions. Its public page is a preview; the full lesson requires membership.
A finite cover lets a proof analyse representatives and then control approximation error for nearby functions. Learning bounds also need assumptions about the loss and sampling. A small empirical cover alone cannot establish generalisation to future market regimes. The Dudley entropy integral develops the next step: combining covering information across resolutions rather than relying on one radius.

Sources

Last updated
  • covering number
  • metric entropy
  • epsilon net
  • learning theory
  • function class
← Back to the glossaryBack to top ↑