Tutorials › Statistical Learning (Graduate) › Common Errors in VC and Covering Arguments

VC and Entropy Complexity · Tutorial 168 of 989

Common Errors in VC and Covering Arguments

Learn how to check VC and covering claims by verifying the witnesses, metric, and probability measure on which each argument depends.

Intermediate 10 min read

What You'll Learn

  • Check whether a proposed set really witnesses shattering by testing every labeling.
  • Distinguish VC dimension from the cardinality of a class.
  • Track how changing the covering metric changes distances and covering numbers.
  • Tell a bound for one probability measure from a bound uniform over all measures.
  • Use measure domination to transfer a covering bound between measures.

Why Small Details Matter in VC Arguments

VC and covering arguments often have a compact form: exhibit a shattered set, count traces, or cover a class at a chosen radius. The conclusions can be powerful, but each depends on a precise object. A single missing labeling, an unexamined change of metric, or an unstated dependence on a probability measure can invalidate an otherwise plausible argument.

This tutorial focuses on four checks. For each claim, identify the exact witness or class, the distance being used, and whether the bound holds for one fixed distribution or uniformly over distributions. These checks do not replace the standard VC and entropy results; they help ensure those results are being applied to the right quantities.

Definition: Let \(\mathcal A\) be a class of subsets of a domain \(\mathcal X\). A finite set \(S\subseteq\mathcal X\) is shattered by \(\mathcal A\) if \[ \{A\cap S:A\in\mathcal A\}=\{T:T\subseteq S\}. \] The VC dimension \(\operatorname{VC}(\mathcal A)\) is the largest size of a finite set shattered by \(\mathcal A\), or infinity if shattered sets have arbitrarily large finite size. For a probability measure \(Q\), the set-class \(L_1(Q)\) distance is \[ d_Q(A,B)=Q(A\triangle B), \] where \(A\triangle B=(A\setminus B)\cup(B\setminus A)\). A radius-\(\varepsilon\) cover has centers in \(\mathcal A\) and places every member of \(\mathcal A\) within distance at most \(\varepsilon\) of some center.

Mistake 1: Treating a Partial Witness as Shattering

To prove that the VC dimension is at least \(k\), it is not enough to find a \(k\)-point set on which the class realizes “many” traces, or even all but one of them. Shattering requires every one of the \(2^k\) subsets. A single missing pattern means that this particular set is not a shattering witness.

Worked Example: One Missing Labeling

Let \(\mathcal X=\{a,b\}\) and \(\mathcal A=\{\varnothing,\{a\},\{b\}\}\). Does \(S=\{a,b\}\) witness VC dimension at least two?

There are four subsets of \(S\): \(\varnothing,\{a\},\{b\},\{a,b\}\). The traces \(A\cap S\), as \(A\) ranges over \(\mathcal A\), are exactly \(\varnothing,\{a\},\{b\}\). The trace \(\{a,b\}\) is missing, so \(S\) is not shattered.

Each singleton is shattered: for \(S=\{a\}\), the class realizes both \(\varnothing\) and \(\{a\}\), and the same is true for \(\{b\}\). Therefore \(\operatorname{VC}(\mathcal A)=1\), not 2. Having three of the four patterns on a pair is not enough.

Proposition: A finite set \(S\) is shattered if and only if, for every labeling of its points by 0 and 1, some member of \(\mathcal A\) agrees with that labeling on all of \(S\). In particular, proving \(\operatorname{VC}(\mathcal A)\ge k\) requires exhibiting one \(k\)-point set and verifying all \(2^k\) labelings.

Proof. A 0–1 labeling of \(S\) corresponds uniquely to the subset \(T\subseteq S\) labeled 1. A class member agrees with that labeling precisely when its trace on \(S\) is \(T\). Thus every labeling is realized exactly when every subset of \(S\) occurs as a trace, which is the definition of shattering. The lower-bound claim follows directly from the definition of VC dimension. \(\square\)

The converse direction needs a different kind of argument. A single failed candidate \(S\) does not establish that the VC dimension is below \(|S|\); it only shows that this particular \(S\) is not shattered. To prove an upper bound, one must rule out shattering for every set of the proposed size.

Mistake 2: Confusing VC Dimension with Class Cardinality

The number of members in a class and its VC dimension are related, but they are not interchangeable. If a class shatters \(k\) points, it must contain at least \(2^k\) distinct members: each required trace must come from a class member, and one member cannot have two different traces on the same set.

