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 .