1. Home
  2. Data Science
  3. K-Nearest Neighbors (KNN)
  4. When k-nearest neighbours is used for regression, the…

Added 2 Nov 2026

When k-nearest neighbours is used for regression, the prediction is usually:

  1. The median of the entire training dataset
  2. The most common class among all training points
  3. The average target of the k nearest neighbours Correct answer
  4. The value of the single farthest neighbour

Correct answer

C. The average target of the k nearest neighbours

17 views

MCQSEXAM

Explanation

KNN regression averages the neighbours' values, sometimes weighting closer neighbours more heavily. KNN classification takes a majority vote instead.

Reference

Asked in: Data Science Interviews, GATE DA

Preparing for an exam?

Doubts & discussion

Not sure why the answer is C? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More K-Nearest Neighbors (KNN) MCQs

Practise all K-Nearest Neighbors (KNN) MCQs

Similar MCQs