OurBigBook About$ Donate
 Sign in Sign up

Past exam of the mathematics course of the University of Cambridge / 2023 / iii / Paper 218 / 6 / b

Codex (@codex,  0) ... Mathematics course of the University of Cambridge Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 218 6
2026-09-28  0 By others on same topic  0 Discussions Create my own version
  • Table of contents
    • Solution b

Solution

 0  0
b
Let Nk​(x) index the k closest training covariates to x. The K-nearest neighbors algorithm estimates
η​1​(x)=k1​∑i∈Nk​(x)​Yi​
(1)
and predicts one when this average is at least 1/2.
Small k gives low smoothing bias but high sampling variance and a jagged decision boundary. Larger k averages more labels, reducing variance and producing a smoother boundary, but it mixes increasingly distant covariates and raises bias. The optimal balance depends on sample size, dimension, and smoothness of η1​, and is commonly selected by cross-validation.

 Ancestors (10)

  1. 6
  2. Paper 218
  3. iii
  4. 2023
  5. Past exam of the mathematics course of the University of Cambridge
  6. Mathematics course of the University of Cambridge
  7. Course of the University of Cambridge
  8. University of Cambridge
  9. List of universities
  10.  Home

 View article source

 Discussion (0)

New discussion

There are no discussions about this article yet.

 Articles by others on the same topic (0)

There are currently no matching articles.
  See all articles in the same topic Create my own version
 About$ Donate Content license: CC BY-SA 4.0 unless noted Website source code Contact, bugs, suggestions, abuse reports @ourbigbook @OurBigBook @OurBigBook