Result: If \(\mathcal A\) is finite, then \[ \operatorname{VC}(\mathcal A)\leq \log_2|\mathcal A|. \] This is an upper bound on VC dimension from class size, not an identity.

Proof. Suppose \(S\) of size \(k\) is shattered. By the definition of shattering, for every \(T\subseteq S\) there is an \(A\in\mathcal A\) with \(A\cap S=T\). If \(T_1\ne T_2\), the corresponding class members must be distinct, since one member has only one trace on \(S\). There are \(2^k\) subsets of \(S\), so \(|\mathcal A|\geq 2^k\). Taking base-two logarithms gives \(k\leq\log_2|\mathcal A|\). Applying this to the largest shattered set proves the claim. \(\square\)

Worked Example: Equal Class Sizes, Different VC Dimensions

Let \(\mathcal X=\{1,2,3\}\), and let \(\mathcal A\) consist of the four initial segments \(\varnothing,\{1\},\{1,2\},\{1,2,3\}\). This class has cardinality 4. It shatters \(\{1\}\), since both possible traces occur. It does not shatter any pair: for \(i<j\), an initial segment containing \(j\) also contains \(i\), so the trace \(\{j\}\) cannot occur. Thus its VC dimension is 1.

Now let \(\mathcal B\) be the class of all subsets of \(\{a,b\}\). It also has cardinality 4, but it shatters \(\{a,b\}\), so its VC dimension is 2. The same class size can therefore accompany different VC dimensions. Conversely, class size alone does not tell you which subsets of a sample can appear as traces.

Mistake 3: Changing the Covering Metric Without Changing the Radius

A covering number is defined relative to a metric or pseudometric. The notation \(N(\varepsilon,\mathcal A,L_1(Q))\) specifies both the radius and the probability measure. For set indicators, the \(L_1(Q)\) distance is \(Q(A\triangle B)\). The corresponding \(L_2(Q)\) distance is different: \[ \|\mathbf 1_A-\mathbf 1_B\|_{L_2(Q)}^2=Q(A\triangle B), \qquad \|\mathbf 1_A-\mathbf 1_B\|_{L_2(Q)}=\sqrt{Q(A\triangle B)}. \] Consequently, an \(\varepsilon\)-radius in \(L_2(Q)\) corresponds to an \(\varepsilon^2\)-radius in \(L_1(Q)\) for indicator functions. Reusing the same numerical radius across these metrics can change which pairs of sets are close.

Worked Example: The Same Pair in \(L_1\) and \(L_2\)

Take \(\mathcal X=\{x,y\}\), \(A=\varnothing\), \(B=\{x\}\), and let \(Q(\{x\})=0.04\), \(Q(\{y\})=0.96\). Then \[ d_{L_1(Q)}(A,B)=Q(A\triangle B)=Q(\{x\})=0.04. \] The \(L_2(Q)\) distance between their indicator functions is \(\sqrt{0.04}=0.2\).

At radius \(0.1\), one of these two sets can cover both in \(L_1(Q)\), because their \(L_1\) distance is \(0.04\). In \(L_2(Q)\), neither can cover the other at radius \(0.1\), because their \(L_2\) distance is \(0.2\). The covering numbers for this two-member class are therefore 1 and 2, respectively, under these radii. The metric is part of the claim, not optional notation.

There is also a useful, explicitly checkable way to transfer covers between measures. Write \(Q\leq cP\) when \(Q(E)\leq cP(E)\) for every measurable set \(E\), with \(c\geq 0\). This condition is stronger than merely saying that \(P\) and \(Q\) are both probability measures.

Proposition: If \(Q\leq cP\), then for all measurable sets \(A,B\), \[ d_Q(A,B)\leq c\,d_P(A,B). \] Consequently, any \(\varepsilon\)-cover of \(\mathcal A\) in \(L_1(P)\) is a \(c\varepsilon\)-cover in \(L_1(Q)\).

Proof. Apply the measure inequality \(Q(E)\leq cP(E)\) to \(E=A\triangle B\). This gives \[ d_Q(A,B)=Q(A\triangle B)\leq cP(A\triangle B)=c\,d_P(A,B). \] Now let \(C\in\mathcal A\) be a cover center for \(A\) under \(P\), so \(d_P(A,C)\leq\varepsilon\). The inequality just proved yields \(d_Q(A,C)\leq c\varepsilon\). This holds for every \(A\in\mathcal A\), so the same centers form a \(c\varepsilon\)-cover under \(Q\). \(\square\)

