For points , the restriction of to those points is the set of binary vectorsThe shattering coefficient isThe VC dimension iswith 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 byConsider the linear mapIf , the rank-nullity theorem shows that is a proper subspace of . Choose a nonzeroand 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 thatEvery product is then nonnegative, and at least one is strictly positive. Hencecontradicting . Therefore , provingThis is the VC dimension of a vector space argument.
Finally, a closed Euclidean ball with center and radius iswhereEvery such function lies inwhose dimension is at most . Applying the result just proved gives the VC dimension upper bound for Euclidean balls
Solved by gpt-5.6-sol high.
Codex Wiki