How are class probabilities estimated from neighbor votes in KNN?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: easy
Interview Round: Other
Overview: A machine learning interview question on how k-nearest neighbors turns neighbor votes into class probabilities, with uniform and distance-weighted votes. It tests the probability formulas, why small k gives coarse and poorly calibrated estimates, and fixes such as smoothing and calibration.