S14 Machine learning · Practice
Nearest neighbors and the curse of dimensionality
Problems dealt one at a time, with new numbers every time. The kinds you miss come back more often, and you can keep going as long as you like.
0 solved
0 in a row
0 of 9 kinds solid
Check
Data are uniform in a 2-dimensional unit cube.
(a)
What edge length must a smaller cube have to hold a fraction 0.01 of them?
Check
A unit cube in 3 dimensions.
(a)
What fraction of its volume lies within 0.05 of its surface?
Check
A two-class problem has Bayes error 0.05.
(a)
What is the most error a 1-nearest-neighbor classifier can have with unlimited data?
Check
Among 500 points, the 10 nearest to x lie within radius 0.3.
(a)
Estimate the density at x if the points lie in a plane.
(b)
And if they lie in three dimensions?
Check
Pairs of points are drawn uniformly from a 10-dimensional unit cube.
(a)
What is the mean squared distance between them?
(b)
What is the squared distance's standard deviation relative to its mean?
Check
A service searches 10000 reference vectors of dimension 64 by brute force, answering 5000 queries a second.
(a)
How many multiply-adds per second does it need, in billions?
(b)
How much memory do the references take in 32-bit floats, for 50 copies?
Check
Edge for a fraction 0.01 in 5 dimensions?
Check
1-NN limit for Bayes error 0.05?
Check
Planar density: K = 8, N = 1000, radius 0.02?
A kind of problem counts as solid once you've got it right on the first try twice in a row. Back to the lesson · Practice every topic in S14