Tutorials › Statistical Learning (Graduate) › Comparing Growth and Metric Entropy Rates

VC and Entropy Complexity · Tutorial 167 of 989

Comparing Growth and Metric Entropy Rates

See how Sauer–Shelah growth counts and VC metric entropy yield different uniform-deviation rates, and identify when a logarithmic factor is avoidable.

Intermediate 12 min read

What You'll Learn

  • Distinguish growth-function bounds from uniform covering-number bounds
  • Derive a uniform-deviation bound using Sauer–Shelah growth counts
  • Explain how an entropy integral turns VC covering rates into a square-root rate
  • Compare the resulting sample-size requirements and their logarithmic factors
  • Recognize when a log factor reflects a coarse argument rather than necessary complexity

Why Compare Two Complexity Routes?

A VC class can control uniform deviations in two related ways. One route counts how many distinct patterns the class can produce on a finite sample. The other measures how many functions are needed to approximate the class at different metric scales. Both routes use the same underlying combinatorial restriction, but they do not necessarily yield the same displayed rate.

The distinction matters when translating a deviation bound into a sample-size requirement. A growth-count argument typically leaves a logarithm involving the sample size, or equivalently a logarithm of the target accuracy after the bound is inverted. A uniform metric-entropy argument can remove that factor by integrating covering numbers across scales. This is a difference between bounds obtained by the two arguments; it does not by itself establish that every class must have the slower rate.

Two Complexity Quantities

Let \(\mathcal A\) be a measurable class of measurable subsets of a sample space, with VC dimension \(v\geq 1\). Let \(X_1,\ldots,X_n\) be independent observations with common distribution \(P\), and let \(P_n(A)=n^{-1}\sum_{i=1}^n \mathbf 1\{X_i\in A\}\). Assume the suprema below are measurable; otherwise the probability statements can be formulated using outer probability.

Definition: The growth function of \(\mathcal A\) is \(\Pi_{\mathcal A}(m)=\max_{x_1,\ldots,x_m}|\{(\mathbf 1\{x_i\in A\})_{i=1}^m:A\in\mathcal A\}|\), the largest number of distinct membership patterns the class can realize on \(m\) points. For a probability measure \(Q\), \(N(u,\mathcal A,L_2(Q))\) is the smallest number of \(L_2(Q)\)-balls of radius \(u\) needed to cover the indicator functions of sets in \(\mathcal A\).

The Sauer–Shelah bound states that, for \(m\geq v\), \(\Pi_{\mathcal A}(m)\leq\sum_{j=0}^v {m\choose j}\leq (em/v)^v\). The metric counterpart used here is a uniform VC covering bound: there are universal constants \(A\geq 1\) and \(B\geq 1\) such that, for every probability measure \(Q\) and \(0<u\leq 1\), \(N(u,\mathcal A,L_2(Q))\leq(A/u^2)^{Bv}\). The constants do not depend on \(Q\), \(n\), or the particular class.

What the Growth-Count Route Gives

A finite set of \(M\) vectors, each with Euclidean norm at most \(\sqrt n\), has expected maximum absolute Rademacher sum at most \(\sqrt{2n\log(2M)}\). Conditional on the observations, the indicator vectors from \(\mathcal A\) form at most \(\Pi_{\mathcal A}(n)\) such vectors. Symmetrization then yields the following bound.

Result: For \(n\geq v\), the expected uniform deviation obeys \[ E\left[\sup_{A\in\mathcal A}|P_n(A)-P(A)|\right] \leq 2\sqrt{\frac{2\log(2\Pi_{\mathcal A}(n))}{n}} \leq 2\sqrt{\frac{2\{v\log(en/v)+\log 2\}}{n}}. \]

To see the first inequality, let \(\epsilon_1,\ldots,\epsilon_n\) be independent random signs. Symmetrization bounds the expected deviation by twice \(E\sup_{A\in\mathcal A}|n^{-1}\sum_i\epsilon_i\mathbf 1\{X_i\in A\}|\). Conditional on \(X_1,\ldots,X_n\), there are at most \(\Pi_{\mathcal A}(n)\) distinct vectors, each of norm at most \(\sqrt n\). Applying the finite-vector bound and dividing by \(n\) gives the first inequality. Applying Sauer–Shelah and taking logarithms gives the second.

The map \(Z=\sup_{A\in\mathcal A}|P_n(A)-P(A)|\) changes by at most \(1/n\) when one observation is replaced. McDiarmid’s inequality therefore adds a deviation term \(\sqrt{\log(1/\delta)/(2n)}\) with probability at least \(1-\delta\). In particular,