Without a condition connecting the measures, a cover under one measure need not be useful under another. For instance, let \(\mathcal A=\{\varnothing,\{0\}\}\) on \(\{0,1\}\). Under \(P\) concentrated at 1, the two sets have distance 0, so one center covers the class at every positive radius. Under \(Q\) concentrated at 0, their distance is 1, so at any radius below 1 two centers are needed. A small covering number for \(P\) alone does not imply a small covering number for \(Q\).

Mistake 4: Turning a Bound for One Measure into a Uniform Bound

A statement about \(N(\varepsilon,\mathcal A,L_1(Q))\) for one specified \(Q\) is a distribution-specific statement. A statement uniform over probability measures quantifies over every \(Q\), including measures that put mass where particular sets differ. The distinction is captured by the order of the quantifiers: a bound for each fixed \(Q\) with a constant that may depend on \(Q\) is not automatically a bound with one constant that works for all \(Q\).

For context, a standard uniform VC entropy result says that if \(\mathcal A\) is a class of measurable sets with finite VC dimension \(v\), then there is a universal constant \(C\) such that, for every probability measure \(Q\) and \(0<\varepsilon<1\), \[ N(\varepsilon,\mathcal A,L_1(Q))\leq (C/\varepsilon)^v. \] The important feature for this tutorial is the explicit uniformity: the same \(C\) and the same bound apply to every \(Q\). In a proposed argument, that uniformity must come from a theorem or a valid measure-independent argument; it cannot be inferred from checking one \(Q\). If measurability conditions are needed for a further probabilistic conclusion, those must also be checked for that conclusion.

Worked Example: An Empirical Cover Can Miss Unobserved Points

Suppose a sample consists only of observations equal to 1, so its empirical probability measure \(P_n\) is concentrated at 1. For the class \(\{\varnothing,\{0\}\}\), the empirical \(L_1(P_n)\) distance between the two sets is zero. An empirical cover can therefore treat them as a single point at any positive radius.

But if the target distribution \(Q\) is concentrated at 0, their true \(L_1(Q)\) distance is 1. The empirical cover says nothing about that separation. The issue is not that the empirical distance was calculated incorrectly: it accurately describes the observed sample. The mistake would be to use it as if it were already a cover under every possible target distribution.

A Practical Audit for VC and Covering Claims

When checking a derivation, write down what the argument actually establishes before using it. The following sequence separates the common failure points.

1
Identify the object.
For a VC claim, name the class and the proposed finite witness. For an entropy claim, name the class, measure, metric, and radius.
2
Verify the exact requirement.
Check every labeling for shattering. For a cover, check every class member against a center using the stated distance and radius.
3
Track the quantifiers.
Ask whether the assertion is for a fixed measure, every measure, or a measure satisfying a stated comparison such as \(Q\leq cP\).
4
Check what is being transferred.
Changing from \(L_1\) to \(L_2\), or from an empirical measure to a target distribution, requires a valid distance relation or a theorem for the new setting.

Common Mistakes

  • “Almost all patterns” means shattering. It does not: the definition requires every subset of the witness set to occur as a trace.
  • “There are many class members, so the VC dimension is large.” Cardinality gives the upper bound \(\operatorname{VC}(\mathcal A)\leq\log_2|\mathcal A|\) for a finite class, but does not determine the dimension.
  • “A small cover in one metric is a small cover in another.” Not without translating distances and radii. For indicators, \(L_2\) distance is the square root of \(L_1\) distance.
  • “The bound holds for my measure, so it holds uniformly.” Uniformity requires the same bound to hold over the stated collection of measures; a single-measure calculation does not establish it.
Key takeaway: A valid VC or covering argument is precise about its witness, metric, radius, and measure. Check each of these before accepting the conclusion or transferring it to a different setting.

Check Your Understanding

For each question, state which definition or quantifier you would check before accepting the claim.

  1. A class realizes seven of the eight possible traces on a three-point set. Does this establish that its VC dimension is at least three? Why?
  2. What upper bound does the cardinality of a finite class give on its VC dimension, and why need not it be an equality?
  3. Two indicator functions differ on a set of probability \(0.09\). What are their \(L_1(Q)\) and \(L_2(Q)\) distances?
  4. A class has a one-center cover at radius \(0.05\) under \(P\). What additional type of condition could let you transfer this to a cover under \(Q\)?
  5. Why can a cover under an empirical measure fail to control distances under a target distribution?
Clinical Biostats