Affine linear classifier 2026-10-31
An affine linear classifier assigns binary labels according to the sign of an affine function. Its boundary is an affine hyperplane, and its positive region is a closed half-space under the displayed convention. On the full class has VC dimension : arbitrary signs interpolate on affinely independent points, while the intersecting convex hull partition theorem prevents shattering any points. Requiring gives the homogeneous case and a different VC dimension.
If no -set were shattered, the Sauer-Shelah lemma would bound the number of traces by . This strict middle-layer gap contradicts the displayed lower bound. Therefore a family with such traces at every even size has unbounded finite VC dimension.
The VC dimension is
It is infinite if arbitrarily large finite sets are shattered. A hypothesis class has VC dimension zero when it shatters no one-point set; for a nonempty hypothesis class, the empty set is always shattered.
The Sauer-Shelah lemma says that a hypothesis class of finite VC dimension satisfies
In particular, for ,
Here the binomial coefficients count small subsets. One way to obtain the last inequality is to set : since for ,
Thus finite VC dimension replaces the unrestricted exponential number of labellings by a polynomial bound in the sample size.
Fix an -point set . The restriction of an intersection to is determined by the ordered pair of restrictions . Some pairs can yield the same intersection, so the growth function of a hypothesis class satisfies
Assume first that . If points were shattered by , the Sauer-Shelah lemma would imply
But , so . Raising this strict inequality to the positive integer power gives a contradiction. No -point set can therefore be shattered; neither can any larger set, since shattering passes to subsets. Consequently
The printed strict inequality needs . For example, on a nonempty domain let contain only the identically zero classifier. Then , whereas the stated conclusion would require . More generally, a nonempty hypothesis class of VC dimension zero has only one distinct labelling function, since two different functions would shatter a point on which they differ. Its self-intersection class also has VC dimension zero.
An affine linear classifier in has VC dimension . The upper bound follows from the intersecting convex hull partition theorem: for any points, label the two parts oppositely. The two convex hulls cannot be strictly separated by an affine hyperplane, since they intersect. A weak boundary convention gives the same contradiction: an affine score is nonnegative on the positive convex hull and strictly negative on the negative convex hull. The lower bound comes from the affinely independent vertices of a simplex, because an affine score can interpolate arbitrary signs there.
Consequently, parts (i) and (ii) immediately give
The one-sided orientation of the lifted separators permits the sharper, exact conclusion
To prove the remaining upper bound, take any distinct points and a nonzero affine dependence as in part (c). Write . Reverse every coefficient if necessary so that . Prescribe positive labels when and negative labels when ; zero coefficients may be labelled arbitrarily. If a Euclidean ball realized these labels, its score would satisfy
Indeed, every positive-coefficient term is nonnegative and every negative-coefficient term is strictly positive, with at least one of the latter. On the other hand, expanding the score and using the two affine dependence identities gives
a contradiction. No points are shattered, completing the exact determination of the VC dimension of Euclidean balls. In the exceptional zero-dimensional Euclidean space, every positive-radius Euclidean ball is the whole singleton space, so the VC dimension is zero.
The two-interval approximation by one interval supplies an approximation guarantee for every input probability distribution . Merge overlapping target intervals, and write the target positive set as at most two disjoint ordered intervals . Put and . If there is only one nonempty component, the target already belongs to the interval hypothesis class and has zero misclassification risk. If the interval notation permits empty intervals and the target is empty, choose that same empty interval in .
In the two-component case, choosing the heavier component as the hypothesis loses only the lighter component, so its misclassification risk is
Alternatively, choose the single interval spanning both components. This produces no false negatives, and its false positives lie in the gap. Its misclassification risk is at most . Both candidates are in , so there exists an interval with
For the last step, use if , and if . This avoids any assumption that an empty interval or the whole real line belongs to .
Use empirical risk minimization over intervals on independent labelled examples. The generalization result needed here is the VC uniform convergence theorem: for a binary hypothesis class of finite VC dimension , there is a universal constant such that, for any labelled-data probability distribution and , a sample size
ensures, with probability at least , that every hypothesis's empirical misclassification risk differs from its misclassification risk by at most . This theorem does not require the labels to be realizable by the hypothesis class.[ref]
The interval hypothesis class has VC dimension two: any two ordered points can receive all four labellings, whereas an interval cannot label three ordered points . Take and choose an interval minimizing the empirical misclassification risk. On the simultaneous convergence event,
Therefore
Since and are fixed constants, examples suffice, which is polynomial in as required by the paper's definition of weak PAC learning.
For completeness, empirical risk minimization over intervals is computationally effective. Sort the sample and group equal coordinates, since one interval cannot split identical inputs. Give each group weight equal to the number of positive labels minus the number of negative labels in that group. The number of empirical mistakes made by an interval is the total number of positives minus the total weight of the consecutive groups it contains. Select the consecutive block of maximum weight, or select a finite interval outside the sample if every nonempty block has negative weight. This enumerates all possible sample labellings by intervals and attains the minimum empirical misclassification risk; sorting and a maximum-block scan are sufficient. The time complexity is .
View a set family as a set of vertices of the Boolean lattice. The operation acts independently on each pair , where : it keeps a full or empty pair and moves a sole upper member down. Thus downward coordinate compression preserves cardinality.
Fix a tracing set . If , compression leaves the trace of a set family on unchanged. If , write for the two sections of the old trace, according to absence or presence of . The absent- section of the new trace is . Its present- section is contained in : an upper member survives only when its lower partner was also present in the original family. Consequently
In particular, downward coordinate compression cannot create new set shattering.
Repeatedly apply any changing downward coordinate compression. Each change strictly decreases , so the process terminates at a down-set with the same cardinality and with no larger trace on any . The Sauer-Shelah lemma says that a family shattering no -element set satisfies
Indeed, the compressed down-set also shatters no -element set. If it contained any member of size at least , all subsets of a -subset of that member would belong to the down-set, contradicting this restriction. Every member therefore has size at most , giving the bound. Equivalently, VC dimension at most gives size at most . The family of all sets of size at most attains this bound.
There is a different extremal example when . Toggle a fixed coordinate in the family of sets of size at most two:
The symmetric difference is a bijection, so this family has members. On each tracing set , it simply toggles coordinate if ; thus it preserves trace cardinality and set shattering. A triple has seven trace patterns, not eight. The new family differs from the original one because it contains . For the specified cardinality is , so the entire power set is the unique family of that size; the different example requires .
For the final bound, let count pairs both in the family. Deleting coordinate identifies precisely these pairs, so
Suppose every deletion lost at least two members, so for every . The trace inequality and preservation of cardinality show that after downward coordinate compression. The down-set contains the empty set and every singleton. For each , its second edge in direction has an upper endpoint of size at least two. Downward closure then supplies a pair . The pairs in therefore cover all coordinates, so at least pairs are needed. This proves two cube edges in every direction force many vertices:
Taking the contrapositive gives the required answer:
The threshold is sharp for every . Take the empty set, all singletons and pairs covering every coordinate. For even , use the disjoint pairs ; for odd , pair the first coordinates and add . This down-set has exactly members and at least two edges in every direction, so every -coordinate trace has size at most . Adding further members preserves those pairs and therefore preserves the failure whenever a larger cardinality is feasible. For , the putative counterexample cardinality is three, exceeding the size of the Boolean lattice; the sharpness construction naturally starts at .
For a binary hypothesis class , a set of distinct points is shattered if every one of its binary labelings is realized by some member of . The VC dimension is
with value infinity if arbitrarily large finite sets are shattered. For real-valued scores, apply this definition to the associated binary decision functions, for example their signs. The word “some” matters: shattering every set of that size is not required.
As an example, take the interval classifiers on the real line, . Two ordered points can receive labels , , or by choosing an interval away from both, around the first, around the second, or containing both. Hence the class shatters two points. No three ordered points can be shattered, since any interval containing the first and third also contains the middle, making labeling impossible. Thus the VC dimension of interval indicators is
This describes combinatorial classification capacity, rather than merely counting written parameters; the definition applies equally to nonlinear or infinite-parameter classes.
A set family shatters a set when its traces on include all of . The Sauer-Shelah lemma says that a set family which shatters no -set satisfies
Equivalently, if exceeds this sum, it shatters a -set. Binomial coefficients with index greater than are zero; if the inequality reduces to the whole-power-set bound. The VC dimension formulation puts .
We give the full inductive proof. Split according to the last coordinate, deleting that coordinate from the present section, and write these two set families on as . Put
The inclusion-exclusion principle gives . If shattered a -set, then would shatter it too. If shattered a -set , both versions of each required trace, with and without the last coordinate, would occur in , which would shatter . Thus the two mathematical induction bounds apply:
using Pascal's identity. For the set family has at most one member. For , the intersection section must be empty, since any nonempty set family shatters the empty set. These supply the mathematical induction bases; the forbidden-empty-set case has an empty set family and an empty sum. Sharpness is attained by all subsets of size at most , which cannot shatter a -set.
Now fix in the infinite-ground-set problem. Choose, using the hypothesis with , a set of size with at least distinct traces. If its trace set family shattered no -set, the Sauer-Shelah lemma would give
a contradiction. Therefore some of size is shattered by the trace set family, and hence by itself. Thus every finite shattering size occurs. The use of makes the contradiction strict, even though the hypothesis only gives a half-power-set lower bound.
An infinite realization does not follow. For a concrete unbounded finite shattering without an infinite universal trace construction, partition into disjoint finite blocks
and take
Every member is finite. Given , choose ; its trace set family is the full power set, so it has members and is shattered. However, an infinite cannot be contained in one finite block. Choose from different blocks. No member of contains both, so is not a trace on . Consequently there need not be an infinite whose traces contain every finite subset of .
A sample is shattered by when every binary labeling is realized:
The shattering coefficient and VC dimension are
For the lower orthants in , the points are shattered: to realize a subset , choose for and otherwise. Conversely, among any points choose, for each coordinate, one point attaining the maximum in that coordinate. At most points have been chosen, so there is an unchosen point . Any lower orthant containing every chosen coordinate maximizer must contain every sample point, including . It cannot realize the labeling that includes all chosen points and excludes . This proves
For points , the restriction of to those points is the set of binary vectors
The shattering coefficient is
The VC dimension is
with value infinity when arbitrarily large finite sets are shattered.
If , then for every choice of points,
Thus every set shattered by is also shattered by , and
Now put and suppose that are shattered by
Consider the linear map
If , the rank-nullity theorem shows that is a proper subspace of . Choose a nonzero
and replace by if necessary so that at least one coordinate is positive.
Ask for the labeling that assigns label zero when and label one when ; coordinates with may be labeled arbitrarily. Shattering would supply such that
Every product is then nonnegative, and at least one is strictly positive. Hence
contradicting . Therefore , proving
This is the VC dimension of a vector space argument.
Finally, a closed Euclidean ball with center and radius is
where
Every such function lies in
whose dimension is at most . Applying the result just proved gives the VC dimension upper bound for Euclidean balls
For a binary function class , the shattering coefficient is
Its VC dimension is the largest for which , with value infinity if there is no largest such . The Sauer-Shelah lemma states that, when ,
For fixed sample points , write
The shattering coefficient is
Thus it is the largest number of distinct binary labelings that the hypothesis class can realize on points.
A set of points is shattered when all labelings are realized. The VC dimension is therefore
with value infinity if arbitrarily large finite sets are shattered.
For points , let
The shattering coefficient and VC dimension are
Thus a set of points is shattered when every binary labeling occurs on it.
A set of points is shattered by when every one of the binary label vectors is realized by some . The shattering coefficient is
and the VC dimension is
The Sauer--Shelah lemma states that if , then
for every ; in particular .
Set shattering 2026-10-14
A set family shatters when every subset of occurs as a trace of a set family. The largest finite shattered-set size is its VC dimension. The Sauer-Shelah lemma bounds the number of traces when no set of a given size is shattered.
Partition an infinite countable set into disjoint finite blocks of unbounded size. The union of their power sets consists entirely of finite sets and shatters each block, so it has unbounded finite VC dimension. Every infinite set meets two different blocks. The pair formed by one point from each can never occur as a trace, since each family member stays in one block. Thus no infinite set has traces realizing all its finite subsets.
The positive-radius closed Euclidean balls in have VC dimension for . Vertices of a regular simplex are shattered: interpolate any desired signs by an affine function , then perturb a sphere through the vertices to the score . For the upper bound, take an affine dependence among points and orient it so that . Labelling the positive coefficients inside and the negative coefficients outside would force , while the affine dependence makes this sum equal . The weaker upper bound from unrestricted lifted affine linear classifiers loses their fixed quadratic coefficient.