$$ P\left( Z> 2\sqrt{\frac{2\{v\log(en/v)+\log 2\}}{n}} +\sqrt{\frac{\log(1/\delta)}{2n}} \right)\leq\delta. $$

For fixed \(v\), the leading term contains \(\log(en/v)\). When the target deviation is \(\varepsilon\), this route suggests a sample size of order \(\varepsilon^{-2}\{v\log(1/\varepsilon)+\log(1/\delta)\}\), up to constants and the usual conditions ensuring the bound is small. The logarithm arises because the number of sample patterns grows with \(n\).

Worked Example: A Growth-Count Bound at a Fixed Sample Size

Suppose \(v=1\) and \(n=100\). Sauer–Shelah gives \(\Pi_{\mathcal A}(100)\leq 101\). Substituting this into the expectation bound gives

$$ 2\sqrt{\frac{2\log(2\Pi_{\mathcal A}(100))}{100}} \leq 2\sqrt{\frac{2\log(202)}{100}} \approx 2\sqrt{0.10617} \approx 0.652. $$

Here \(2\log(202)/100\approx 0.10616534\), which rounds to \(0.10617\) at five decimal places. This is a valid, conservative upper bound from the growth-count argument, not a claim that the actual expected deviation equals \(0.652\).

Why Entropy Integration Can Remove a Logarithm

A covering bound controls approximation at each scale, while an entropy integral accumulates the cost across scales. For indicator functions, \(L_2(Q)\) distance squared equals \(L_1(Q)\) distance, which accounts for the \(u^2\) in the uniform covering bound. A chaining inequality for Rademacher averages states, in a form that includes the necessary anchor term, that for any nonempty class \(\mathcal F\) of functions bounded in absolute value by one,

$$ E_\epsilon\sup_{f\in\mathcal F} \left|\frac{1}{n}\sum_{i=1}^n\epsilon_i f(X_i)\right| \leq \frac{1}{\sqrt n} +C\int_0^{D} \sqrt{\frac{\log N(u,\mathcal F,L_2(P_n))}{n}}\,du. $$

Here \(D\) is the \(L_2(P_n)\) diameter of the class and \(C\) is a universal constant. The first term can be taken as the expected absolute Rademacher sum at a fixed anchor \(f_0\in\mathcal F\): by Cauchy–Schwarz it is at most \(\sqrt{P_n f_0^2/n}\leq 1/\sqrt n\). This term cannot simply be omitted for an uncentered class.

For indicators, \(D\leq 1\). The uniform VC covering bound gives \(\log N(u,\mathcal A,L_2(P_n))\leq Bv\log(A/u^2)\). The integral is finite and has order \(\sqrt v\):

$$ \int_0^1\sqrt{Bv\log(A/u^2)}\,du \leq \sqrt{Bv}\left\{\sqrt{\log A} +\sqrt{2}\int_0^1\sqrt{\log(1/u)}\,du\right\} =\sqrt{Bv}\left\{\sqrt{\log A}+\frac{\sqrt{2\pi}}{2}\right\}. $$

For the inequality, use \(\sqrt{a+b}\leq\sqrt a+\sqrt b\). For the equality, set \(t=-\log u\), giving \(\int_0^\infty e^{-t}\sqrt t\,dt=\Gamma(3/2)=\sqrt\pi/2\). Thus the small scales do not produce a factor \(\sqrt{\log(1/u)}\) evaluated at one chosen resolution; that factor is integrated over scales.

Combining the entropy integral with symmetrization and the same bounded-differences inequality proves the following comparison bound.

Result: For a VC class of sets with \(v\geq1\), there is a universal constant \(C_1\) such that \[ E\left[\sup_{A\in\mathcal A}|P_n(A)-P(A)|\right]\leq C_1\sqrt{\frac{v}{n}}, \qquad P\left(Z>C_1\sqrt{\frac{v}{n}}+\sqrt{\frac{\log(1/\delta)}{2n}}\right)\leq\delta. \] The anchor contribution of order \(1/\sqrt n\) is absorbed into \(C_1\sqrt{v/n}\), since \(v\geq1\).

Consequently, the metric-entropy route gives a sufficient sample-size order \(\varepsilon^{-2}\{v+\log(1/\delta)\}\), with universal constants. Unlike the growth-count expression, it has no \(\log(1/\varepsilon)\) multiplying \(v\).

Worked Example: The Entropy Integral Across Scales

To see why the integral does not retain a scale logarithm, consider the bound \(N(u)\leq(4/u^2)^v\), which has the uniform VC form with \(A=4\) and \(B=1\). Its entropy integral is bounded as follows:

$$ \int_0^1\sqrt{\log N(u)}\,du \leq\sqrt v\int_0^1\sqrt{\log 4+2\log(1/u)}\,du \leq\sqrt v\left(\sqrt{\log 4}+\frac{\sqrt{2\pi}}{2}\right) \approx 2.431\sqrt v. $$

The last constant is \(\sqrt{\log 4}+\sqrt{2\pi}/2\approx1.1774+1.2533=2.4307\), rounded to \(2.431\). The covering logarithm increases without bound as \(u\) approaches zero, but its integral stays finite. This calculation explains the rate; it does not specify the universal constant in the full deviation inequality.

Comparing Sample-Size Expressions

The two routes can be summarized by their leading complexity terms. Inverting the growth-count rate introduces a logarithm of the target accuracy; integrating uniform metric entropy avoids it. Both bounds also pay for confidence through \(\log(1/\delta)\).

RouteTypical uniform-deviation scaleTypical sufficient sample-size order
Growth count and Sauer–Shelah\(\sqrt{\{v\log(en/v)+\log(1/\delta)\}/n}\)\(\varepsilon^{-2}\{v\log(1/\varepsilon)+\log(1/\delta)\}\)
Uniform VC metric entropy and integration\(\sqrt{v/n}+\sqrt{\log(1/\delta)/n}\)\(\varepsilon^{-2}\{v+\log(1/\delta)\}\)

These are rate comparisons, not equalities with identical constants. A covering-number argument that uses only a single resolution and a union bound may still retain a logarithm of the resolution. The improvement comes from using the entropy bound across scales and integrating it, not merely from changing the name of the complexity measure.

Worked Example: Comparing the Accuracy Dependence

Take \(v=4\), target deviation \(\varepsilon=0.1\), and failure probability \(\delta=0.05\). Ignoring universal multiplicative constants, the growth-count sample-size expression is

$$ \frac{v\log(1/\varepsilon)+\log(1/\delta)}{\varepsilon^2} =\frac{4\log(10)+\log(20)}{0.01} =\frac{4(2.302585)+2.995732}{0.01} \approx 1220.6. $$

The entropy-integral expression at the same values is

$$ \frac{v+\log(1/\delta)}{\varepsilon^2} =\frac{4+\log(20)}{0.01} =\frac{6.995732}{0.01} \approx 699.6. $$

These numbers compare the expressions inside the rate statements only; they are not calibrated sample-size guarantees because the two derivations have different universal constants. The difference in dependence on accuracy is the point: the growth expression includes \(4\log(10)\), whereas the entropy-integral expression has \(4\) without that logarithmic multiplier.

When the Difference Matters

For a fixed accuracy and confidence level, the growth route is often a direct way to obtain a finite-sample guarantee from the number of sample patterns. Its logarithmic term can be acceptable, particularly when only a rough bound is needed. The entropy route is useful when the uniform covering theorem is available and a sharper dependence on accuracy matters.

The logarithmic factor in the growth bound should not automatically be interpreted as an intrinsic lower bound. It can be a cost of controlling all traces at once with a finite-count argument. Conversely, the entropy rate does not follow from any covering estimate whatsoever: it relies on a VC covering bound uniform over probability measures and on a valid entropy-integral argument. The integral must include an anchor term for an uncentered Rademacher average; for indicator classes that term is harmless when \(v\geq1\), but it is not identically zero.

Common Pitfall

A common mistake is to see that the entropy integral is finite and conclude that the Rademacher average is bounded by that integral alone. For a class containing only the constant function \(f\equiv1\), every covering number is one, so the integral is zero. Yet \(E|n^{-1}\sum_i\epsilon_i|>0\). The missing contribution is the fluctuation at the anchor function. Include its order-\(1/\sqrt n\) term, then absorb it into \(C\sqrt{v/n}\) for indicator classes with \(v\geq1\).

Key takeaway: Sauer–Shelah growth counts give a transparent route with a logarithmic accuracy factor. Uniform VC metric entropy, integrated across scales with an anchor term, yields a \(v/n\) squared-deviation rate and removes that factor from the sufficient sample-size order.

Check Your Understanding

Use the assumptions and rate comparisons stated above.

  1. What does the growth function count, and how does the Sauer–Shelah bound depend on \(v\) and \(n\)?
  2. Why does the growth-count sample-size expression contain \(\log(1/\varepsilon)\)?
  3. For indicator functions, how are squared \(L_2(Q)\) distance and \(L_1(Q)\) distance related?
  4. Why does integrating the VC entropy bound over scales avoid a logarithm evaluated at one fixed resolution?
  5. Why must an entropy-integral bound for an uncentered Rademacher average include an anchor contribution?
Clinical Biostats