Skip to content
nonconvexcard

Nets, Covering Numbers and Metric Entropy

How to reduce a supremum over an infinite set to a maximum over a finite one, and what that reduction costs.

High-Dim ProbabilityGraduate⏱ 3 hours11 min readepsilon netcovering numberpacking numbermetric entropyvolumetric argument
4 problems →

Definitions

DefinitionNets, covering and packing numbers

Let (T,ρ)(T,\rho) be a metric space and ε>0\eps>0.

  • N⊆T\Ncal \subseteq T is an ε\eps-net of TT if every x∈Tx \in T has some y∈Ny \in \Ncal with ρ(x,y)≤ε\rho(x,y)\le\eps.
  • The covering number N(T,ρ,ε)N(T,\rho,\eps) is the smallest cardinality of an ε\eps-net.
  • P⊆T\mathcal{P}\subseteq T is ε\eps-separated if ρ(x,y)>ε\rho(x,y) > \eps for all distinct x,y∈Px,y\in\mathcal{P}; the packing number P(T,ρ,ε)P(T,\rho,\eps) is the largest cardinality of an ε\eps-separated set.
  • log⁡N(T,ρ,ε)\log N(T,\rho,\eps) is the metric entropy of TT at scale ε\eps.
LemmaPacking and covering numbers are equivalent

For every ε>0\eps>0,

P(T,ρ,2ε)≤N(T,ρ,ε)≤P(T,ρ,ε).P(T,\rho,2\eps) \le N(T,\rho,\eps) \le P(T,\rho,\eps).

So the two notions are interchangeable up to a factor of 22 in the scale, and since every bound we prove is stated up to constants and logarithms, they may be used interchangeably. The practical consequence: to upper bound a covering number, exhibit a net; to lower bound it, exhibit a separated set.

The volumetric argument

TheoremVolumetric bound on covering numbers

Let BdB^d be the unit Euclidean ball in Rd\R^d and ε∈(0,1)\eps \in (0,1). Then

(1ε)d  ≤  N(Bd,∥⋅∥2,ε)  ≤  (3ε)d.\left(\frac1\eps\right)^d \;\le\; N(B^d, \norm{\cdot}_2, \eps) \;\le\; \left(\frac{3}{\eps}\right)^d .

The same bounds, with the same proof, hold for the sphere Sd−1S^{d-1}.

Key idea

Both bounds are ε−d\eps^{-d} up to the base of the exponent. So metric entropy of the ball is

log⁡N(Bd,∥⋅∥2,ε)=dlog⁡1ε+O(d),\log N(B^d,\norm{\cdot}_2,\eps) = d\log\frac1\eps + O(d),

linear in the dimension and only logarithmic in the accuracy. This single fact is why net arguments are useful: the union bound costs log⁡(net size)≈dlog⁡(1/ε)\log(\text{net size}) \approx d\log(1/\eps), which is paid against a concentration exponent that is typically of order nn or t2t^2 — so the argument succeeds precisely when the sample size beats the dimension.

Using a net: the operator norm

LemmaOperator norm from a net

Let A∈Rm×dA \in \R^{m\times d}, let ε∈[0,1/2)\eps \in [0,1/2) and let N\Ncal be an ε\eps-net of Sd−1S^{d-1}. Then

sup⁡x∈N∥Ax∥2  ≤  ∥A∥  ≤  11−ε sup⁡x∈N∥Ax∥2.\sup_{x \in \Ncal}\norm{Ax}_2 \;\le\; \norm{A} \;\le\; \frac{1}{1-\eps}\,\sup_{x\in\Ncal}\norm{Ax}_2 .

In particular a 12\tfrac12-net gives ∥A∥≤2max⁡x∈N∥Ax∥2\norm{A} \le 2\max_{x\in\Ncal}\norm{Ax}_2.

Chaining and Dudley's integral

The net argument above is lossy. It approximates every point of Sd−1S^{d-1} at a single scale ε\eps, paying the full union-bound price at that scale. Chaining approximates at a sequence of geometrically decreasing scales, paying a smaller price at each.

