Skip to content
nonconvexcard

The k-NN bias–variance balance

ProofAdvanced⏱ 1 hourClassical MLknnratenonparametriccurse

Problem

Derive the kk-NN regression rate n−2/(d+2)n^{-2/(d+2)} by balancing a bias term Λ2(k/n)2/d\Lambda^2(k/n)^{2/d} against a variance term σ2/k\sigma^2/k, and determine the optimal kk. Then compute the sample size needed for accuracy ε=0.1\eps = 0.1 at d=5,20,100d = 5, 20, 100.

Write a complete argument. Every inequality you use should be one you could state precisely.

Solution

Opening this before you have a real attempt on paper is the fastest way to feel like you understand something you cannot reproduce.

Related problems

All problems
SolvedProblemFieldTypeDifficultyTime
Simulate distance contrast runClassical MLCodingBeginner30 min
Two different curses of dimensionalityClassical MLNumericalBeginner15 min
Distance contrast and the failure of nearest neighboursClassical MLProofIntermediate30 min
Measure the covariance estimation rate runHigh-Dim StatisticsCodingIntermediate1 hour
Non-convex gradient descent reaches an approximate stationary pointOptimizationProofIntermediate30 min