Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 218 3 e i Solution Created 2026-09-24 Updated 2026-09-25
The one-nearest-neighbour classification boundary consists of the portions of the Voronoi diagram separating cells whose observed labels differ. For these nine grid points it forms diagonal and vertical or horizontal perpendicular-bisector segments around the three triangular observations. Every training point is its own nearest neighbour, so, absent a distance tie convention that excludes the query itself, its training error is zero.
Past exam of the mathematics course of the University of Cambridge 2025 iii Paper 218 3 c Solution Created 2026-09-24 Updated 2026-09-25
For two classes, write , the conditional Bayes error. The nearest-neighbour label and the test label become conditionally independent draws from the same local class distribution, so the limiting conditional error of one-nearest-neighbour classification isThe assumption gives . Its excess over the conditional Bayes error isAfter taking expectations, the limiting risk remains at least above the Bayes risk, so one-nearest-neighbour classification is not consistent.