DefinitionSub-Gaussian process

A stochastic process (Zt)t∈T(Z_t)_{t\in T} indexed by a metric space (T,ρ)(T,\rho) is sub-Gaussian if

∥Zt−Zs∥ψ2≤Cρ(t,s)for all s,t∈T.\norm{Z_t - Z_s}_{\psi_2} \le C\rho(t,s) \qquad\text{for all } s,t \in T.
TheoremDudley's entropy integral

For a mean-zero sub-Gaussian process (Zt)t∈T(Z_t)_{t\in T},

Esup⁡t∈TZt  ≤  C∫0∞log⁡N(T,ρ,ε)  dε.\E\sup_{t\in T} Z_t \;\le\; C\int_0^\infty \sqrt{\log N(T,\rho,\eps)}\;d\eps .

The proof is the chaining argument: write Zt−Zt0Z_t - Z_{t_0} as a telescoping sum along a sequence of nets at scales 2−k2^{-k}, apply a union bound at each scale, and sum the resulting geometric series. It is a beautiful argument and it is given in full in the references; it is stated here because the shape of the conclusion is what gets used.

DefinitionGaussian width

For a bounded set T⊆RdT \subseteq \R^d and g∼N(0,Id)g \sim \Ncal(0,I_d), the Gaussian width is

w(T)=Esup⁡x∈T⟨g,x⟩.w(T) = \E\sup_{x\in T}\ip{g}{x}.

Gaussian width is the single scalar that governs a remarkable range of high-dimensional estimates: the operator norm of a random matrix restricted to TT, the number of measurements needed for compressed sensing of signals in TT, the error of an estimator constrained to TT. Two reference values worth memorising:

w(Sd−1)=E∥g∥2≈d,w({x:∥x∥2≤1,∥x∥0≤s})≲slog⁡(d/s).w(S^{d-1}) = \E\norm{g}_2 \approx \sqrt d, \qquad w\big(\{x : \norm{x}_2 \le 1, \norm{x}_0 \le s\}\big) \lesssim \sqrt{s\log(d/s)} .

The second is the reason sparse recovery needs O(slog⁡(d/s))O(s\log(d/s)) measurements rather than O(d)O(d): the complexity of the set of ss-sparse unit vectors, measured by Gaussian width, is slog⁡(d/s)\sqrt{s\log(d/s)}, not d\sqrt d. The sparse recovery page makes this quantitative.

What this does not say

Dudley's bound is not tight in general. There are sets for which Esup⁡tZt≪∫0∞log⁡N(T,ρ,ε) dε\E\sup_t Z_t \ll \int_0^\infty\sqrt{\log N(T,\rho,\eps)}\,d\eps, and the gap can be a factor of log⁡\sqrt{\log} or worse. Talagrand's generic chaining replaces the entropy integral with the γ2\gamma_2 functional, which does characterise Esup⁡tZt\E\sup_t Z_t for Gaussian processes (the majorising measure theorem). For most applications on this site Dudley suffices; when it does not, the reference is the right place to go.

Problems

The volumetric lower bound on covering numbersProof · Intermediate · 30 min The operator norm on a netProof · Intermediate · 30 min Covering numbers of the set of sparse unit vectorsProof · Advanced · 1 hour Gaussian width of the sphere and of the sparse setProof · Advanced · 30 min

References

  • BookRoman Vershynin (2018). High-Dimensional Probability: An Introduction with Applications in Data ScienceChapters 4 and 7–8 for nets, chaining and Gaussian width, in far more depth than here.
  • BookMichel Talagrand (2021). Upper and Lower Bounds for Stochastic Processes: Decomposition TheoremsThe definitive account of chaining and generic chaining, which supersedes Dudley's bound.
  • BookMartin J. Wainwright (2019). High-Dimensional Statistics: A Non-Asymptotic ViewpointChapter 5 connects metric entropy to statistical rates.

These works are cited as sources to read, not reproduced. All exposition, examples and problems on this site are written independently; where an argument is standard, the citation points to a canonical treatment.

Results stated on this page

Problems (4)

All problems