Curated · k-Nearest Neighbour (k-NN)

MCQ · 1 mark · Problem ML-KNN-0003

As the number of neighbours \(k\) in a \(k\)-NN classifier is increased (with \(k\) still much smaller than the number of training points), the decision boundary typically
  1. A
    becomes smoother: variance decreases and bias increases
  2. B
    becomes more jagged: variance increases and bias decreases
  3. C
    becomes smoother: both bias and variance decrease
  4. D
    becomes smoother: variance increases and bias decreases

Solve it on GATE DA practice →More Supervised Learning — Classification problems

Show the worked solution\[\boxed{\hat f_k(\mathbf x_0)=\frac1k\sum_{i\in N_k(\mathbf x_0)}y_i,\qquad \operatorname{Var}\big(\hat f_k(\mathbf x_0)\big)=\frac{\sigma^{2}}{k}}\]Averaging over more neighbours smooths the prediction, so the boundary becomes smoother and the variance falls like \(\sigma^{2}/k\).The extra neighbours lie farther from \(\mathbf x_0\), where the true function differs more, so the bias grows. \(k=1\) is the most flexible (jagged, high-variance) case; \(k=n\) predicts the majority class everywhere (maximum bias).(B) describes decreasing \(k\); (C) and (D) ignore the bias–variance trade-off.Answer: A

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com