Past exam of the mathematics course of the University of Cambridge 2020 ii Paper 2 30J a Solution Created 2026-09-24 Updated 2026-09-29
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
Past exam of the mathematics course of the University of Cambridge 2021 ii Paper 1 31J Solution Created 2026-09-24 Updated 2026-09-25
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.
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
Past exam of the mathematics course of the University of Cambridge 2022 ii Paper 1 31J a Solution Created 2026-09-24 Updated 2026-10-03
For a binary function class , the shattering coefficient isIts VC dimension is the largest for which , with value infinity if there is no largest such . The Sauer-Shelah lemma states that, when ,
Past exam of the mathematics course of the University of Cambridge 2023 ii Paper 2 31J a Solution Created 2026-09-24 Updated 2026-09-25
For fixed sample points , writeThe shattering coefficient isThus 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 thereforewith value infinity if arbitrarily large finite sets are shattered.
Past exam of the mathematics course of the University of Cambridge 2024 ii Paper 1 31K a ii Solution Created 2026-09-24 Updated 2026-10-03
For points , letThe shattering coefficient and VC dimension areThus a set of points is shattered when every binary labeling occurs on it.
Past exam of the mathematics course of the University of Cambridge 2025 ii Paper 2 31L a Solution Created 2026-09-24 Updated 2026-09-25
A set of points is shattered by when every one of the binary label vectors is realized by some . The shattering coefficient isand the VC dimension is